Function at 0x10008d50
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003e57b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
movsx eax, byte [0x10047ba9]
push ebx
mov ecx, eax
push esi
push edi
xor ebx, ebx
and ecx, 0x481fffff
push eax
mov dword [ebp - 0x10], ebx
mov dword [0x10047be0], ecx
call dword [sym.imp.USER32.dll_IsMenu]
movsx edx, word [0x10047bb2]
push 0x3db9ffff
push edx
mov byte [0x10047ba0], al
call fcn.10007700
mov dword [0x10047bc4], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x40]
push eax
push ecx
call fcn.10002640
add esp, 0x10
mov dword [ebp - 4], ebx
mov byte [0x10047ba3], 1
mov dword [0x10047be0], 1
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov esi, dword [0x10041390]
mov dword [0x10047bc8], eax
mov al, byte [esi]
sub al, 0x7b
and eax, 0xff
add eax, 3
and al, 0xfc
call fcn.1002ce30
mov ecx, esp
mov edx, esi
call fcn.10008f20
mov edx, eax
mov al, byte [ebp + 0xf]
mov byte [ebp - 0x20], al
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
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__::assign_char_const___unsigned_int_]
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x40]
push ecx
lea eax, [ebp - 0x30]
push edx
push eax
mov byte [ebp - 4], 1
call fcn.100084d0
add esp, 0xc
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x10008e64
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x10008e5b
cmp al, 0xff
je 0x10008e5b
dec al
mov byte [ecx], al
jmp 0x10008e64
push ecx
call fcn.1002cda0
add esp, 4
push 0xffffffffffffffff
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.USER32.dll_IsCharUpperA]
mov byte [0x10047ba1], al
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov esi, dword [ebp + 8]
mov cl, byte [ebp - 0x30]
mov byte [0x10047ba6], al
mov byte [esi], cl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea ecx, [ebp - 0x30]
mov eax, dword [edx]
push eax
push ebx
push ecx
mov ecx, esi
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 ecx, dword [ebp - 0x2c]
cmp ecx, ebx
je 0x10008ecf
mov al, byte [ecx - 1]
cmp al, bl
je 0x10008ec5
cmp al, 0xff
je 0x10008ec5
dec al
mov byte [ecx - 1], al
jmp 0x10008ecf
dec ecx
push ecx
call fcn.1002cda0
add esp, 4
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], ebx
cmp ecx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
je 0x10008efb
mov al, byte [ecx - 1]
cmp al, bl
je 0x10008ef1
cmp al, 0xff
je 0x10008ef1
dec al
mov byte [ecx - 1], al
jmp 0x10008efb
dec ecx
push ecx
call fcn.1002cda0
add esp, 4
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x4c]
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret