
/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */
/* WARNING: Unknown calling convention */

int sg_get_command_size(uint8_t opcode)

{
  return *(int *)(CSWTCH_624 + (uint)(opcode >> 5) * 4);
}



/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

undefined4 sg_get_command_size(byte param_1)

{
  return *(undefined4 *)(&DAT_00033300 + (uint)(param_1 >> 5) * 4);
}


CALL 0x00017955
ADD EDX,0x31003
MOVZX EAX,byte ptr [ESP + 0x4]
SHR AL,0x5
MOVZX EAX,AL
MOV EAX,dword ptr [EDX + EAX*0x4 + 0xfffe9578]
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n\nundefined4 sg_get_command_size(byte param_1)\n\n{\n  return *(undefined4 *)(&DAT_00033300 + (uint)(param_1 >> 5) * 4);\n}\n\n" comment (function_definition "undefined4 sg_get_command_size(byte param_1)\n\n{\n  return *(undefined4 *)(&DAT_00033300 + (uint)(param_1 >> 5) * 4);\n}" type_identifier (function_declarator "sg_get_command_size(byte param_1)" identifier (parameter_list "(byte param_1)" ( (parameter_declaration "byte param_1" type_identifier identifier) ))) (compound_statement "{\n  return *(undefined4 *)(&DAT_00033300 + (uint)(param_1 >> 5) * 4);\n}" { (return_statement "return *(undefined4 *)(&DAT_00033300 + (uint)(param_1 >> 5) * 4);" return (pointer_expression "*(undefined4 *)(&DAT_00033300 + (uint)(param_1 >> 5) * 4)" * (cast_expression "(undefined4 *)(&DAT_00033300 + (uint)(param_1 >> 5) * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00033300 + (uint)(param_1 >> 5) * 4)" ( (binary_expression "&DAT_00033300 + (uint)(param_1 >> 5) * 4" (pointer_expression "&DAT_00033300" & identifier) + (binary_expression "(uint)(param_1 >> 5) * 4" (call_expression "(uint)(param_1 >> 5)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1 >> 5)" ( (binary_expression "param_1 >> 5" identifier >> number_literal) ))) * number_literal)) )))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n/* WARNING: Unknown calling convention */\n\nint sg_get_command_size(uint8_t opcode)\n\n{\n  return *(int *)(CSWTCH_624 + (uint)(opcode >> 5) * 4);\n}\n\n" comment comment (function_definition "int sg_get_command_size(uint8_t opcode)\n\n{\n  return *(int *)(CSWTCH_624 + (uint)(opcode >> 5) * 4);\n}" primitive_type (function_declarator "sg_get_command_size(uint8_t opcode)" identifier (parameter_list "(uint8_t opcode)" ( (parameter_declaration "uint8_t opcode" primitive_type identifier) ))) (compound_statement "{\n  return *(int *)(CSWTCH_624 + (uint)(opcode >> 5) * 4);\n}" { (return_statement "return *(int *)(CSWTCH_624 + (uint)(opcode >> 5) * 4);" return (pointer_expression "*(int *)(CSWTCH_624 + (uint)(opcode >> 5) * 4)" * (cast_expression "(int *)(CSWTCH_624 + (uint)(opcode >> 5) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(CSWTCH_624 + (uint)(opcode >> 5) * 4)" ( (binary_expression "CSWTCH_624 + (uint)(opcode >> 5) * 4" identifier + (binary_expression "(uint)(opcode >> 5) * 4" (call_expression "(uint)(opcode >> 5)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(opcode >> 5)" ( (binary_expression "opcode >> 5" identifier >> number_literal) ))) * number_literal)) )))) ;) })))
(translation_unit "undefined4 sg_get_command_size(byte param_1)\n\n{\n  return *(undefined4 *)(&DAT_00033300 + (uint)(param_1 >> 5) * 4);\n}\n\n" (function_definition "undefined4 sg_get_command_size(byte param_1)\n\n{\n  return *(undefined4 *)(&DAT_00033300 + (uint)(param_1 >> 5) * 4);\n}" type_identifier (function_declarator "sg_get_command_size(byte param_1)" identifier (parameter_list "(byte param_1)" ( (parameter_declaration "byte param_1" type_identifier identifier) ))) (compound_statement "{\n  return *(undefined4 *)(&DAT_00033300 + (uint)(param_1 >> 5) * 4);\n}" { (return_statement "return *(undefined4 *)(&DAT_00033300 + (uint)(param_1 >> 5) * 4);" return (pointer_expression "*(undefined4 *)(&DAT_00033300 + (uint)(param_1 >> 5) * 4)" * (cast_expression "(undefined4 *)(&DAT_00033300 + (uint)(param_1 >> 5) * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00033300 + (uint)(param_1 >> 5) * 4)" ( (binary_expression "&DAT_00033300 + (uint)(param_1 >> 5) * 4" (pointer_expression "&DAT_00033300" & identifier) + (binary_expression "(uint)(param_1 >> 5) * 4" (call_expression "(uint)(param_1 >> 5)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1 >> 5)" ( (binary_expression "param_1 >> 5" identifier >> number_literal) ))) * number_literal)) )))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT >> LIT) ))) * LIT)) )))) ;) })))
(function_definition "undefined4 sg_get_command_size(byte param_1)\n\n{\n  return *(undefined4 *)(&DAT_00033300 + (uint)(param_1 >> 5) * 4);\n}" (type_identifier "undefined4") (function_declarator "sg_get_command_size(byte param_1)" (identifier "sg_get_command_size") (parameter_list "(byte param_1)" (( "(") (parameter_declaration "byte param_1" (type_identifier "byte") (identifier "param_1")) () ")"))) (compound_statement "{\n  return *(undefined4 *)(&DAT_00033300 + (uint)(param_1 >> 5) * 4);\n}" ({ "{") (return_statement "return *(undefined4 *)(&DAT_00033300 + (uint)(param_1 >> 5) * 4);" (return "return") (pointer_expression "*(undefined4 *)(&DAT_00033300 + (uint)(param_1 >> 5) * 4)" (* "*") (cast_expression "(undefined4 *)(&DAT_00033300 + (uint)(param_1 >> 5) * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_00033300 + (uint)(param_1 >> 5) * 4)" (( "(") (binary_expression "&DAT_00033300 + (uint)(param_1 >> 5) * 4" (pointer_expression "&DAT_00033300" (& "&") (identifier "DAT_00033300")) (+ "+") (binary_expression "(uint)(param_1 >> 5) * 4" (call_expression "(uint)(param_1 >> 5)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_1 >> 5)" (( "(") (binary_expression "param_1 >> 5" (identifier "param_1") (>> ">>") (number_literal "5")) () ")"))) (* "*") (number_literal "4"))) () ")")))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */
/* WARNING: Unknown calling convention */

int function_1(uint8_t var_2)

{
  return *(int *)(var_1 + (uint)(var_2 >> 5) * 4);
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (return_statement (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))) right: (number_literal))))))))))

/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

undefined4 MASKED(byte param_1)

{
  return *(undefined4 *)(&DAT_00033300 + (uint)(param_1 >> 5) * 4);
}

