Function at 0x408839
Capabilities:
Identify system language via api

Disassembly:
mov eax, 0x42f7c2
call fcn.0042e9c0
sub esp, 0xc0
push ebx
push esi
lea eax, [ebp - 0x21]
push edi
xor ebx, ebx
push eax
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x2c], ebx
call fcn.00409055
push 1
pop edi
push dword [0x438c38]
mov dword [ebp - 4], edi
push 0x8f99ffff
call fcn.0040ab0e
mov esi, dword [0x432d70]
mov dword [0x438c40], eax
pop ecx
mov al, byte [esi]
pop ecx
sub al, 3
movzx eax, al
add eax, 3
and al, 0xfc
call fcn.0042e9e0
mov eax, esp
push esi
push eax
call fcn.0042bd2b
pop ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.004095b0
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.0042e8fe
mov ecx, eax
call fcn.00408ecc
mov al, byte [0x438c3c]
push 0xea4dffff
imul byte [0x438c1a]
add byte [0x438c18], al
push 0x5d77ffff
mov byte [ebp - 4], 3
call fcn.0040aa18
pop ecx
mov byte [0x438c1a], al
pop ecx
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
je 0x408cc3
dec word [0x438c2a]
call fcn.00408fcf
cmp byte [0x438c1b], bl
mov dword [ebp - 0x20], eax
je 0x408919
cmp dword [0x438c44], ebx
je 0x408919
mov eax, edi
jmp 0x40891b
xor eax, eax
add byte [0x438c18], al
cmp word [0x438c34], bx
jne 0x408936
cmp byte [0x438c1c], bl
jne 0x408936
xor eax, eax
jmp 0x408938
mov eax, edi
add word [0x438c28], ax
push 0x116bffff
push 0xca6bffff
call fcn.0040aa4f
add word [0x438c2a], ax
cmp dword [ebp - 0x20], ebx
pop ecx
mov dword [ebp - 0x14], ebx
pop ecx
jle 0x408cc3
mov esi, 0x4380c4
push 0x3919ffff
push 0xb55dffff
call fcn.0040a9de
add byte [0x438c1b], al
cmp dword [ebp - 0x18], ebx
pop ecx
pop ecx
jne 0x40898e
push 0x80004003
call fcn.0042ee50
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push eax
call fcn.00408f9a
cmp dword [0x438c44], ebx
mov byte [ebp - 4], 4
jne 0x4089b8
cmp word [0x438c32], bx
mov byte [0x438c1d], bl
je 0x4089bf
mov byte [0x438c1d], 1
cmp word [0x438c30], bx
je 0x4089d4
cmp byte [0x438c1e], bl
je 0x4089d4
mov eax, edi
jmp 0x4089d6
xor eax, eax
add dword [0x438c4c], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax], ebx
je 0x408ca3
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
add word [0x438c22], ax
push 0x478dffff
push 0xde2fffff
call fcn.0040a933
add byte [0x438c1d], al
push 0x88
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 0xc
mov dword [ebp - 0x28], eax
cmp eax, ebx
mov byte [ebp - 4], 5
je 0x408a2a
mov ecx, eax
call fcn.00403a8a
jmp 0x408a2c
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [eax + 0x34], ebx
mov eax, dword [0x438c48]
mov byte [ebp - 4], 4
or eax, 0x2919ffff
mov dword [0x438c58], eax
movsx ax, byte [0x438c1a]
dec eax
add word [0x438c32], ax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x30], ebx
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x68], bl
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x69], bl
mov eax, dword [ebp - 0x10]
or dword [eax + 0x6c], 0xffffffff
mov eax, dword [ebp - 0x10]
or dword [eax + 0x70], 0xffffffff
movsx eax, word [0x438c28]
push eax
push dword [0x438c54]
call fcn.0040a96f
add dword [0x438c3c], eax
mov al, byte [ebp + 0xf]
pop ecx
mov byte [ebp - 0x3c], al
pop ecx
push ebx
lea ecx, [ebp - 0x3c]
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 - 0x3c]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x1c]
push dword [0x432d74]
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
call fcn.00409595
call fcn.0042e1f2
add esp, 0xc
cmp eax, ebx
je 0x408b58
movsx eax, word [0x438c2c]
push 0x8efffff
push eax
call fcn.0040a96f
mov dword [0x438c44], eax
or word [0x438c30], 0xffff
movsx eax, word [0x438c34]
push eax
movsx eax, word [0x438c2a]
push eax
call fcn.0040ab0e
mov byte [0x438c1a], al
lea eax, [ebp - 0x3c]
push eax
call fcn.00405275
mov ecx, dword [ebp - 0x10]
add esp, 0x14
mov dword [ecx + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
add word [0x438c30], ax
movsx eax, word [0x438c34]
push eax
movsx eax, word [0x438c26]
push eax
call fcn.0040a8f9
push 0x53d7ffff
mov dword [0x438c5c], eax
push dword [0x438c44]
call fcn.0040a9a5
add esp, 0x10
mov word [0x438c26], ax
mov al, byte [ebp + 0xf]
push ebx
lea ecx, [ebp - 0x4c]
mov byte [ebp - 0x4c], 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 - 0x4c]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x1c]
push dword [0x432d5c]
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
call fcn.00409595
call fcn.0042e1f2
add esp, 0xc
cmp eax, ebx
je 0x408bf7
mov al, byte [ebp + 0xf]
push ebx
lea ecx, [ebp - 0x5c]
mov byte [ebp - 0x5c], 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 - 0x5c]
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 - 0x5c]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.004076ce
add esp, 0xc
push eax
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 9
lea ecx, [eax + 0x78]
call fcn.004093be
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 8
call fcn.00409388
push edi
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 7
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x408c09
mov eax, dword [ebp + 0x10]
add eax, 0x78
push eax
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0x78]
call fcn.004093be
push dword [0x438c5c]
push 0x210bffff
call fcn.0040aa83
add dword [0x438c40], eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.00408839
add esp, 0x14
push eax
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 0xa
lea ecx, [eax + 0x38]
call fcn.0040911d
mov byte [ebp - 4], 7
cmp dword [ebp - 0xa0], ebx
je 0x408c5e
lea ecx, [ebp - 0xcc]
call fcn.004092a6
jmp 0x408c49
movsx eax, word [0x438c2a]
push 0x1045ffff
push eax
call fcn.0040aa4f
add dword [0x438c5c], eax
pop ecx
pop ecx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x9c]
call fcn.004092bd
push edi
lea ecx, [ebp - 0x4c]
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 edi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 4
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 - 0x1c]
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x408cb4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x20]
jl 0x408968
push 0x915fffff
push 0x4c79ffff
call fcn.0040aa18
add dword [0x438c54], eax
pop ecx
pop ecx
lea eax, [ebp - 0x9c]
mov ecx, dword [ebp + 8]
push eax
call fcn.00409085
mov dword [ebp - 0x2c], edi
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x408cfd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], bl
cmp dword [ebp - 0x70], ebx
je 0x408d12
lea ecx, [ebp - 0x9c]
call fcn.004092a6
jmp 0x408d00
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xd8]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret