Function at 0x40590d
Capabilities:
Accept command line arguments
Identify system language via api

Disassembly:
mov eax, 0x431161
call fcn.00430710
sub esp, 0x40
push ebx
xor ebx, ebx
cmp byte [ebp + 8], bl
push esi
jne 0x405936
push 6
call fcn.00404dea
inc eax
push eax
push 6
call fcn.00404e8f
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
add byte [0x43ac81], al
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x1c], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
xor eax, eax
cmp byte [ebp + 8], bl
mov dword [ebp - 4], ebx
sete al
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00404f31
pop ecx
pop ecx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp byte [0x43ac79], bl
mov dword [0x43aca0], eax
je 0x40598e
cmp word [0x43ac82], bx
je 0x40598e
push 1
pop eax
jmp 0x405990
xor eax, eax
add word [0x43ac92], ax
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 0x3c], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 2
push eax
call fcn.00421e16
pop ecx
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [ebp - 4], 3
push dword [ecx]
lea ecx, [ebp - 0x3c]
push ebx
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
movsx eax, word [0x43ac94]
movsx ecx, word [0x43ac84]
mov esi, dword [0x434dc4]
sub ecx, eax
add dword [0x43acb0], ecx
cmp byte [ebp + 8], bl
jne 0x405a02
mov esi, dword [0x434dc8]
mov al, byte [esi]
add al, 0x76
movzx eax, al
add eax, 3
and al, 0xfc
call fcn.00430730
mov eax, esp
push esi
push eax
call fcn.0042d836
pop ecx
mov esi, eax
mov al, byte [ebp + 0xb]
pop ecx
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x2c], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push esi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push esi
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.004068d7
add esp, 0x10
lea ecx, [ebp - 0x2c]
mov byte [ebp + 0xb], al
mov byte [ebp - 4], 2
push 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
cmp byte [ebp + 0xb], bl
je 0x405b3a
movsx eax, word [0x43ac94]
inc byte [0x43ac7f]
push eax
movsx eax, byte [0x43ac7b]
push eax
call fcn.0040b0ac
add dword [0x43acb4], eax
push 0x892dffff
push 0xe809ffff
call fcn.0040b002
add word [0x43ac8e], ax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040bd81
movsx eax, byte [0x43ac7a]
push 0x8c21ffff
push eax
call fcn.0040af94
add word [0x43ac94], ax
add esp, 0x1c
call dword [sym.imp.USER32.dll_GetForegroundWindow]
add byte [0x43ac79], al
call dword [sym.imp.USER32.dll_GetInputState]
mov byte [0x43ac7a], al
lea eax, [ebp - 0x1c]
push eax
call fcn.00405bac
test al, al
pop ecx
je 0x405b00
mov byte [ebp + 0xb], 1
jmp 0x405b6c
push dword [0x43ac98]
inc word [0x43ac88]
push 0x9e07ffff
call fcn.0040b037
add dword [0x43aca8], eax
movsx eax, byte [0x43ac7d]
push eax
push dword [0x43acac]
call fcn.0040b002
add esp, 0x10
add word [0x43ac82], ax
movsx eax, word [0x43ac8a]
push 0xe0ebffff
push eax
call fcn.0040af32
pop ecx
mov word [0x43ac88], ax
neg ax
pop ecx
mov word [0x43ac82], ax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov word [0x43ac8a], ax
mov byte [ebp + 0xb], bl
push 1
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp + 0xb]
lea esp, [ebp - 0x54]
mov dword fs:[0], ecx
pop esi
pop ebx
leave
ret