Function at 0x406eac
Capabilities:
Identify system language via api

Disassembly:
push 0x38
mov eax, 0x5b1153
call fcn.0057b6ec
mov esi, ecx
mov dword [ebp - 0x2c], esi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov ecx, dword [ebp + 8]
push 0x5c97f4
mov dword [ebp - 4], ebx
call fcn.00404ab8
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], 1
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x198]
mov esi, dword [eax]
mov dword [ebp - 0x1c], esi
cmp esi, eax
je 0x4070b4
mov eax, dword [esi + 0x14]
sub eax, 0x10
push eax
call fcn.00405ecf
add eax, 0x10
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
cmp dword [eax - 0xc], ebx
je 0x407038
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
push ebx
push 0x2c
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0040881c
cmp eax, 0xffffffff
jne 0x406f69
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x10]
push ecx
push eax
cmp eax, dword [ebp - 0x30]
je 0x406f5f
lea eax, [ebp - 0x38]
push eax
call fcn.00406d2e
mov ebx, dword [ebp - 0x34]
add esp, 0xc
add ebx, 4
mov dword [ebp - 0x34], ebx
jmp 0x406fbb
lea ecx, [ebp - 0x38]
call fcn.004069f1
jmp 0x406fb8
push 0x5c9d18
lea ecx, [ebp - 0x14]
call fcn.00404ab8
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.005375d0
lea ecx, [ebp - 0x38]
add esp, 0xc
cmp ecx, eax
je 0x406fa1
mov byte [ebp - 0x24], bl
push dword [ebp - 0x24]
push eax
call fcn.00408fd0
lea ecx, [ebp - 0x44]
call fcn.0040904e
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 2
lea ecx, [ecx - 0x10]
call fcn.004055b1
mov ebx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x38]
mov eax, ebx
sub eax, edi
xor ecx, ecx
sar eax, 2
mov dword [ebp - 0x18], ecx
test eax, eax
je 0x406ff9
push dword [edi + ecx*4]
call fcn.0045d110
mov edx, dword [ebp - 0x28]
pop ecx
movzx ecx, dx
cmp eax, ecx
je 0x40705f
mov ebx, dword [ebp - 0x34]
mov eax, ebx
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x38]
inc ecx
sub eax, edi
mov dword [ebp - 0x18], ecx
sar eax, 2
cmp ecx, eax
jb 0x406fce
test edi, edi
je 0x407033
cmp edi, ebx
je 0x407015
mov ecx, dword [edi]
sub ecx, 0x10
call fcn.004055b1
add edi, 4
cmp edi, ebx
jne 0x407001
mov edi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
sub eax, edi
and eax, 0xfffffffc
push eax
push edi
call fcn.004046a4
xor ebx, ebx
pop ecx
pop ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
jmp 0x407035
xor ebx, ebx
mov eax, dword [ebp - 0x10]
lea ecx, [eax - 0x10]
mov byte [ebp - 4], bl
call fcn.004055b1
lea ecx, [ebp - 0x1c]
call fcn.00406df7
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x1c]
cmp esi, dword [eax + 0x198]
jne 0x406efb
jmp 0x4070b4
mov ecx, dword [ebp + 8]
add esi, 0x10
push esi
call fcn.00405ccf
mov esi, dword [ebp - 0x38]
test esi, esi
je 0x4070a9
mov edi, dword [ebp - 0x34]
cmp esi, edi
je 0x40708d
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.004055b1
add esi, 4
cmp esi, edi
jne 0x407079
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
sub eax, esi
and eax, 0xfffffffc
push eax
push esi
call fcn.004046a4
xor eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004055b1
mov eax, dword [ebp + 8]
call fcn.0057b6ba
ret 4