Function at 0x420b51
Capabilities:
Identify system language via api

Disassembly:
mov eax, 0x4311b8
call fcn.0042f2d0
sub esp, 0x60
push ebx
push esi
push edi
xor ebx, ebx
push dword [0x43ac04]
mov dword [ebp - 0x20], ebx
push 0xccdffff
call fcn.004116b5
mov dword [0x43abf4], eax
push 0x4191ffff
movsx eax, byte [0x43abcd]
push eax
call fcn.00411864
add word [0x43abe2], ax
push 0xd67ffff
movsx eax, word [0x43abd4]
push eax
call fcn.00411706
add dword [0x43ac04], eax
add esp, 0x18
test byte [0x43b1f0], 1
jne 0x420bea
mov al, byte [ebp + 0xb]
or byte [0x43b1f0], 1
mov byte [0x43b210], al
mov al, byte [ebp + 0xb]
mov ecx, 0x43b210
mov byte [0x43b211], al
mov byte [0x43b218], bl
call fcn.00421a27
push 0x4214ac
call fcn.0042f2a4
pop ecx
movsx eax, word [0x43abda]
movsx ecx, byte [0x43abcd]
push dword [0x43ac00]
sub ecx, eax
mov ax, word [0x43abfc]
mov dword [0x43ac0c], ecx
push 0x2fd3ffff
mov word [0x43abdc], ax
call fcn.00411864
add dword [0x43abec], eax
pop ecx
test byte [0x43b1f0], 2
pop ecx
jne 0x420c4e
or byte [0x43b1f0], 2
push 0x43b1f8
push 0x50
call fcn.00415e1f
pop ecx
call eax
push 0x42149c
call fcn.0042f2a4
pop ecx
movsx eax, byte [0x43abce]
push 1
mov dword [ebp - 0x2c], ebx
pop edi
mov dword [ebp - 0x28], ebx
push eax
mov word [0x43abd6], di
movsx eax, byte [0x43abcf]
push eax
call fcn.004117ef
add byte [0x43abcf], al
mov eax, dword [ebp + 0xc]
push 0xaa39ffff
push 0xc2bfffff
mov dword [0x43abf0], edi
mov dword [ebp - 0x2c], eax
call fcn.004118af
add word [0x43abe4], ax
add esp, 0x10
movsx eax, byte [0x43abcb]
imul eax, eax, 0xffa3ffff
mov dword [0x43abec], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
mov al, byte [0x43abf4]
add al, byte [0x43abcf]
mov esi, 0x43b1f8
push esi
push 0x42
mov byte [0x43abca], al
mov dword [ebp - 0x18], esi
call fcn.00415e1f
pop ecx
call eax
push 0xd597ffff
mov dword [ebp - 4], edi
push dword [0x43ac0c]
mov dword [0x43abf4], 0x338c0001
call fcn.00411775
add word [0x43abe2], ax
pop ecx
movsx eax, word [0x43abe0]
pop ecx
movsx ecx, byte [0x43abca]
add eax, ecx
mov ecx, 0x43b210
mov dword [0x43ac0c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0042163e
cmp dword [0x43abf0], ebx
setne al
mov byte [0x43abc8], al
mov eax, dword [ebp - 0x1c]
cmp eax, dword [0x43b214]
je 0x420d80
mov ecx, dword [ebp + 8]
add eax, 0x14
mov dword [ebp + 0xc], eax
push ebx
mov al, byte [eax]
mov byte [ecx], 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, dword [ebp + 8]
push dword [eax]
push ebx
push dword [ebp + 0xc]
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 - 0x20], edi
push esi
push 0x53
mov byte [ebp - 4], bl
call fcn.00415e1f
pop ecx
call eax
mov eax, dword [ebp + 8]
jmp 0x42148a
push 0x6af5ffff
push 0x9481ffff
call fcn.00411775
add dword [0x43ac04], eax
cmp byte [0x43abcc], bl
pop ecx
pop ecx
jne 0x420daf
cmp word [0x43abda], bx
mov word [0x43abd4], bx
je 0x420db6
mov word [0x43abd4], di
add dword [0x43ac00], 0x2101ffff
push esi
push 0x53
mov byte [ebp - 4], bl
call fcn.00415e1f
pop ecx
call eax
mov al, byte [ebp + 0xb]
inc word [0x43abe2]
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 0x3c], 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 dword [ebp - 4], 2
mov dword [0x43abf0], edi
call fcn.00420024
mov dword [ebp - 0x24], eax
push 4
movsx eax, word [0x43abda]
and eax, 0x3043ffff
mov dword [0x43abec], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll_memcpy
mov ax, word [0x43abd2]
add esp, 0xc
mov word [0x43abd6], ax
mov eax, dword [ebp + 0xc]
cmp eax, ebx
jne 0x420e3a
movzx eax, byte [ebp - 0x10]
shr eax, 5
add eax, 4
mov dword [ebp - 0x14], eax
push 0x71e9ffff
movsx eax, byte [0x43abce]
push eax
call fcn.004117ef
add word [0x43abd8], ax
push 0xdb79ffff
push 0xab53ffff
call fcn.004117b3
mov byte [0x43abcd], al
mov eax, dword [0x434370]
push 0x999bffff
push 0x9a3bffff
mov dword [ebp + 0xc], eax
call fcn.004117b3
add dword [0x43ac04], eax
mov ecx, dword [0x434374]
mov eax, dword [0x43ac0c]
mov dword [ebp - 0x18], ecx
add byte [0x43abd0], al
add esp, 0x18
xor ecx, ecx
cmp eax, ebx
setne cl
mov word [0x43abd8], cx
movsx ecx, byte [0x43abd1]
lea eax, [eax + ecx - 0x45ee0001]
mov dword [0x43ac0c], eax
mov eax, dword [0x434378]
mov dword [ebp - 0x1c], eax
xor eax, eax
cmp byte [0x43abcc], bl
setne al
add byte [0x43abcc], al
mov eax, dword [ebp + 0xc]
mov al, byte [eax]
add al, 0x76
movzx eax, al
add eax, 3
and al, 0xfc
call fcn.0042f2f0
mov edx, dword [ebp + 0xc]
mov ecx, esp
call fcn.0042b788
mov dword [ebp + 0xc], eax
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x6c]
mov byte [ebp - 0x6c], 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 [ebp + 0xc]
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea ecx, [ebp - 0x6c]
push dword [ebp + 0xc]
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_]
movsx eax, word [0x43abda]
and eax, 0x3eefffff
mov byte [ebp - 4], 3
mov dword [0x43abe8], eax
movsx eax, word [0x43abd4]
push eax
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
mov word [0x43abd4], ax
mov al, byte [0x43abf4]
sub al, byte [0x43ac08]
add byte [0x43abcf], al
mov eax, dword [ebp - 0x18]
mov al, byte [eax]
add al, 0x76
movzx eax, al
add eax, 3
and al, 0xfc
call fcn.0042f2f0
mov edx, dword [ebp - 0x18]
mov ecx, esp
call fcn.0042b788
mov dword [ebp + 0xc], eax
mov al, byte [ebp + 0xb]
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 dword [ebp + 0xc]
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea ecx, [ebp - 0x5c]
push dword [ebp + 0xc]
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_]
xor eax, eax
cmp dword [0x43ac00], ebx
push 0x90e7ffff
push 0xb971ffff
setne al
add word [0x43abe0], ax
mov byte [ebp - 4], 4
call fcn.004117ef
add dword [0x43ac04], eax
mov al, byte [0x43abcd]
pop ecx
pop ecx
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaA]
mov dword [0x43abf0], eax
mov eax, dword [ebp - 0x1c]
mov al, byte [eax]
add al, 0x76
movzx eax, al
add eax, 3
and al, 0xfc
call fcn.0042f2f0
mov edx, dword [ebp - 0x1c]
mov ecx, esp
call fcn.0042b788
mov dword [ebp + 0xc], eax
mov al, byte [ebp + 0xb]
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_]
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea ecx, [ebp - 0x4c]
push dword [ebp + 0xc]
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_]
movsx eax, word [0x43abdc]
and eax, 0x3209ffff
xor edx, edx
mov dword [0x43abfc], eax
mov byte [ebp - 4], 5
movzx eax, byte [ebp - 0xf]
div dword [ebp - 0x64]
cmp dword [ebp - 0x64], edx
mov dword [ebp + 0xc], edx
ja 0x421051
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xran_void_]
lea ecx, [ebp - 0x6c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp + 0xc]
mov al, byte [eax + ecx]
lea ecx, [ebp - 0x3c]
mov byte [ebp + 0xc], al
push dword [ebp + 0xc]
push edi
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_unsigned_int__char_]
inc byte [0x43abcf]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
add dword [0x43abf4], eax
push dword [0x43abf4]
push dword [0x43abf0]
call fcn.00411706
add byte [0x43abcc], al
cmp dword [0x43ac08], ebx
pop ecx
mov dword [ebp + 0xc], 2
pop ecx
jne 0x4210bc
cmp dword [0x43abe8], ebx
jne 0x4210bc
xor eax, eax
jmp 0x4210be
mov eax, edi
movzx ecx, byte [ebp - 0xe]
add dword [0x43abf4], eax
mov eax, dword [ebp + 0x10]
movzx edx, byte [ebp - 0xd]
shl ecx, 8
add eax, ecx
add edx, eax
push edx
call dword [sym.imp.MSVCRT.dll_srand]
mov dword [esp], 0xf7bffff
push 0x8f33ffff
call fcn.00411738
add dword [0x43ac04], eax
push 0xdc51ffff
push 0x4673ffff
call fcn.004117b3
add esp, 0x10
add byte [0x43abd1], al
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x34], eax
jae 0x4212e4
movsx eax, word [0x43abe0]
push eax
push 0x5fd9ffff
call fcn.00411738
add byte [0x43abcc], al
push 0xd3fdffff
push 0x8013ffff
call fcn.0041181a
add word [0x43abda], ax
or word [0x43abde], 0xffff
add esp, 0x10
cmp dword [ebp + 0xc], 2
jne 0x421225
movsx eax, byte [0x43abd1]
push eax
push 0xb1bfffff
call fcn.00411906
add word [0x43abda], ax
pop ecx
movsx eax, byte [0x43abcb]
pop ecx
mov ecx, 0x5aafffff
sub ecx, eax
mov eax, dword [ebp - 0x54]
mov dword [0x43abe8], ecx
mov dword [ebp + 0xc], eax
call dword [sym.imp.MSVCRT.dll_rand]
xor edx, edx
div dword [ebp + 0xc]
cmp dword [ebp - 0x54], edx
mov dword [ebp + 0xc], edx
ja 0x4211a9
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xran_void_]
lea ecx, [ebp - 0x5c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp + 0xc]
mov al, byte [eax + ecx]
lea ecx, [ebp - 0x3c]
mov byte [ebp + 0x10], al
push dword [ebp + 0x10]
push edi
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_unsigned_int__char_]
movsx eax, byte [0x43abcf]
push eax
movsx eax, byte [0x43abd1]
push eax
call fcn.00411906
mov byte [0x43abc9], al
movsx eax, byte [0x43abcf]
push eax
push 0xfbffffff
call fcn.00411864
mov dword [0x43ac04], eax
mov dword [ebp + 0xc], 3
movsx eax, word [0x43abd8]
push eax
movsx eax, byte [0x43abcb]
push eax
call fcn.004116b5
add esp, 0x18
mov byte [0x43abd1], al
jmp 0x42110c
mov eax, dword [ebp - 0x44]
mov byte [0x43abca], 1
mov dword [ebp + 0xc], eax
call dword [sym.imp.MSVCRT.dll_rand]
xor edx, edx
div dword [ebp + 0xc]
cmp dword [ebp - 0x44], edx
mov dword [ebp + 0xc], edx
ja 0x42124b
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xran_void_]
lea ecx, [ebp - 0x4c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp + 0xc]
mov al, byte [eax + ecx]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 0x1c], al
push dword [ebp - 0x1c]
push edi
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_unsigned_int__char_]
inc byte [0x43abcd]
push 0x38ffffff
push 0x5ddbffff
call fcn.00411864
mov byte [0x43abcf], al
push 0x3addffff
movsx eax, byte [0x43abca]
push eax
call fcn.004118af
push dword [0x43abf4]
mov word [0x43abe2], ax
mov dword [ebp + 0xc], 2
push dword [0x43abf0]
call fcn.00411775
mov dword [0x43ac08], eax
mov ax, word [0x43abec]
add ax, word [0x43abd8]
add esp, 0x18
mov word [0x43abd4], ax
call dword [sym.imp.USER32.dll_GetCursor]
add word [0x43abd6], ax
jmp 0x42110c
movsx eax, byte [0x43abcc]
push eax
push 0x3da9ffff
call fcn.004117ef
pop ecx
mov dword [0x43abfc], eax
mov ax, word [0x43ac00]
pop ecx
sub word [0x43abde], ax
push esi
push 0x42
mov dword [ebp + 0xc], esi
call fcn.00415e1f
pop ecx
call eax
push 0x19fdffff
mov byte [ebp - 4], 6
push dword [0x43abfc]
call fcn.00411775
mov byte [0x43abc9], al
push 0x46e3ffff
movsx eax, word [0x43abd8]
push eax
call fcn.00411775
add esp, 0x10
mov dword [0x43abec], eax
lea eax, [ebp - 0x2c]
mov ecx, 0x43b210
push eax
call fcn.004214bb
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
push dword [ecx]
lea ecx, [ebp - 0x3c]
push ebx
push ecx
mov ecx, 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_]
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_IsCharUpperA]
add word [0x43abd4], ax
push esi
push 0x53
mov byte [ebp - 4], 5
call fcn.00415e1f
pop ecx
call eax
push 0xca6fffff
call dword [sym.imp.USER32.dll_IsMenu]
add dword [0x43abe8], eax
movsx eax, word [0x43abde]
push eax
push 0xd7a3ffff
call fcn.0041181a
add byte [0x43abcd], al
push 0xd389ffff
push 0x8409ffff
call fcn.00411906
mov word [0x43abd2], ax
xor eax, eax
cmp byte [0x43abca], bl
push 0x4b
setne al
mov word [0x43abe0], ax
call fcn.00415e1f
add esp, 0x14
call eax
add eax, dword [0x43b220]
inc dword [0x43b220]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
cmp word [0x43abda], bx
mov dword [esp], 0x5e5dffff
setne al
or byte [0x43abce], 0xff
mov byte [0x43abcf], al
movsx eax, al
push eax
call fcn.004118af
pop ecx
pop ecx
add word [0x43abd4], ax
mov esi, dword [ebp + 8]
mov al, byte [ebp - 0x3c]
push ebx
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 - 0x3c]
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_]
push edi
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x20], edi
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_]
push edi
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 3
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 - 0x6c]
mov byte [ebp - 4], 2
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], 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 eax, esi
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x78]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret