Function at 0x405776
Capabilities:
Identify system language via api

Disassembly:
mov eax, 0x42fd5c
call fcn.0042f2d0
sub esp, 0x78
push ebx
push esi
push edi
mov dword [ebp - 0x3c], ecx
movsx eax, word [0x43abd6]
xor ebx, ebx
push 0xbe05ffff
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
call fcn.00411864
add word [0x43abd8], ax
pop ecx
pop ecx
mov dword [ebp - 0x44], ebx
mov byte [ebp - 4], 1
call dword [sym.imp.USER32.dll_GetDesktopWindow]
xor ecx, ecx
cmp eax, ebx
setne cl
mov dword [0x43abe8], eax
mov eax, ecx
add word [0x43abd8], ax
cmp word [0x43abde], bx
jne 0x4057e3
cmp dword [0x43ac0c], ebx
jne 0x4057e3
xor eax, eax
jmp 0x4057e6
push 1
pop eax
mov edi, dword [ebp + 8]
add byte [0x43abcb], al
lea ecx, [ebp - 0x44]
mov eax, dword [edi]
push ecx
push edi
call dword [eax + 0x24]
mov esi, eax
push 0xf97dffff
movsx eax, byte [0x43abd1]
push eax
mov dword [0x43abf0], 1
call fcn.0041181a
pop ecx
mov byte [0x43abca], al
mov eax, dword [ebp - 0x44]
cmp esi, ebx
pop ecx
jl 0x4060d8
cmp eax, ebx
je 0x4060d8
mov esi, dword [ebp - 0x3c]
lea edx, [ebp - 0x28]
push edx
mov eax, dword [esi + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x94]
test eax, eax
jl 0x4058a9
cmp dword [ebp - 0x28], ebx
je 0x4058a9
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x6c]
mov esi, dword [ebp - 0x68]
sub eax, dword [ebp - 0x74]
sub esi, dword [ebp - 0x70]
push eax
call fcn.00405721
push esi
mov dword [ebp - 0x60], eax
call fcn.00405721
pop ecx
mov esi, dword [sym.imp.USER32.dll_PostMessageA]
pop ecx
mov dword [ebp - 0x64], eax
push 0x10200
push ebx
push 0x20
push dword [ebp - 0x28]
call esi
movzx eax, word [ebp - 0x64]
movzx ecx, word [ebp - 0x60]
shl eax, 0x10
or eax, ecx
push eax
push ebx
push 0x200
push dword [ebp - 0x28]
call esi
mov esi, dword [ebp - 0x3c]
cmp word [0x43abd2], bx
jne 0x4058c0
cmp dword [0x43ac0c], ebx
mov byte [0x43abcc], bl
je 0x4058c7
mov byte [0x43abcc], 1
mov eax, dword [0x43abec]
inc dword [0x43ac0c]
mov ecx, eax
mov dword [ebp - 0x54], ebx
imul ecx, ecx, 0x49b9ffff
add dword [0x43abf4], ecx
movsx cx, byte [0x43abcf]
add ecx, eax
push 0x3e9bffff
movsx eax, word [0x43abe2]
push eax
mov byte [ebp - 4], 2
mov word [0x43abd6], cx
call fcn.004117ef
add word [0x43abde], ax
mov al, byte [0x43abf8]
pop ecx
mov byte [0x43abcf], al
pop ecx
mov dword [ebp - 0x50], ebx
cmp dword [esi + 0x4c], ebx
mov byte [ebp - 4], 3
jbe 0x40599f
cmp edi, ebx
mov dword [ebp - 0x24], ebx
je 0x40593e
mov eax, dword [edi]
lea ecx, [ebp - 0x24]
push ecx
push 0x43a128
push edi
call dword [eax]
cmp dword [ebp - 0x24], ebx
mov byte [ebp - 4], 4
je 0x405987
lea ecx, [ebp - 0x6c]
call fcn.00427806
mov eax, dword [esi + 0x48]
mov byte [ebp - 4], 5
cmp eax, ebx
jne 0x40595f
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
lea ecx, [ebp - 0x6c]
call fcn.00406104
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x50]
push edx
push dword [ebp - 0x6c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xb8]
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 4
call fcn.00427879
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x405998
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x50]
cmp eax, ebx
jne 0x4059a2
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push eax
call dword [ecx + 0x174]
movsx eax, byte [0x43abc8]
movsx ecx, word [0x43abe4]
push dword [ebp - 0x10]
sub ecx, eax
mov dword [0x43ac04], ecx
lea ecx, [ebp - 0x54]
call fcn.00408277
or al, 0xff
sub al, byte [0x43abca]
add byte [0x43abd0], al
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push dword [0x43abf0]
push 0x7bbffff
call fcn.004117ef
add word [0x43abe0], ax
push 0x7027ffff
push 0x19c3ffff
call fcn.00411775
push dword [0x43abf8]
add dword [0x43abfc], eax
or word [0x43abe0], 0xffff
mov dword [ebp - 0x10], ebx
push dword [0x43ac08]
call fcn.0041181a
add word [0x43abd4], ax
add esp, 0x18
mov dword [ebp - 0x40], ebx
movsx ax, byte [0x43abce]
imul eax, dword [0x43abe8]
mov word [0x43abdc], ax
mov byte [ebp - 4], 6
movsx eax, byte [0x43abcf]
push eax
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
push 0xffffffffffffffff
push 0x43a138
mov dword [0x43ac0c], eax
mov word [ebp - 0x74], 8
call fcn.004056e2
mov dword [ebp - 0x6c], eax
movsx eax, byte [0x43abca]
push eax
push 0x881ffff
call fcn.004117b3
mov dword [0x43abf8], eax
push 0xd509ffff
movsx eax, word [0x43abd6]
imul eax, eax, 0x35e5ffff
mov dword [0x43abf0], eax
movsx eax, word [0x43abe0]
push eax
call fcn.0041181a
add esp, 0x18
lea edx, [ebp - 0x10]
lea esi, [ebp - 0x74]
mov byte [0x43abcf], al
push edx
mov eax, dword [ebp - 0x54]
sub esp, 0x10
mov edi, esp
mov ecx, dword [eax]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x30]
push dword [ebp - 0x6c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
movsx eax, word [0x43abe2]
push eax
movsx eax, word [0x43abe4]
push eax
call fcn.00411738
pop ecx
mov byte [0x43abcc], al
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push dword [ebp - 0x10]
add byte [0x43abcd], al
lea ecx, [ebp - 0x40]
call fcn.00408277
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
inc word [0x43abe0]
mov dword [ebp - 0x10], ebx
movsx eax, word [0x43abe0]
push eax
push dword [0x43abf8]
call fcn.00411706
add byte [0x43abce], al
movsx eax, word [0x43abd8]
push eax
movsx eax, word [0x43abdc]
push eax
call fcn.004118af
add esp, 0x10
cmp dword [ebp - 0x40], ebx
mov word [0x43abd6], ax
je 0x406082
push 0x8973ffff
push 0x50e5ffff
call fcn.0041181a
add word [0x43abda], ax
mov eax, dword [0x43abec]
add eax, 0x225ffff
mov dword [0x43abe8], eax
movsx eax, word [0x43abd4]
push eax
push 0xe707ffff
call fcn.00411775
mov dword [0x43ac00], eax
movsx eax, word [0x43abe0]
push eax
push 0xbcedffff
call fcn.00411706
add word [0x43abd6], ax
mov dword [ebp - 0x1c], ebx
movsx eax, word [0x43abe0]
push 0x79fbffff
push eax
mov byte [ebp - 4], 7
call fcn.00411775
mov dword [0x43ac0c], eax
push 0x1fdbffff
movsx eax, byte [0x43abd1]
push eax
call fcn.00411706
add dword [0x43abf0], eax
mov ax, word [0x43abde]
mov word [0x43abe0], ax
mov ecx, 0x5de9ffff
movsx eax, byte [0x43abd1]
sub ecx, eax
mov eax, dword [ebp + 0xc]
sub dword [0x43abf4], 0x6280001
mov dword [ebp - 0x6c], eax
movsx eax, byte [0x43abc9]
add esp, 0x28
mov word [ebp - 0x74], 3
mov dword [0x43ac00], ecx
push eax
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
mov dword [0x43abf8], eax
movsx eax, word [0x43abe0]
push eax
push 0x8283ffff
call fcn.004117ef
pop ecx
lea edx, [ebp - 0x10]
pop ecx
lea esi, [ebp - 0x74]
push edx
mov word [0x43abe0], ax
sub esp, 0x10
mov eax, dword [ebp - 0x40]
mov edi, esp
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x74]
mov edi, esp
movsd dword es:[edi], dword [esi]
mov ecx, dword [eax]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x2c]
push dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
call fcn.0040812d
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
add word [0x43abe0], ax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
movsx eax, word [0x43abd8]
push eax
push 0x761bffff
mov word [0x43abde], 1
mov dword [ebp - 0x10], ebx
call fcn.00411706
add byte [0x43abcb], al
pop ecx
pop ecx
call dword [sym.imp.USER32.dll_GetInputState]
add dword [0x43ac00], eax
cmp dword [ebp - 0x1c], ebx
je 0x406071
movsx eax, byte [0x43abcc]
push eax
push 0x8c41ffff
call fcn.00411906
mov byte [0x43abd0], al
mov eax, dword [ebp - 0x1c]
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 0x4c], ebx
je 0x405d0b
mov ecx, dword [eax]
lea edx, [ebp - 0x4c]
push edx
push 0x43a170
push eax
call dword [ecx]
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 8
call fcn.00427806
mov eax, dword [ebp - 0x4c]
mov byte [ebp - 4], 9
cmp eax, ebx
je 0x405d7f
mov ecx, dword [eax]
lea edx, [ebp - 0x6c]
push edx
push eax
call dword [ecx + 0x20]
lea ecx, [ebp - 0x6c]
call fcn.00427dc8
mov esi, eax
mov al, byte [ebp + 0x13]
push ebx
lea ecx, [ebp - 0x84]
mov byte [ebp - 0x84], 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 - 0x84]
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 ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0xa
call fcn.00427f42
push 1
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 9
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 [ebp - 0x3c]
lea edx, [ebp - 0x30]
mov dword [ebp - 0x30], ebx
push edx
mov eax, dword [eax + 0x20]
add eax, 4
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
cmp eax, ebx
jl 0x405fce
cmp dword [ebp - 0x30], ebx
je 0x405fce
test byte [0x43a8b4], 1
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
jne 0x405dc4
or byte [0x43a8b4], 1
push ebx
call esi
mov dword [0x43a8b8], eax
test byte [0x43a8b4], 2
jne 0x405ddd
or byte [0x43a8b4], 2
push 1
call esi
mov dword [0x43a8dc], eax
mov eax, pe_nt_image_headers32
cmp dword [0x43a8b8], eax
jge 0x405def
mov dword [0x43a8b8], eax
cmp dword [0x43a8dc], eax
jge 0x405dfc
mov dword [0x43a8dc], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ebx
cmp eax, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x14], eax
je 0x405e1e
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x38]
push edx
push eax
mov ecx, dword [eax]
mov byte [ebp - 4], 0xb
call dword [ecx + 0xd0]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x34]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xd4]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x58]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xd8]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x60]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xdc]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x20]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xd0]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x24]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xd4]
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
push edx
mov ecx, dword [eax]
push eax
mov dword [ebp - 0x18], edi
call dword [ecx + 0xe0]
test eax, eax
jl 0x405eda
push dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
push eax
call fcn.00407e9e
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x405eda
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push eax
call dword [ecx + 0xd0]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x24]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xd4]
add esi, dword [ebp - 0x20]
add edi, dword [ebp - 0x24]
jmp 0x405e88
mov eax, dword [ebp - 0x58]
cmp eax, ebx
mov dword [ebp - 0x5c], eax
jne 0x405eeb
mov dword [ebp - 0x5c], 0xa
mov edi, dword [sym.imp.MSVCRT.dll_rand]
call edi
cdq
idiv dword [ebp - 0x5c]
mov eax, dword [ebp - 0x60]
cmp eax, ebx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x20], edx
jne 0x405f0b
mov dword [ebp - 0x5c], 0xa
call edi
cdq
idiv dword [ebp - 0x5c]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x64], ebx
add dword [ebp - 0x38], eax
add esi, eax
mov dword [ebp - 0x5c], ebx
lea eax, [esi + 0xc8]
add dword [ebp - 0x18], edx
add dword [ebp - 0x34], edx
cmp eax, dword [0x43a8b8]
mov dword [ebp - 0x24], edx
jle 0x405f4e
call edi
mov ecx, dword [0x43a8b8]
cdq
add ecx, 0xffffff38
idiv ecx
sub esi, edx
mov dword [ebp - 0x64], esi
mov esi, edx
mov eax, dword [ebp - 0x18]
add eax, 0xc8
cmp eax, dword [0x43a8dc]
jle 0x405f7a
call edi
mov ecx, dword [0x43a8dc]
cdq
add ecx, 0xffffff38
idiv ecx
mov eax, dword [ebp - 0x18]
sub eax, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x5c], eax
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
push 0x10200
push ebx
push 0x20
push dword [ebp - 0x30]
call edi
movzx eax, word [ebp - 0x18]
movzx ecx, si
shl eax, 0x10
or eax, ecx
push eax
push ebx
push 0x200
push dword [ebp - 0x30]
call edi
push dword [ebp - 0x5c]
push dword [ebp - 0x64]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x18]
push esi
call fcn.0041f108
mov eax, dword [ebp - 0x14]
add esp, 0x18
cmp eax, ebx
mov byte [ebp - 4], 9
je 0x405fce
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x48], ebx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xc
call fcn.004082fe
mov eax, dword [ebp - 0x48]
cmp eax, ebx
je 0x405ff0
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc8]
cmp byte [ebp + 0x10], bl
je 0x406014
mov esi, dword [ebp - 0x3c]
mov eax, dword [esi + 0x24]
cmp eax, 1
je 0x406005
cmp eax, 2
jne 0x406011
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x114]
mov dword [esi + 0x24], ebx
push dword [0x43abf4]
mov al, byte [0x43abd1]
sub byte [0x43abce], al
push 0x89c7ffff
call fcn.00411906
pop ecx
mov word [0x43abe2], ax
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov word [0x43abd8], ax
mov eax, dword [ebp - 0x48]
cmp eax, ebx
mov byte [ebp - 4], 9
je 0x406054
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 8
call fcn.00427879
mov eax, dword [ebp - 0x4c]
mov byte [ebp - 4], 7
cmp eax, ebx
je 0x406071
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 6
cmp eax, ebx
je 0x406082
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x40]
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x406093
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x50]
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x4060a4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x54]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x4060b5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x4060c5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x4060f3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4060f3
cmp eax, ebx
mov byte [ebp - 4], bl
je 0x4060e5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
cmp edi, ebx
je 0x4060f3
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc