Function at 0x406bc8
Capabilities:
Identify system language via api

Disassembly:
push 0x38
mov eax, 0x5a36c3
call fcn.0056e45f
mov esi, ecx
mov dword [ebp - 0x2c], esi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov ecx, dword [ebp + 8]
push 0x5bb77c
mov dword [ebp - 4], ebx
call fcn.00404b51
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 0x406dd7
mov eax, dword [esi + 0x14]
sub eax, 0x10
push eax
call fcn.00405d05
add eax, 0x10
pop ecx
mov dword [ebp - 0x10], eax
cmp dword [eax - 0xc], 0
mov dword [ebp - 4], 1
je 0x406d5b
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.0040853c
cmp eax, 0xffffffff
jne 0x406c8c
mov edi, dword [ebp - 0x34]
cmp edi, dword [ebp - 0x30]
je 0x406c7d
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.00405d05
add eax, 0x10
mov dword [edi], eax
mov ebx, dword [ebp - 0x34]
add ebx, 4
pop ecx
mov dword [ebp - 0x34], ebx
jmp 0x406cde
lea eax, [ebp - 0x10]
push eax
push edi
lea ecx, [ebp - 0x38]
call fcn.00406781
jmp 0x406cdb
push 0x5bbca0
lea ecx, [ebp - 0x14]
call fcn.00404b51
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.0052a390
lea ecx, [ebp - 0x38]
add esp, 0xc
cmp ecx, eax
je 0x406cc4
mov byte [ebp - 0x24], bl
push dword [ebp - 0x24]
push eax
call fcn.00408cb3
lea ecx, [ebp - 0x44]
call fcn.00408d31
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 2
lea ecx, [ecx - 0x10]
call fcn.00405472
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 0x406d1c
push dword [edi + ecx*4]
call fcn.00451360
mov edx, dword [ebp - 0x28]
pop ecx
movzx ecx, dx
cmp eax, ecx
je 0x406d82
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 0x406cf1
test edi, edi
je 0x406d56
cmp edi, ebx
je 0x406d38
mov ecx, dword [edi]
sub ecx, 0x10
call fcn.00405472
add edi, 4
cmp edi, ebx
jne 0x406d24
mov edi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
sub eax, edi
and eax, 0xfffffffc
push eax
push edi
call fcn.00404734
xor ebx, ebx
pop ecx
pop ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
jmp 0x406d58
xor ebx, ebx
mov eax, dword [ebp - 0x10]
lea ecx, [eax - 0x10]
mov byte [ebp - 4], bl
call fcn.00405472
lea ecx, [ebp - 0x1c]
call fcn.00406b42
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x1c]
cmp esi, dword [eax + 0x198]
jne 0x406c17
jmp 0x406dd7
mov ecx, dword [ebp + 8]
add esi, 0x10
push esi
call fcn.00405aef
mov esi, dword [ebp - 0x38]
test esi, esi
je 0x406dcc
mov edi, dword [ebp - 0x34]
cmp esi, edi
je 0x406db0
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.00405472
add esi, 4
cmp esi, edi
jne 0x406d9c
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
sub eax, esi
and eax, 0xfffffffc
push eax
push esi
call fcn.00404734
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.00405472
mov eax, dword [ebp + 8]
call fcn.0056e42d
ret 4