Function at 0x4147fe
Capabilities:
Identify system language via api

Disassembly:
mov eax, 0x42ffea
call fcn.0042e9c0
sub esp, 0x54
push ebx
xor ebx, ebx
inc dword [0x438c3c]
push esi
push edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
mov word [0x438c32], ax
push ecx
mov eax, dword [esi]
push esi
call dword [eax + 0x24]
xor ecx, ecx
cmp dword [0x438c54], ebx
setne cl
inc byte [0x438c1d]
cmp eax, ebx
mov eax, dword [ebp - 0x1c]
mov dword [0x438c50], ecx
jl 0x414f09
cmp eax, ebx
je 0x414f09
lea ecx, [ebp - 0x30]
call fcn.00427e77
mov eax, dword [esi]
lea ecx, [ebp - 0x30]
push ecx
push esi
mov byte [ebp - 4], 1
call dword [eax + 0xa0]
movsx ax, byte [0x438c1e]
dec eax
mov dword [ebp - 0x20], ebx
mov word [0x438c2c], ax
movsx eax, byte [0x438c1c]
push 0xa2cdffff
push eax
mov byte [ebp - 4], 2
call fcn.0040a9a5
mov dword [0x438c58], eax
movsx eax, byte [0x438c18]
push eax
movsx eax, byte [0x438c1f]
push eax
call fcn.0040a9a5
push 0x16c9ffff
push 0x1ff5ffff
mov dword [0x438c44], eax
call fcn.0040a8f9
mov byte [0x438c1e], al
mov eax, dword [ebp - 0x1c]
add esp, 0x18
lea edx, [ebp - 0x10]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x174]
movsx eax, word [0x438c28]
push dword [0x438c50]
push eax
movsx eax, byte [0x438c20]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
add dword [0x438c54], eax
push 0x60fffff
movsx eax, word [0x438c2c]
or eax, 0xcac9ffff
push 0xbe9bffff
mov dword [0x438c58], eax
call fcn.0040a933
add word [0x438c2c], ax
pop ecx
pop ecx
push dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
call fcn.00417cc0
push 0xfc97ffff
push dword [0x438c38]
call fcn.0040ab0e
add dword [0x438c44], eax
xor eax, eax
cmp word [0x438c2c], bx
push 0x1b2fffff
push 0x2d5fffff
setne al
add byte [0x438c20], al
call fcn.0040aac5
add byte [0x438c19], al
mov eax, dword [ebp - 0x10]
add esp, 0x10
cmp eax, ebx
je 0x41498c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push 0x9021ffff
mov byte [0x438c21], al
push dword [0x438c44]
call fcn.0040a96f
add byte [0x438c21], al
mov al, byte [0x438c20]
neg al
mov dword [ebp - 0x10], ebx
mov byte [0x438c18], al
mov dword [ebp - 0x18], ebx
movsx eax, word [0x438c2e]
push eax
mov byte [ebp - 4], 3
movsx eax, byte [0x438c1b]
push eax
call fcn.0040aac5
add word [0x438c34], ax
mov al, byte [0x438c28]
push 0xffffffffffffffff
push 0x4381fc
mov word [0x438c32], 1
mov byte [0x438c1a], al
mov word [ebp - 0x50], 8
call fcn.00411ed7
mov dword [ebp - 0x48], eax
mov al, byte [0x438c54]
or al, byte [0x438c44]
add esp, 0x18
add byte [0x438c1c], al
call esi
lea edx, [ebp - 0x10]
lea esi, [ebp - 0x50]
push edx
add dword [0x438c38], eax
sub esp, 0x10
mov eax, dword [ebp - 0x20]
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 + 0x30]
push dword [ebp - 0x48]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
movsx eax, byte [0x438c18]
push eax
push 0x8125ffff
call fcn.0040ab0e
add dword [0x438c5c], eax
pop ecx
pop ecx
push dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
call fcn.00417cc0
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x414a79
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
add dword [0x438c58], 0x3f4bfffe
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
add word [0x438c2e], ax
cmp dword [ebp - 0x18], ebx
je 0x414ed3
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
movsx eax, word [0x438c24]
push 1
pop esi
push eax
push 0x5d0fffff
mov word [0x438c2c], si
call fcn.0040a9a5
push 0x47bfffff
push 0x8225ffff
mov dword [0x438c48], eax
call fcn.0040ab0e
mov byte [0x438c1c], al
mov dword [ebp - 0x14], ebx
push 0x9d4bffff
push 0x7b7fffff
mov byte [ebp - 4], 4
call fcn.0040a9de
add byte [0x438c1a], al
mov word [ebp - 0x50], 3
movsx eax, word [0x438c24]
push eax
push 0xcc1bffff
call fcn.0040ab0e
push dword [0x438c3c]
add dword [0x438c4c], 0x6103ffff
mov dword [0x438c5c], eax
mov eax, dword [ebp + 0xc]
push 0x3921ffff
mov dword [ebp - 0x48], eax
call fcn.0040a96f
add esp, 0x28
lea edx, [ebp - 0x10]
mov dword [0x438c44], esi
lea esi, [ebp - 0x50]
push edx
add byte [0x438c1a], al
sub esp, 0x10
mov eax, dword [0x438c3c]
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 - 0x50]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
inc eax
add word [0x438c34], ax
mov eax, dword [ebp - 0x18]
movsd dword es:[edi], dword [esi]
mov ecx, dword [eax]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x2c]
push dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
call fcn.00417e11
movsx eax, byte [0x438c1a]
push dword [0x438c44]
or word [0x438c32], 0xffff
and eax, 0x696bffff
add dword [0x438c4c], eax
push 0xd393ffff
call fcn.0040a9a5
mov byte [0x438c20], al
mov eax, dword [ebp - 0x10]
pop ecx
cmp eax, ebx
pop ecx
je 0x414bba
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0xb153ffff
push 0x6eebffff
call fcn.0040aa4f
cmp word [0x438c24], bx
pop ecx
pop ecx
mov dword [0x438c40], eax
je 0x414be6
cmp byte [0x438c1a], bl
je 0x414be6
push 1
pop eax
jmp 0x414be8
xor eax, eax
add word [0x438c32], ax
push dword [0x438c4c]
movsx eax, word [0x438c28]
push eax
call fcn.0040a9de
add dword [0x438c44], eax
pop ecx
pop ecx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.USER32.dll_GetInputState]
add word [0x438c30], ax
cmp dword [ebp - 0x14], ebx
je 0x414ec2
movsx eax, word [0x438c30]
and eax, 0xc0c1ffff
add dword [0x438c5c], eax
movsx eax, word [0x438c34]
push eax
push 0xd059ffff
call fcn.0040ab0e
pop ecx
mov dword [0x438c48], eax
pop ecx
lea ecx, [ebp - 0x28]
call fcn.00427e77
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x28]
push edx
push eax
mov ecx, dword [eax]
mov byte [ebp - 4], 5
call dword [ecx + 0x20]
test eax, eax
jl 0x414e89
movsx eax, word [0x438c2e]
and eax, dword [0x438c40]
lea ecx, [ebp - 0x28]
mov dword [0x438c58], eax
call fcn.00428811
mov esi, eax
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x50]
mov byte [ebp - 0x50], 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 - 0x50]
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 - 0x30]
mov byte [ebp - 4], 6
call fcn.00428811
mov esi, eax
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x40]
mov byte [ebp - 0x40], 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 - 0x40]
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_]
dec word [0x438c32]
push 0xb907ffff
push 0x567ffff
mov byte [ebp - 4], 7
call fcn.0040a8f9
pop ecx
mov byte [0x438c1e], al
pop ecx
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 0x64]
dec eax
cmp eax, ebx
mov dword [ebp + 8], eax
jl 0x414e23
add ecx, 0x3c
mov dword [ebp + 0xc], ecx
push 0x7c97ffff
push 0x2eb1ffff
call fcn.0040a96f
mov esi, dword [ebp + 0xc]
add dword [0x438c38], eax
lea edi, [ebp - 0x60]
pop ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x60]
movsd dword es:[edi], dword [esi]
call fcn.00409faf
mov eax, dword [ebp - 0x58]
mov eax, dword [eax]
cmp dword [eax + 8], ebx
jbe 0x414d56
dec dword [ebp + 8]
jns 0x414d16
jmp 0x414e23
movsx eax, word [0x438c32]
push eax
movsx eax, byte [0x438c20]
push eax
call fcn.0040ab0e
add dword [0x438c38], eax
movsx eax, word [0x438c22]
push eax
push dword [0x438c58]
call fcn.0040aa4f
mov ecx, dword [0x438c40]
mov esi, dword [ebp + 0xc]
mov word [0x438c30], ax
mov eax, dword [0x438c44]
lea edi, [ebp - 0x60]
add esp, 0x10
lea eax, [eax + ecx + 0xcf3ffff]
lea ecx, [ebp - 0x60]
mov dword [0x438c44], eax
push dword [ebp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00409faf
mov eax, dword [ebp - 0x58]
mov ecx, dword [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 - 0x50]
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 esi, dword [ebp + 0xc]
lea edi, [ebp - 0x60]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push dword [ebp + 8]
lea ecx, [ebp - 0x60]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00409faf
mov eax, dword [ebp - 0x58]
mov ecx, dword [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]
add ecx, 0x10
push dword [eax]
lea eax, [ebp - 0x40]
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_]
movsx eax, byte [0x438c1f]
and eax, 0x70d9ffff
add dword [0x438c44], eax
movsx eax, word [0x438c2a]
and eax, 0x8569ffff
add dword [0x438c50], eax
or word [0x438c34], 0xffff
push 0xe939ffff
push 0x8b61ffff
call fcn.0040ab0e
add byte [0x438c20], al
push 0x2869ffff
movsx eax, byte [0x438c1e]
push eax
call fcn.0040aac5
add byte [0x438c1f], al
add esp, 0x10
lea ecx, [ebp - 0x28]
call fcn.00428981
lea ecx, [ebp - 0x30]
call fcn.00428981
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
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 - 0x50]
mov byte [ebp - 4], 5
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
add dword [0x438c4c], 0x45f1fffe
call dword [sym.imp.USER32.dll_GetActiveWindow]
add word [0x438c32], ax
push 0x2ae7ffff
push 0xe393ffff
call fcn.0040aa18
pop ecx
mov dword [0x438c4c], eax
pop ecx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.00427ed6
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x414ed3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x414ee4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x414ef5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.00427ed6
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
jmp 0x414f0d
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x414f17
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc