Function at 0x404e72
Capabilities:
Identify system language via api

Disassembly:
mov eax, 0x42f376
call fcn.0042e9c0
sub esp, 0x24
movsx eax, word [0x438c2e]
movsx ecx, word [0x438c28]
or eax, ecx
push ebx
push esi
xor ebx, ebx
mov dword [0x438c48], eax
mov al, byte [ebp + 0xf]
push edi
push ebx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x20], 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_]
mov al, byte [ebp + 0xf]
push 1
pop esi
lea ecx, [ebp - 0x30]
push ebx
mov dword [ebp - 4], esi
mov byte [ebp - 0x30], 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 dword [0x438c5c]
mov byte [ebp - 4], 2
push 0xb1b3ffff
call fcn.0040aa83
add byte [0x438c1b], al
push 0x8291ffff
push 0xa1dfffff
call fcn.0040a96f
add dword [0x438c44], eax
push 0x964bffff
movsx eax, byte [0x438c20]
or eax, 0x6567ffff
push 0x398bffff
mov dword [0x438c38], eax
call fcn.0040aa83
add byte [0x438c1f], al
push 0x93d3ffff
movsx eax, word [0x438c34]
push eax
call fcn.0040a933
mov edi, dword [ebp + 0xc]
add esp, 0x20
mov byte [0x438c1d], al
cmp edi, ebx
je 0x404fef
push 0x9effffff
push dword [0x438c3c]
push dword [0x438c4c]
call dword [sym.imp.KERNEL32.dll_MulDiv]
add word [0x438c30], ax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::swap_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____]
cmp word [0x438c26], bx
je 0x404f7f
cmp dword [0x438c40], ebx
mov word [0x438c24], si
jne 0x404f86
mov word [0x438c24], bx
push 0xa
mov eax, edi
xor edx, edx
pop ecx
div ecx
lea ecx, [ebp - 0x20]
add dl, 0x30
push edx
push esi
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_unsigned_int__char_]
push 0xa
mov eax, edi
xor edx, edx
pop ecx
div ecx
dec byte [0x438c18]
mov dword [0x438c4c], 0x56fdffff
mov word [0x438c34], bx
lea ecx, [ebp - 0x20]
mov edi, eax
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
push dword [eax]
lea eax, [ebp - 0x30]
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__::append_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push 0xe655ffff
push 0xb37bffff
call fcn.0040a9de
pop ecx
mov dword [0x438c50], eax
pop ecx
jmp 0x404f34
mov al, byte [0x438c3c]
add byte [0x438c1b], al
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
add byte [0x438c1c], al
cmp dword [ebp - 0x18], ebx
mov dword [0x438c4c], 0x3281ffff
jne 0x40505f
call dword [sym.imp.USER32.dll_GetActiveWindow]
push 0x30
push esi
lea ecx, [ebp - 0x20]
mov word [0x438c2e], ax
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_unsigned_int__char_]
movsx eax, word [0x438c22]
push eax
push 0x1681ffff
call fcn.0040ab0e
mov dword [0x438c50], eax
movsx eax, byte [0x438c19]
push eax
push 0x2d75ffff
call fcn.0040ab0e
add esp, 0x10
add byte [0x438c1c], al
movsx eax, byte [0x438c1d]
push 0x9c15ffff
push eax
call fcn.0040aa4f
mov edi, dword [ebp + 8]
pop ecx
pop ecx
mov word [0x438c30], ax
mov al, byte [ebp - 0x20]
push ebx
mov ecx, edi
mov byte [edi], 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_]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, edi
push dword [eax]
lea eax, [ebp - 0x20]
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_]
mov dword [ebp - 0x10], esi
push esi
lea ecx, [ebp - 0x30]
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 esi
lea ecx, [ebp - 0x20]
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_]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret