Function at 0x10021ef3
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10063f82
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xd4
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x20]
test eax, eax
je 0x10021fed
lea eax, [ebp + 0x14]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x74]
movzx eax, byte [eax]
test eax, eax
je 0x10021fba
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x8c], eax
push dword [ebp - 0x84]
mov ecx, dword [ebp - 0xa8]
call fcn.1002283c
mov ecx, dword [ebp - 0x8c]
mov ecx, dword [ecx]
mov dword [eax], ecx
jmp 0x10021fe8
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x78]
mov ecx, dword [ecx]
mov dword [eax], ecx
jmp 0x10022362
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x98], eax
push 4
lea ecx, [ebp - 0x34]
call fcn.1001a8b6
and dword [ebp - 4], 0
mov dword [ebp - 0x64], 0xfffffffe
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x88], 0x305aba9a
mov dword [ebp - 0x14], 0
jmp 0x1002202c
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 4
jge 0x10022042
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0xcc], 0xffffffff
jmp 0x10022025
mov dword [ebp - 0x14], 0
jmp 0x10022052
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 4
jge 0x1002206b
push dword [ebp - 0x14]
lea ecx, [ebp - 0x34]
call fcn.1001a954
mov dword [eax], 5
jmp 0x1002204b
mov dword [ebp - 0x5c], 0x537c
mov dword [ebp - 0x90], 0x10008fb8
cmp dword [ebp - 0x5c], 0x558b
jle 0x10022101
and dword [ebp - 0x28], 0
jmp 0x10022092
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xa63
jge 0x100220f9
and dword [ebp - 0x1c], 0
jmp 0x100220a8
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x3007
jge 0x100220f7
and dword [ebp - 0x20], 0
jmp 0x100220be
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x60b4
jge 0x100220f5
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x20]
cdq
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], edx
push dword [ebp - 0xb8]
push dword [ebp - 0xbc]
mov ecx, 0x1060d4b8
call fcn.1001a685
jmp 0x100220b7
jmp 0x100220a1
jmp 0x1002208b
push 0
call dword [sym.imp.USER32.dll_DestroyCursor]
push 2
lea ecx, [ebp - 0x34]
call fcn.1001a954
mov dword [eax], 3
jmp 0x1002212b
push 2
lea ecx, [ebp - 0x34]
call fcn.1001a954
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x60]
mov dword [ecx], eax
push 2
lea ecx, [ebp - 0x34]
call fcn.1001a954
cmp dword [eax], 0
jl 0x100222fe
mov dword [ebp - 0x24], 0
jmp 0x1002214e
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 4
jge 0x10022164
mov eax, dword [ebp - 0x24]
mov dword [ebp + eax*4 - 0xe4], 9
jmp 0x10022147
mov byte [ebp - 0x15], 0
movzx eax, byte [ebp - 0x15]
test eax, eax
je 0x10022176
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov dword [ebp - 0x64], 1
push 2
lea ecx, [ebp - 0x34]
call fcn.1001a954
mov eax, dword [eax]
mov dword [ebp - 0x64], eax
push 2
lea ecx, [ebp - 0x34]
call fcn.1001a954
cmp dword [eax], 9
jne 0x100221a4
mov dword [ebp - 0x40], 1
jmp 0x100221a8
and dword [ebp - 0x40], 0
mov esi, dword [ebp - 0x3c]
push 2
lea ecx, [ebp - 0x34]
call fcn.1001a954
mov ecx, dword [ebp - 0x40]
imul ecx, dword [eax]
cmp ecx, esi
jne 0x100221c8
mov dword [ebp - 0x38], 1
jmp 0x100221cc
and dword [ebp - 0x38], 0
cmp dword [ebp - 0x38], 8
jle 0x100221db
mov dword [ebp - 0x48], 1
jmp 0x100221df
and dword [ebp - 0x48], 0
cmp dword [ebp - 0x48], 0xcea445a8
ja 0x100221f1
mov dword [ebp - 0x80], 1
jmp 0x100221f5
and dword [ebp - 0x80], 0
push 2
lea ecx, [ebp - 0x34]
call fcn.1001a954
mov eax, dword [eax]
mov eax, dword [ebp + eax*4 - 0xcc]
mov dword [ebp - 0xd0], eax
push 2
lea ecx, [ebp - 0x34]
call fcn.1001a954
mov eax, dword [eax]
mov eax, dword [ebp + eax*4 - 0xcc]
mov dword [ebp - 0xd4], eax
push 4
pop eax
shl eax, 1
mov esi, dword [ebp + eax - 0xcc]
push 2
lea ecx, [ebp - 0x34]
call fcn.1001a954
mov eax, dword [eax]
cmp dword [ebp + eax*4 - 0xcc], esi
jl 0x10022251
mov dword [ebp - 0x58], 1
jmp 0x10022255
and dword [ebp - 0x58], 0
push 2
lea ecx, [ebp - 0x34]
call fcn.1001a954
mov eax, dword [eax]
mov ecx, dword [ebp - 0x58]
sub ecx, dword [ebp + eax*4 - 0xcc]
mov dword [ebp - 0x50], ecx
push 4
pop eax
shl eax, 1
mov ecx, dword [ebp - 0x50]
mov dword [ebp + eax - 0xcc], ecx
push 4
pop eax
imul eax, eax, 0
mov esi, dword [ebp + eax - 0xe4]
push 2
lea ecx, [ebp - 0x34]
call fcn.1001a954
mov ecx, dword [ebp - 0x50]
imul ecx, dword [eax]
cmp ecx, esi
jg 0x100222a7
mov dword [ebp - 0x44], 1
jmp 0x100222ab
and dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x3c]
cmp dword [ebp - 0x44], eax
jne 0x100222be
xor eax, eax
inc eax
jne 0x100222be
and dword [ebp - 0x4c], 0
jmp 0x100222c5
mov dword [ebp - 0x4c], 1
push 4
pop eax
imul eax, eax, 3
mov eax, dword [ebp + eax - 0xe4]
cmp dword [ebp - 0x4c], eax
jne 0x100222e0
mov dword [ebp - 0x54], 1
jmp 0x100222e4
and dword [ebp - 0x54], 0
push 3
lea ecx, [ebp - 0x34]
call fcn.1001a954
mov ecx, dword [ebp - 0x54]
add ecx, dword [eax]
mov dword [ebp - 0x88], ecx
jmp 0x10022113
mov byte [ebp - 4], 1
cmp dword [ebp - 0x5c], 0x51fe
jge 0x1002231b
mov edx, dword [ebp - 0x90]
mov ecx, 0x1060d4b8
call fcn.1001cb90
jmp 0x10022337
and dword [ebp - 4], 0
jmp 0x10022341
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.1001a938
push 0
push 0x2213
push dword [ebp - 0x98]
call fcn.1001efed
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret