Function at 0x1000f860
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003e782
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push esi
push edi
push 0xd171ffff
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
mov cl, byte [0x10047ba9]
mov bl, byte [0x10047ba4]
add cl, al
mov al, byte [0x10047ba2]
inc word [0x10047bae]
and al, bl
mov byte [0x10047ba9], cl
lea edx, [ebp - 0x4c]
movsx cx, al
add word [0x10047bb0], cx
push 0
push edx
call fcn.1000bb90
add esp, 8
mov al, byte [0x10047bb4]
mov bl, byte [0x10047ba6]
add bl, al
mov al, byte [0x10047ba9]
dec al
push 2
movsx ecx, al
push 0
and ecx, 0x18d7ffff
push 0
push 0x2e
mov dword [ebp - 4], 0
mov byte [0x10047ba6], bl
mov byte [0x10047ba9], al
mov dword [0x10047bd0], ecx
call fcn.100099d0
add esp, 4
call eax
mov ebx, eax
push 0xcd0dffff
push 0xf413ffff
mov dword [ebp - 0x20], ebx
call fcn.10007880
push 0x283fffff
push 0x50a7ffff
mov byte [0x10047ba0], al
call fcn.100075f0
mov ecx, dword [0x10047bc4]
add esp, 0x10
add ecx, eax
test ebx, ebx
mov dword [0x10047bc4], ecx
jne 0x1000f9a1
movsx edx, word [0x10047bb2]
mov esi, dword [0x10047bd8]
and edx, 0x5317ffff
add esi, edx
push 0xffffffffffffffff
mov dword [0x10047bd8], esi
call dword [sym.imp.USER32.dll_IsCharAlphaA]
mov cl, byte [0x10047ba6]
add cl, al
mov byte [0x10047ba6], cl
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x10010330
mov al, byte [ecx - 1]
test al, al
je 0x10010326
cmp al, 0xff
je 0x10010326
dec al
mov byte [ecx - 1], al
jmp 0x10010330
mov eax, dword [0x10047bc4]
push eax
push 0xac01ffff
call fcn.10007830
push 0x1635ffff
push 0xa951ffff
mov byte [0x10047ba9], al
call fcn.10007650
add word [0x10047bb8], ax
add esp, 0x10
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov ecx, dword [0x10047bd4]
mov edx, dword [0x10047bc0]
add ecx, eax
mov dword [0x10047bd4], ecx
movsx ecx, byte [0x10047ba6]
push ecx
push edx
call fcn.10007880
mov dl, byte [0x10047ba3]
mov esi, dword [0x10041528]
add dl, al
add esp, 8
mov byte [0x10047ba3], dl
mov al, byte [esi]
sub al, 0x7b
and eax, 0xff
add eax, 3
and al, 0xfc
call fcn.1002ce30
mov edi, dword [0x10048054]
mov ecx, esp
test edi, edi
jne 0x1000fa33
mov edi, 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
push 0
push 0
push 0
push 0
mov edx, esi
mov dword [ebp - 0x1c], edi
call fcn.10008f20
push eax
push 0
push 2
push 0x20
mov eax, edi
push 0xf01ff
push eax
push edi
push ebx
push 0x2c
call fcn.100099d0
add esp, 4
call eax
mov esi, eax
push 0x2f
mov dword [ebp - 0x1c], esi
call fcn.100099d0
push 0xd
call fcn.100099d0
mov cx, word [0x10047bbc]
mov al, byte [0x10047ba5]
add word [0x10047bb6], cx
add esp, 8
test al, al
jne 0x1000faa4
cmp word [0x10047bb8], 0
mov word [0x10047baa], 0
je 0x1000faad
mov word [0x10047baa], 1
mov edx, dword [0x10047bcc]
push 0x181bffff
push edx
call fcn.10007880
add esp, 8
mov byte [0x10047ba9], al
test esi, esi
jne 0x1000fb7e
movsx eax, word [0x10047bb6]
push eax
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
push esi
push 0x21
mov dword [0x10047bdc], eax
mov byte [0x10047ba4], 0
call fcn.100099d0
add esp, 4
call eax
mov eax, dword [0x10048054]
test eax, eax
jne 0x1000fb03
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 0x12
push eax
push ebx
push 0x2f
call fcn.100099d0
add esp, 4
call eax
test eax, eax
mov dword [ebp - 0x1c], eax
je 0x1000fb72
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push eax
push 0x2a
call fcn.100099d0
add esp, 4
call eax
test eax, eax
jne 0x1000fb4b
push 0xd
call fcn.100099d0
add esp, 4
call eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov cx, word [0x10047bb4]
add cx, ax
mov word [0x10047bb4], cx
sub cx, word [0x10047bd0]
mov word [0x10047bac], cx
jmp 0x1000fb7e
push 0xd
call fcn.100099d0
add esp, 4
call eax
mov ecx, dword [0x10047bc4]
push 0x4b65ffff
push ecx
call fcn.10007650
mov cl, byte [0x10047ba1]
movsx edx, word [0x10047baa]
add cl, al
push edx
movsx eax, byte [0x10047ba9]
push eax
mov byte [0x10047ba1], cl
call fcn.10007880
mov dl, byte [0x10047ba4]
add word [0x10047bb8], 0xfffe
add dl, al
mov eax, dword [ebp - 0x1c]
add esp, 0x10
mov byte [0x10047ba4], dl
test eax, eax
je 0x10010291
movsx edx, byte [0x10047ba2]
mov cl, byte [0x10047ba3]
push edx
inc cl
push 0xcd81ffff
mov byte [0x10047ba6], cl
mov word [0x10047bbc], 0xffff
call fcn.100077d0
mov esi, dword [0x1004152c]
mov dword [0x10047be4], eax
add esp, 8
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 esi, eax
mov al, byte [ebp - 0xd]
mov byte [ebp - 0x3c], al
xor eax, eax
mov edi, esi
or ecx, 0xffffffff
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [ebp - 0x3c]
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x1000fc75
mov edi, dword [ebp - 0x38]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x34], ebx
mov byte [eax + ebx], 0
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [ebp - 4], 1
mov eax, dword [ecx]
mov ecx, dword [0x10048058]
mov esi, eax
cmp ecx, esi
jae 0x1000fc8f
mov esi, ecx
sub eax, dword [ebp - 0x34]
cmp eax, esi
ja 0x1000fc9c
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test esi, esi
jbe 0x1000fce9
mov edx, dword [ebp - 0x34]
push 0
lea ecx, [ebp - 0x3c]
lea ebx, [edx + esi]
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x1000fce9
mov eax, dword [0x10048054]
test eax, eax
jne 0x1000fcc4
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]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
lea edi, [edx + ecx]
mov ecx, esi
mov esi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x34], ebx
mov byte [ecx + ebx], 0
mov edx, dword [0x10047be0]
push 0x27b5ffff
push edx
call fcn.10007880
mov esi, dword [0x10047bcc]
mov edx, dword [0x10047be0]
mov word [0x10047bb6], ax
add esp, 8
movsx eax, byte [0x10047ba6]
and eax, esi
mov dword [0x10047bd8], 1
add edx, eax
mov eax, dword [ebp - 0x38]
test eax, eax
mov dword [0x10047be0], edx
jne 0x1000fd36
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]
lea ecx, [ebp - 0x14]
push 0
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push eax
push 0x80000002
push 0x31
call fcn.100099d0
add esp, 4
call eax
test eax, eax
jl 0x1000feae
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
add word [0x10047baa], ax
mov al, byte [0x10047ba9]
mov esi, dword [0x10041530]
dec al
mov dword [0x10047bcc], 0x3a560001
mov byte [0x10047ba9], al
mov al, byte [esi]
sub al, 0x7b
and eax, 0xff
add eax, 3
and al, 0xfc
call fcn.1002ce30
mov ecx, esp
lea edx, [ebp - 0x18]
push 0
push edx
push 0
push 0x20006
push 0
push 0
push 0
mov edx, esi
call fcn.10008f20
push eax
mov eax, dword [ebp - 0x14]
push eax
push 0x31
call fcn.100099d0
add esp, 4
call eax
test eax, eax
jl 0x1000fe5f
mov esi, dword [0x10041534]
mov al, byte [esi]
sub al, 0x7b
and eax, 0xff
add eax, 3
and al, 0xfc
call fcn.1002ce30
mov eax, dword [ebp - 0x48]
mov ecx, esp
test eax, eax
jne 0x1000fdfb
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]
mov edx, dword [ebp - 0x44]
push edx
push eax
push 2
push 0
mov edx, esi
call fcn.10008f20
push eax
mov eax, dword [ebp - 0x18]
push eax
push 0x35
call fcn.100099d0
add esp, 4
call eax
mov ecx, dword [0x10047bd4]
mov edx, dword [0x10047bd0]
push ecx
push edx
call fcn.100077d0
mov byte [0x10047ba5], al
push 0x8609ffff
movsx eax, word [0x10047bb4]
push eax
call fcn.100077d0
mov ecx, dword [ebp - 0x18]
add esp, 0x10
mov word [0x10047bba], ax
push ecx
push 0x30
call fcn.100099d0
add esp, 4
call eax
movsx edx, byte [0x10047ba0]
push 0x9115ffff
push edx
call fcn.10007780
add word [0x10047bb6], ax
movsx eax, word [0x10047bbc]
movsx ecx, word [0x10047bb0]
push eax
push ecx
call fcn.10007830
mov edi, dword [0x10047bcc]
mov edx, dword [ebp - 0x14]
add esp, 0x10
add edi, eax
mov dword [0x10047bcc], edi
push edx
push 0x30
call fcn.100099d0
add esp, 4
call eax
push 0x7c1dffff
push 0x1343ffff
call fcn.100076b0
push 0x6153ffff
push 0x4677ffff
mov word [0x10047bb8], ax
call fcn.100077d0
mov esi, dword [0x10041538]
mov byte [0x10047ba0], al
add esp, 0x10
mov al, byte [esi]
sub al, 0x7b
and eax, 0xff
add eax, 3
and al, 0xfc
call fcn.1002ce30
mov ecx, esp
lea eax, [ebp - 0x14]
push 0
push eax
push 0
push 0x2001f
push 0
push 0
push 0
mov edx, esi
call fcn.10008f20
push eax
push 0x80000002
push 0x31
call fcn.100099d0
add esp, 4
call eax
test eax, eax
jl 0x1001023c
mov ecx, dword [0x10047bc0]
inc word [0x10047baa]
push ecx
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
mov esi, dword [0x1004153c]
add word [0x10047bb2], ax
mov al, byte [esi]
sub al, 0x7b
and eax, 0xff
add eax, 3
and al, 0xfc
call fcn.1002ce30
lea edx, [ebp - 0x18]
mov ecx, esp
push edx
lea eax, [ebp - 0x24]
push 0
push eax
push 0
mov edx, esi
call fcn.10008f20
mov ecx, dword [ebp - 0x14]
push eax
push ecx
push 0x34
call fcn.100099d0
add esp, 4
call eax
test eax, eax
jne 0x1001022c
cmp dword [ebp - 0x24], 7
jne 0x1001022c
mov edx, dword [ebp - 0x18]
mov eax, dword [0x10048058]
lea eax, [eax + edx + 1]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
push 0x8c17ffff
push 0x13a5ffff
mov dword [ebp - 0x28], ebx
call fcn.10007650
mov cl, byte [0x10047ba1]
add esp, 0xc
add cl, al
push 0xffffffffffffffff
mov byte [0x10047ba1], cl
call dword [sym.imp.USER32.dll_IsCharAlphaNumericA]
movsx ecx, byte [0x10047ba2]
add word [0x10047baa], ax
push 0x9639ffff
push ecx
call fcn.100077d0
add esp, 8
mov dword [0x10047bc0], eax
test ebx, ebx
je 0x1001022c
mov al, byte [0x10047bb4]
mov cl, byte [0x10047ba8]
imul cl
mov esi, dword [0x1004153c]
dec cl
mov byte [0x10047ba0], al
mov byte [0x10047ba8], cl
mov al, byte [esi]
sub al, 0x7b
and eax, 0xff
add eax, 3
and al, 0xfc
call fcn.1002ce30
lea edx, [ebp - 0x18]
mov ecx, esp
push edx
lea eax, [ebp - 0x24]
push ebx
push eax
push 0
mov edx, esi
call fcn.10008f20
mov ecx, dword [ebp - 0x14]
push eax
push ecx
push 0x34
call fcn.100099d0
add esp, 4
call eax
test eax, eax
jne 0x100101d6
movsx edx, byte [0x10047ba3]
movsx eax, byte [0x10047ba2]
push edx
push eax
call fcn.10007780
mov cl, byte [0x10047ba9]
add cl, al
mov byte [0x10047ba9], cl
lea ecx, [ebp - 0x18]
push ecx
push ebx
call fcn.10010ee0
mov edx, dword [ebp - 0x18]
mov eax, dword [0x10048058]
lea ecx, [eax + edx + 1]
mov al, byte [0x10047ba4]
test al, al
movsx eax, word [0x10047bb8]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [0x10047bdc]
setne dl
push eax
push ecx
mov byte [0x10047ba8], dl
call fcn.10007700
mov cl, byte [0x10047ba6]
add esp, 0x18
add cl, al
inc word [0x10047bba]
mov byte [0x10047ba6], cl
mov dl, byte [ebx]
inc ebx
test dl, dl
jne 0x100100e8
cmp byte [ebx], 0
je 0x100100f7
cmp byte [ebx], 0
je 0x100100dc
mov al, byte [ebx + 1]
inc ebx
test al, al
jne 0x100100ed
jmp 0x100100dc
movsx ecx, byte [0x10047ba7]
mov eax, dword [0x10047bd4]
push eax
push ecx
call fcn.100076b0
mov edi, dword [0x10048054]
add word [0x10047bb2], ax
add esp, 8
test edi, edi
jne 0x10010124
mov edi, 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]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x10048058]
mov byte [ebx + eax + 1], 0
mov ecx, dword [0x10047bdc]
push ecx
push 0xb1f1ffff
call fcn.10007740
push 0xd427ffff
push 0xdadffff
mov word [0x10047bb0], ax
call fcn.100077d0
mov cl, byte [0x10047ba2]
mov edx, dword [0x10047bc8]
mov esi, dword [0x1004153c]
add cl, al
add edx, 0x1540001
mov byte [0x10047ba2], cl
mov dword [0x10047be0], edx
mov al, byte [esi]
sub al, 0x7b
add esp, 0x10
and eax, 0xff
add eax, 3
and al, 0xfc
call fcn.1002ce30
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov ecx, esp
push eax
push edx
push 7
push 0
mov edx, esi
call fcn.10008f20
push eax
mov eax, dword [ebp - 0x14]
push eax
push 0x35
call fcn.100099d0
add esp, 4
call eax
mov ebx, dword [ebp - 0x28]
mov al, byte [0x10047bac]
mov cx, word [0x10047bae]
imul cl
mov dl, byte [0x10047ba9]
add dl, al
test cx, cx
mov byte [0x10047ba9], dl
jne 0x10010206
mov eax, dword [0x10047bd8]
mov byte [0x10047ba0], cl
test eax, eax
je 0x1001020d
mov byte [0x10047ba0], 1
movsx ecx, byte [0x10047ba1]
movsx edx, byte [0x10047ba3]
sub edx, ecx
push ebx
mov dword [0x10047bc8], edx
call fcn.1002cda0
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
push 0x30
call fcn.100099d0
add esp, 4
call eax
mov ecx, dword [0x10047bd0]
mov edx, dword [0x10047be0]
push ecx
push edx
call fcn.100077d0
add esp, 8
mov dword [0x10047bcc], eax
mov eax, dword [ebp - 0x1c]
push eax
push 0x2b
call fcn.100099d0
add esp, 4
call eax
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x1001028e
mov al, byte [ecx - 1]
test al, al
je 0x10010284
cmp al, 0xff
je 0x10010284
dec al
mov byte [ecx - 1], al
jmp 0x1001028e
dec ecx
push ecx
call fcn.1002cda0
add esp, 4
mov ebx, dword [ebp - 0x20]
push ebx
push 0x2b
mov byte [0x10047ba2], 0
call fcn.100099d0
add esp, 4
call eax
movsx ecx, word [0x10047bb6]
movsx edx, byte [0x10047ba6]
movsx eax, word [0x10047bae]
mov ebx, dword [0x10047be4]
and ecx, 0x2669ffff
add ebx, ecx
push edx
push eax
mov dword [0x10047be4], ebx
call fcn.10007780
mov cl, byte [0x10047ba0]
add esp, 8
add cl, al
mov al, byte [0x10047ba7]
test al, al
mov byte [0x10047ba0], cl
jne 0x10010303
cmp word [0x10047bbc], 0
mov dword [0x10047bcc], 0
je 0x1001030d
mov dword [0x10047bcc], 1
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x10010330
mov al, byte [ecx - 1]
test al, al
je 0x10010326
cmp al, 0xff
je 0x10010326
dec al
mov byte [ecx - 1], al
jmp 0x10010330
dec ecx
push ecx
call fcn.1002cda0
add esp, 4
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x58]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret