Function at 0x40bfa8
Capabilities:
Identify system language via api

Disassembly:
mov eax, 0x40fa91
call fcn.0040ee68
sub esp, 0x5b4
mov eax, dword [0x414300]
push ebx
and eax, 0x3c7bffff
push esi
add dword [0x414314], eax
mov al, byte [ebp + 0x1b]
xor esi, esi
push edi
push esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], esi
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_]
push 1
pop edi
push 0x6f55ffff
push 0x9dadffff
mov dword [ebp - 4], edi
call fcn.00401d79
mov dword [0x414310], eax
mov eax, dword [ebp + 0x28]
pop ecx
cmp eax, esi
pop ecx
je 0x40c005
mov dword [eax], esi
movsx eax, byte [0x4142e2]
mov ecx, dword [0x41430c]
dec word [0x4142fc]
lea eax, [ecx + eax - 0x4840001]
mov dword [0x41430c], eax
lea eax, [ebp - 0x1c0]
push eax
push 0x101
call dword [0x417230]
movsx eax, byte [0x4142e7]
push 0xc9c7ffff
push eax
call fcn.00401e67
cmp dword [ebp + 0x18], esi
pop ecx
pop ecx
mov word [0x4142f0], ax
jne 0x40c0b4
push dword [0x414304]
push 0xa3dfffff
call fcn.00401e15
mov byte [0x4142e6], al
mov eax, dword [ebp + 0xc]
pop ecx
mov eax, dword [eax + 4]
pop ecx
cmp eax, esi
jne 0x40c07c
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
call dword [0x417238]
cmp byte [0x4142e9], 0
setne cl
cmp eax, esi
mov byte [0x4142e7], cl
je 0x40c0a5
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
cmp eax, esi
je 0x40c0a5
mov eax, dword [eax]
mov dword [ebp + 0x18], eax
mov ax, word [0x4142fc]
neg ax
mov word [0x4142f0], ax
inc dword [0x414300]
cmp dword [ebp + 0x18], esi
je 0x40c45c
dec word [0x4142ec]
push 6
push edi
push 2
call dword [0x41723c]
mov dword [ebp + 0xc], eax
push 0xaed7ffff
movsx eax, word [0x4142f2]
push eax
call fcn.00401ce9
add byte [0x4142e6], al
or ebx, 0xffffffff
cmp dword [ebp + 0xc], ebx
pop ecx
pop ecx
je 0x40c45c
sub dword [0x414314], 0x7f2e0000
cmp dword [ebp + 0x1c], ebx
push 4
mov esi, 0xffff
pop edi
je 0x40c129
lea eax, [ebp + 0x1c]
push edi
push eax
push 0x1005
push esi
push dword [ebp + 0xc]
call dword [0x417240]
push 0x470fffff
push 0x14f7ffff
call fcn.00401d79
add dword [0x414310], eax
cmp dword [ebp + 0x20], ebx
pop ecx
pop ecx
je 0x40c159
lea eax, [ebp + 0x20]
push edi
push eax
push 0x1006
push esi
push dword [ebp + 0xc]
call dword [0x417240]
movsx eax, byte [0x4142e9]
inc dword [0x414310]
push 0x353fffff
push eax
mov word [ebp - 0x30], 2
call fcn.00401bcc
add byte [0x4142e9], al
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x2c], eax
push 0x50abffff
movsx eax, word [0x4142f4]
push eax
call fcn.00401ca7
mov byte [0x4142e6], al
mov eax, dword [ebp + 0x10]
mov cl, al
add esp, 0x10
and cx, 0xff
shl ecx, 8
sar eax, 8
add ecx, eax
mov eax, dword [0x41431c]
imul eax, eax, 0x75fbffff
mov dword [0x41431c], eax
lea eax, [ebp - 0x30]
push 0x10
push eax
push dword [ebp + 0xc]
mov word [ebp - 0x2e], cx
call dword [0x417244]
cmp eax, ebx
je 0x40c425
cmp word [0x4142fc], 0
jne 0x40c1f7
cmp word [0x4142f4], 0
jne 0x40c1f7
and byte [0x4142e2], 0
jmp 0x40c1fe
mov byte [0x4142e2], 1
push 0x661ffff
push 0x59d5ffff
call fcn.00401c1e
push dword [0x414308]
mov word [0x4142ea], ax
movsx eax, byte [0x4142e5]
push eax
mov dword [ebp + 0x18], edi
call fcn.00401d2a
add esp, 0x10
mov byte [0x4142e7], al
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp + 0x10]
push eax
push 0x2003
push esi
push dword [ebp + 0xc]
call dword [0x417248]
cmp eax, ebx
je 0x40c425
push 0xa8fffff
push 0x2a9fffff
call fcn.00401d79
add byte [0x4142e6], al
xor edi, edi
movsx eax, byte [0x4142e1]
push eax
push dword [0x41430c]
call fcn.00401d79
mov esi, dword [ebp + 0x14]
add word [0x4142fc], ax
add esp, 0x10
cmp dword [esi + 8], edi
jbe 0x40c31a
movsx ax, byte [0x4142e8]
imul ax, word [0x4142f4]
mov ebx, dword [ebp + 0x10]
mov word [0x4142f2], ax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov byte [0x4142e0], al
mov eax, dword [esi + 8]
mov ecx, eax
sub ecx, edi
cmp ebx, ecx
jbe 0x40c2c3
sub eax, edi
mov ebx, eax
push 0x88fdffff
push 0xb7b3ffff
call fcn.00401d2a
add word [0x4142fa], ax
mov eax, dword [esi + 4]
pop ecx
test eax, eax
pop ecx
jne 0x40c2e7
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 0
add eax, edi
push ebx
push eax
push dword [ebp + 0xc]
call dword [0x41724c]
cmp eax, 0xffffffff
je 0x40c317
or ax, 0xffff
add edi, ebx
sub ax, word [0x4142ee]
mov word [0x4142fc], ax
cmp edi, dword [esi + 8]
jb 0x40c290
or ebx, 0xffffffff
movsx eax, byte [0x4142e1]
push eax
push 0x519dffff
call fcn.00401e15
add dword [0x41430c], eax
cmp edi, dword [esi + 8]
pop ecx
pop ecx
jne 0x40c425
movsx ax, byte [0x4142e6]
and eax, dword [0x41431c]
mov ecx, dword [0x414314]
dec byte [0x4142e5]
push ebx
mov word [0x4142ee], ax
movsx eax, word [0x4142f8]
lea eax, [ecx + eax + 0x3eb9ffff]
mov dword [0x414314], eax
call dword [sym.imp.USER32.dll_IsCharLowerA]
mov edi, dword [ebp + 0x24]
mov byte [0x4142e3], al
push 0
lea eax, [ebp - 0x5c0]
push 0x400
push eax
push dword [ebp + 0xc]
mov byte [0x4142e9], 1
call dword [0x417250]
push 0x9777ffff
push 0xcf81ffff
mov esi, eax
call fcn.00401d79
add byte [0x4142e4], al
pop ecx
test esi, esi
pop ecx
jle 0x40c41c
mov ax, word [0x414300]
push esi
sub word [0x4142fa], ax
lea eax, [ebp - 0x5c0]
push eax
lea ecx, [ebp - 0x20]
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_char_const___unsigned_int_]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
add dword [0x414308], eax
cmp edi, ebx
je 0x40c37f
call dword [sym.imp.USER32.dll_GetCapture]
cmp dword [ebp - 0x18], edi
mov byte [0x4142e1], al
jb 0x40c37f
mov al, byte [0x414308]
inc al
add byte [0x4142e1], al
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x40c40f
or dword [eax], 1
push ebx
call dword [sym.imp.USER32.dll_IsCharAlphaNumericA]
add byte [0x4142e5], al
mov word [0x4142ec], 1
movsx eax, byte [0x4142e4]
push eax
push dword [0x414320]
call fcn.00401d79
add byte [0x4142e1], al
pop ecx
pop ecx
push dword [ebp + 0xc]
call dword [0x417254]
xor eax, eax
push 1
cmp byte [0x4142e1], al
pop edi
setne al
mov dword [0x414308], eax
movsx eax, byte [0x4142e9]
push eax
push 0x65e1ffff
call fcn.00401c74
pop ecx
mov byte [0x4142e3], al
pop ecx
call dword [0x417234]
mov ax, word [0x4142f4]
mov esi, dword [ebp + 8]
dec ax
push 0
mov word [0x4142fa], ax
mov al, byte [ebp - 0x20]
mov ecx, esi
mov byte [esi], 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, esi
push dword [eax]
lea eax, [ebp - 0x20]
push 0
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], edi
and byte [ebp - 4], 0
push edi
lea ecx, [ebp - 0x20]
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, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret