Function at 0x1027054
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x470
mov eax, dword [0x102e77c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
xor edi, edi
test byte [0x102f808], 1
mov dword [ebp - 0x470], ebx
mov dword [ebp - 0x46c], edi
jne 0x1027096
or dword [0x102f808], 1
call fcn.01026e76
mov dword [0x102f804], eax
cmp dword [ebp + 0xc], 8
je 0x10270ad
cmp dword [ebp + 0xc], 4
je 0x10270ad
mov dword [ebp - 0x468], edi
jmp 0x1027633
push esi
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x25c]
push eax
mov esi, 0x104
push esi
push edi
push ebx
push edi
call dword [0x10011b8]
test eax, eax
je 0x1027676
cmp dword [ebp - 0x46c], edi
jne 0x10270e7
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x46c], eax
push 2
push edi
push ebx
call dword [0x100111c]
cmp eax, edi
mov dword [ebp - 0x468], eax
je 0x1027632
push 0x100b010
push 1
push eax
call dword [0x1001114]
push dword [ebp - 0x468]
mov ebx, eax
call dword [0x1001094]
cmp ebx, edi
mov ebx, dword [0x1001158]
je 0x1027624
push dword [ebp - 0x46c]
lea eax, [ebp - 0x464]
push esi
push eax
call fcn.010277e5
cmp word [ebp + 0x10], di
mov eax, dword [0x102f804]
jne 0x1027649
cmp eax, 1
jne 0x10273c4
call dword [0x10011a8]
cmp dword [ebp + 0xc], 8
movzx eax, ax
jne 0x10272b9
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push eax
call fcn.01026ff4
test eax, eax
je 0x1027676
mov eax, dword [ebp - 0x46c]
mov word [eax], di
lea eax, [ebp - 0x2c]
push eax
push esi
lea eax, [ebp - 0x25c]
push eax
call fcn.0101f0a3
push 0x1008cec
push esi
lea eax, [ebp - 0x25c]
push eax
call fcn.0101f0a3
lea eax, [ebp - 0x464]
push eax
push esi
lea eax, [ebp - 0x25c]
push eax
call fcn.0101f0a3
mov edi, 0x100b004
push edi
push esi
lea eax, [ebp - 0x25c]
push eax
call fcn.0101f0a3
lea eax, [ebp - 0x25c]
push eax
call ebx
test eax, eax
mov dword [ebp - 0x468], eax
jne 0x1027632
mov eax, dword [ebp - 0x46c]
and word [eax], 0
lea eax, [ebp - 0x54]
push eax
push esi
lea eax, [ebp - 0x25c]
push eax
call fcn.0101f0a3
push 0x1008cec
push esi
lea eax, [ebp - 0x25c]
push eax
call fcn.0101f0a3
lea eax, [ebp - 0x464]
push eax
push esi
lea eax, [ebp - 0x25c]
push eax
call fcn.0101f0a3
push edi
push esi
lea eax, [ebp - 0x25c]
push eax
call fcn.0101f0a3
lea eax, [ebp - 0x25c]
push eax
call ebx
test eax, eax
mov dword [ebp - 0x468], eax
jne 0x1027632
call dword [0x10011b4]
lea ecx, [ebp - 0x54]
push ecx
movzx eax, ax
lea ecx, [ebp - 0x2c]
push ecx
push eax
call fcn.01026ff4
test eax, eax
jne 0x1027273
and dword [ebp - 0x468], eax
jmp 0x1027632
mov eax, dword [ebp - 0x46c]
and word [eax], 0
lea eax, [ebp - 0x2c]
push eax
push esi
lea eax, [ebp - 0x25c]
push eax
call fcn.0101f0a3
push 0x1008cec
push esi
lea eax, [ebp - 0x25c]
push eax
call fcn.0101f0a3
lea eax, [ebp - 0x464]
push eax
push esi
lea eax, [ebp - 0x25c]
push eax
call fcn.0101f0a3
jmp 0x102743f
movzx eax, ax
push eax
push 0x100aff8
lea eax, [ebp - 0x2c]
push 0x14
push eax
call fcn.01017d1a
mov eax, dword [ebp - 0x46c]
add esp, 0x10
push 0x100afec
mov word [eax], di
push esi
lea eax, [ebp - 0x25c]
push eax
call fcn.0101f0a3
lea eax, [ebp - 0x2c]
push eax
push esi
lea eax, [ebp - 0x25c]
push eax
call fcn.0101f0a3
push 0x1008cec
push esi
lea eax, [ebp - 0x25c]
push eax
call fcn.0101f0a3
lea eax, [ebp - 0x464]
push eax
push esi
lea eax, [ebp - 0x25c]
push eax
call fcn.0101f0a3
mov edi, 0x100b004
push edi
push esi
lea eax, [ebp - 0x25c]
push eax
call fcn.0101f0a3
lea eax, [ebp - 0x25c]
push eax
call ebx
test eax, eax
mov dword [ebp - 0x468], eax
jne 0x1027632
call dword [0x10011b4]
movzx eax, ax
movzx eax, ax
push eax
push 0x100aff8
lea eax, [ebp - 0x2c]
push 0x14
push eax
call fcn.01017d1a
mov eax, dword [ebp - 0x46c]
and word [eax], 0
add esp, 0x10
push 0x100afec
push esi
lea eax, [ebp - 0x25c]
push eax
call fcn.0101f0a3
lea eax, [ebp - 0x2c]
push eax
push esi
lea eax, [ebp - 0x25c]
push eax
call fcn.0101f0a3
push 0x1008cec
push esi
lea eax, [ebp - 0x25c]
push eax
call fcn.0101f0a3
lea eax, [ebp - 0x464]
push eax
push esi
lea eax, [ebp - 0x25c]
push eax
call fcn.0101f0a3
jmp 0x102756f
cmp eax, 2
je 0x10273d2
cmp eax, 3
jne 0x1027624
call fcn.01026f44
cmp dword [ebp + 0xc], 8
movzx eax, ax
jne 0x1027501
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push eax
call fcn.01026ff4
test eax, eax
je 0x1027676
mov eax, dword [ebp - 0x46c]
mov word [eax], di
lea eax, [ebp - 0x2c]
push eax
push esi
lea eax, [ebp - 0x25c]
push eax
call fcn.0101f0a3
push 0x1008cec
push esi
lea eax, [ebp - 0x25c]
push eax
call fcn.0101f0a3
lea eax, [ebp - 0x464]
push eax
push esi
lea eax, [ebp - 0x25c]
push eax
call fcn.0101f0a3
mov edi, 0x100b004
push edi
push esi
lea eax, [ebp - 0x25c]
push eax
call fcn.0101f0a3
lea eax, [ebp - 0x25c]
push eax
call ebx
test eax, eax
mov dword [ebp - 0x468], eax
jne 0x1027632
mov eax, dword [ebp - 0x46c]
and word [eax], 0
lea eax, [ebp - 0x54]
push eax
push esi
lea eax, [ebp - 0x25c]
push eax
call fcn.0101f0a3
push 0x1008cec
push esi
lea eax, [ebp - 0x25c]
push eax
call fcn.0101f0a3
lea eax, [ebp - 0x464]
push eax
push esi
lea eax, [ebp - 0x25c]
push eax
call fcn.0101f0a3
push edi
push esi
lea eax, [ebp - 0x25c]
push eax
call fcn.0101f0a3
lea eax, [ebp - 0x25c]
push eax
call ebx
test eax, eax
mov dword [ebp - 0x468], eax
jne 0x1027632
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x409
call fcn.01026ff4
mov eax, dword [ebp - 0x46c]
and word [eax], 0
lea eax, [ebp - 0x2c]
push eax
push esi
lea eax, [ebp - 0x25c]
push eax
call fcn.0101f0a3
push 0x1008cec
jmp 0x10275a3
movzx eax, ax
push eax
push 0x100aff8
lea eax, [ebp - 0x2c]
push 0x14
push eax
call fcn.01017d1a
mov eax, dword [ebp - 0x46c]
add esp, 0x10
push 0x100afec
mov word [eax], di
push esi
lea eax, [ebp - 0x25c]
push eax
call fcn.0101f0a3
lea eax, [ebp - 0x2c]
push eax
push esi
lea eax, [ebp - 0x25c]
push eax
call fcn.0101f0a3
push 0x1008cec
push esi
lea eax, [ebp - 0x25c]
push eax
call fcn.0101f0a3
lea eax, [ebp - 0x464]
push eax
push esi
lea eax, [ebp - 0x25c]
push eax
call fcn.0101f0a3
mov edi, 0x100b004
push edi
push esi
lea eax, [ebp - 0x25c]
push eax
call fcn.0101f0a3
lea eax, [ebp - 0x25c]
push eax
call ebx
test eax, eax
mov dword [ebp - 0x468], eax
jne 0x1027632
mov eax, dword [ebp - 0x46c]
and word [eax], 0
push 0x100afd8
push esi
lea eax, [ebp - 0x25c]
push eax
call fcn.0101f0a3
lea eax, [ebp - 0x464]
push eax
push esi
lea eax, [ebp - 0x25c]
push eax
call fcn.0101f0a3
push edi
push esi
lea eax, [ebp - 0x25c]
push eax
call fcn.0101f0a3
lea eax, [ebp - 0x25c]
push eax
call ebx
test eax, eax
mov dword [ebp - 0x468], eax
jne 0x1027632
mov eax, dword [ebp - 0x46c]
and word [eax], 0
lea eax, [ebp - 0x464]
push eax
push esi
lea eax, [ebp - 0x25c]
push eax
call fcn.0101f0a3
push edi
push esi
lea eax, [ebp - 0x25c]
push eax
call fcn.0101f0a3
lea eax, [ebp - 0x25c]
push eax
call ebx
test eax, eax
mov dword [ebp - 0x468], eax
jne 0x1027632
push dword [ebp - 0x470]
call ebx
mov dword [ebp - 0x468], eax
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x468]
pop edi
xor ecx, ebp
pop ebx
call fcn.0102222e
leave
ret 0xc
cmp eax, 1
je 0x1027658
cmp eax, 2
je 0x1027658
cmp eax, 3
jne 0x1027624
cmp dword [ebp + 0xc], 8
jne 0x10276e2
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0x10]
call fcn.01026ff4
test eax, eax
jne 0x102767e
mov dword [ebp - 0x468], edi
jmp 0x1027632
mov eax, dword [ebp - 0x46c]
mov word [eax], di
lea eax, [ebp - 0x2c]
push eax
push esi
lea eax, [ebp - 0x25c]
push eax
call fcn.0101f0a3
push 0x1008cec
push esi
lea eax, [ebp - 0x25c]
push eax
call fcn.0101f0a3
lea eax, [ebp - 0x464]
push eax
push esi
lea eax, [ebp - 0x25c]
push eax
call fcn.0101f0a3
push 0x100b004
push esi
lea eax, [ebp - 0x25c]
push eax
call fcn.0101f0a3
lea eax, [ebp - 0x25c]
push eax
call dword [0x1001158]
jmp 0x102762c
movzx eax, word [ebp + 0x10]
push eax
push 0x100aff8
lea eax, [ebp - 0x2c]
push 0x14
push eax
call fcn.01017d1a
mov eax, dword [ebp - 0x46c]
add esp, 0x10
push 0x100afec
mov word [eax], di
push esi
lea eax, [ebp - 0x25c]
push eax
call fcn.0101f0a3
jmp 0x1027687