Function at 0x406718
Capabilities:
Identify system language via api

Disassembly:
push 0x40
mov eax, 0x4210c0
call fcn.0040dd6e
lea ecx, [ebp - 0x48]
call fcn.00406655
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x48]
push eax
mov ecx, edi
call fcn.00401cb0
push str.es_es
lea ecx, [ebp - 0x48]
call fcn.004064b5
test eax, eax
jne 0x40675c
or dword [ebp - 4], 0xffffffff
push ebx
push 1
jmp 0x406a41
xor esi, esi
inc esi
push esi
push ebx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x4c], 0x2d
call fcn.00405590
push eax
push ebx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
call fcn.0040650c
mov byte [ebp - 4], 1
push 0x42291c
lea ecx, [ebp - 0x2c]
call fcn.004064b5
test eax, eax
jne 0x4067c8
push 0x42291c
mov ecx, edi
call fcn.00402870
mov byte [ebp - 4], bl
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.004014d0
or dword [ebp - 4], 0xffffffff
push ebx
push esi
lea ecx, [ebp - 0x48]
call fcn.004014d0
mov eax, 0x407
jmp 0x406a4e
push 0x422914
lea ecx, [ebp - 0x2c]
call fcn.004064b5
test eax, eax
jne 0x40680a
push 0x422914
mov ecx, edi
call fcn.00402870
mov byte [ebp - 4], bl
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.004014d0
or dword [ebp - 4], 0xffffffff
push ebx
push esi
lea ecx, [ebp - 0x48]
call fcn.004014d0
mov eax, 0xc0a
jmp 0x406a4e
push 0x42290c
lea ecx, [ebp - 0x2c]
call fcn.004064b5
test eax, eax
je 0x406a22
push 0x422904
lea ecx, [ebp - 0x2c]
call fcn.004064b5
test eax, eax
je 0x406a22
push 0x4228fc
lea ecx, [ebp - 0x2c]
call fcn.004064b5
test eax, eax
je 0x406a22
push 0x4228f4
lea ecx, [ebp - 0x2c]
call fcn.004064b5
test eax, eax
jne 0x40688b
push 0x4228f4
mov ecx, edi
call fcn.00402870
mov byte [ebp - 4], bl
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.004014d0
or dword [ebp - 4], 0xffffffff
push ebx
push esi
lea ecx, [ebp - 0x48]
call fcn.004014d0
mov eax, 0x40c
jmp 0x406a4e
push 0x4228ec
lea ecx, [ebp - 0x2c]
call fcn.004064b5
test eax, eax
jne 0x4068cd
push 0x4228ec
mov ecx, edi
call fcn.00402870
mov byte [ebp - 4], bl
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.004014d0
or dword [ebp - 4], 0xffffffff
push ebx
push esi
lea ecx, [ebp - 0x48]
call fcn.004014d0
mov eax, 0x410
jmp 0x406a4e
push 0x4228e4
lea ecx, [ebp - 0x2c]
call fcn.004064b5
test eax, eax
jne 0x40690f
push 0x4228e4
mov ecx, edi
call fcn.00402870
mov byte [ebp - 4], bl
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.004014d0
or dword [ebp - 4], 0xffffffff
push ebx
push esi
lea ecx, [ebp - 0x48]
call fcn.004014d0
mov eax, 0x412
jmp 0x406a4e
push 0x4228dc
lea ecx, [ebp - 0x2c]
call fcn.004064b5
test eax, eax
jne 0x406951
push str.pt_br
mov ecx, edi
call fcn.00402870
mov byte [ebp - 4], bl
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.004014d0
or dword [ebp - 4], 0xffffffff
push ebx
push esi
lea ecx, [ebp - 0x48]
call fcn.004014d0
mov eax, 0x416
jmp 0x406a4e
push 0x4228c8
lea ecx, [ebp - 0x2c]
call fcn.004064b5
test eax, eax
jne 0x4069f4
cmp dword [ebp + 8], ebx
je 0x4069ac
push str.zh_cn
mov ecx, edi
call fcn.004064b5
test eax, eax
je 0x4069c6
push 0x4228c8
mov ecx, edi
call fcn.00402870
mov byte [ebp - 4], bl
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.004014d0
or dword [ebp - 4], 0xffffffff
push ebx
push esi
lea ecx, [ebp - 0x48]
call fcn.004014d0
mov eax, 0x404
jmp 0x406a4e
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
shr ax, 0xa
movzx eax, ax
cmp eax, 2
je 0x4069c6
cmp eax, 4
jne 0x40697b
push str.zh_cn
mov ecx, edi
call fcn.00402870
mov byte [ebp - 4], bl
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.004014d0
or dword [ebp - 4], 0xffffffff
push ebx
push esi
lea ecx, [ebp - 0x48]
call fcn.004014d0
mov eax, 0x804
jmp 0x406a4e
push str.en_us
mov ecx, edi
call fcn.00402870
mov byte [ebp - 4], bl
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.004014d0
or dword [ebp - 4], 0xffffffff
push ebx
push esi
lea ecx, [ebp - 0x48]
call fcn.004014d0
mov eax, 0x409
jmp 0x406a4e
push str.es_es
mov ecx, edi
call fcn.00402870
mov byte [ebp - 4], bl
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.004014d0
or dword [ebp - 4], 0xffffffff
push ebx
push esi
lea ecx, [ebp - 0x48]
call fcn.004014d0
mov eax, 0x40a
call fcn.0040ddf1
ret 4