Function at 0x1006c91
Capabilities:
Identify system language via api

Disassembly:
mov eax, 0x1021355
call fcn.01014f68
sub esp, 0x38
mov eax, dword [0x10309f4]
push ebx
push esi
push edi
push 0x34
mov dword [ebp - 0x10], eax
mov esi, ecx
call fcn.010056e5
pop ecx
mov dword [ebp - 0x34], eax
xor edi, edi
mov dword [ebp - 4], edi
cmp eax, edi
je 0x1006cd1
push 0x80000050
push edi
mov ecx, eax
call fcn.01006838
mov dword [ebp - 0x38], eax
jmp 0x1006cd4
mov dword [ebp - 0x38], edi
or dword [ebp - 4], 0xffffffff
mov ebx, dword [ebp - 0x38]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 4], 1
cmp ebx, edi
je 0x1006f03
cmp dword [ebx + 0x2c], edi
je 0x1006efe
add esi, 0xc
push ebx
mov ecx, esi
mov dword [ebp - 0x34], esi
call fcn.01006c5e
cmp eax, 0xffffffff
jne 0x1006d13
mov esi, 0x80041006
jmp 0x1006eba
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
mov edi, 0x1001548
mov ebx, eax
cmp bx, 0x409
je 0x1006d99
push 9
push edi
lea eax, [ebp - 0x30]
push 8
push eax
call fcn.01005fe2
push 0x34
call fcn.010056e5
add esp, 0x14
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x1006d5e
push 0x80000050
lea ecx, [ebp - 0x30]
push ecx
mov ecx, eax
call fcn.01006838
mov esi, eax
jmp 0x1006d60
xor esi, esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x3c], esi
mov byte [ebp - 4], 3
test esi, esi
je 0x1006dd7
cmp dword [esi + 0x2c], 0
je 0x1006dd7
mov ecx, dword [ebp - 0x34]
push esi
call fcn.01006c5e
cmp eax, 0xffffffff
jne 0x1006d8e
mov byte [ebp - 4], 1
mov ecx, esi
jmp 0x1006e94
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.01012d57
and ebx, 0x3ff
push ebx
push edi
lea eax, [ebp - 0x20]
push 8
push eax
call fcn.01005fe2
push 0x34
call fcn.010056e5
add esp, 0x14
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 4
xor esi, esi
cmp eax, esi
je 0x1006e09
push 0x80000060
lea ecx, [ebp - 0x20]
push ecx
mov ecx, eax
call fcn.01006838
mov edi, eax
jmp 0x1006e0b
mov eax, dword [ebp - 0x38]
push dword [eax + 0x30]
lea eax, [ebp - 0x30]
push eax
push 0x1001524
push 0xc
call sub.wbemcomn.dll_int___cdecl_ErrorTrace_char__char_const__
add esp, 0x10
mov byte [ebp - 4], 1
test esi, esi
je 0x1006dff
mov ecx, esi
call fcn.01012d57
mov esi, 0x80041001
jmp 0x1006eba
xor edi, edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x40], edi
mov byte [ebp - 4], 5
cmp edi, esi
je 0x1006e33
cmp dword [edi + 0x2c], esi
je 0x1006e33
mov ecx, dword [ebp - 0x34]
push edi
call fcn.01006c5e
cmp eax, 0xffffffff
jne 0x1006ea9
mov byte [ebp - 4], 1
jmp 0x1006e92
push 0x34
call fcn.010056e5
pop ecx
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 6
cmp eax, esi
je 0x1006e58
push 0x80000050
lea ecx, [ebp - 0x20]
push ecx
mov ecx, eax
call fcn.01006838
mov esi, eax
mov byte [ebp - 4], 5
mov dword [ebp - 0x3c], esi
mov byte [ebp - 4], 7
test esi, esi
je 0x1006eca
cmp dword [esi + 0x2c], 0
je 0x1006eca
mov ecx, dword [ebp - 0x34]
push esi
call fcn.01006c5e
cmp eax, 0xffffffff
jne 0x1006e9e
mov byte [ebp - 4], 5
mov ecx, esi
call fcn.01012d57
mov byte [ebp - 4], 1
test edi, edi
je 0x1006d09
mov ecx, edi
call fcn.01012d57
jmp 0x1006d09
mov byte [ebp - 4], 5
mov ecx, esi
call fcn.01012d57
mov byte [ebp - 4], 1
test edi, edi
je 0x1006eb8
mov ecx, edi
call fcn.01012d57
xor esi, esi
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x38]
call fcn.01012d57
mov eax, esi
jmp 0x1006f2c
push dword [esi + 0x30]
lea eax, [ebp - 0x20]
push eax
push 0x1001524
push 0xc
call sub.wbemcomn.dll_int___cdecl_ErrorTrace_char__char_const__
add esp, 0x10
mov byte [ebp - 4], 5
mov ecx, esi
call fcn.01012d57
mov byte [ebp - 4], 1
test edi, edi
je 0x1006dff
mov ecx, edi
jmp 0x1006dfa
mov eax, dword [ebx + 0x30]
jmp 0x1006f08
mov eax, 0x80041006
push eax
push 0x1001504
push 0xc
call sub.wbemcomn.dll_int___cdecl_ErrorTrace_char__char_const__
add esp, 0xc
or dword [ebp - 4], 0xffffffff
cmp ebx, edi
je 0x1006f27
mov ecx, ebx
call fcn.01012d57
mov eax, 0x80041001
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.01014c6a
leave
ret