Function at 0x407170
Capabilities:
Identify system language via api

Disassembly:
push 0x38
mov eax, 0x5d0ae3
call fcn.00599fdc
mov esi, ecx
mov dword [ebp - 0x2c], esi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov ecx, dword [ebp + 8]
push 0x5eb88c
mov dword [ebp - 4], ebx
call fcn.00404b48
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 0x407378
mov eax, dword [esi + 0x14]
sub eax, 0x10
push eax
call fcn.00405ebd
add eax, 0x10
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
cmp dword [eax - 0xc], ebx
je 0x4072fc
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.00408ae0
cmp eax, 0xffffffff
jne 0x40722d
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x10]
push ecx
push eax
cmp eax, dword [ebp - 0x30]
je 0x407223
lea eax, [ebp - 0x38]
push eax
call fcn.00406e48
mov ebx, dword [ebp - 0x34]
add esp, 0xc
add ebx, 4
ret
add al, 0x89
pop ebp
int3
jmp 0x40727f
lea ecx, [ebp - 0x38]
call fcn.004069fc
jmp 0x40727c
push 0x5ebdb0
lea ecx, [ebp - 0x14]
call fcn.00404b48
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.00555e00
lea ecx, [ebp - 0x38]
add esp, 0xc
cmp ecx, eax
je 0x407265
mov byte [ebp - 0x24], bl
push dword [ebp - 0x24]
push eax
call fcn.0040931e
lea ecx, [ebp - 0x44]
call fcn.0040939c
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 2
lea ecx, [ecx - 0x10]
call fcn.00405641
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 0x4072bd
push dword [edi + ecx*4]
call fcn.004746f0
mov edx, dword [ebp - 0x28]
pop ecx
movzx ecx, dx
cmp eax, ecx
je 0x407323
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 0x407292
test edi, edi
je 0x4072f7
cmp edi, ebx
je 0x4072d9
mov ecx, dword [edi]
sub ecx, 0x10
call fcn.00405641
add edi, 4
cmp edi, ebx
jne 0x4072c5
mov edi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
sub eax, edi
and eax, 0xfffffffc
push eax
push edi
call fcn.00404744
xor ebx, ebx
pop ecx
pop ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
jmp 0x4072f9
xor ebx, ebx
mov eax, dword [ebp - 0x10]
lea ecx, [eax - 0x10]
mov byte [ebp - 4], bl
call fcn.00405641
lea ecx, [ebp - 0x1c]
call fcn.00407067
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x1c]
cmp esi, dword [eax + 0x198]
jne 0x4071bf
jmp 0x407378
mov ecx, dword [ebp + 8]
add esi, 0x10
push esi
call fcn.00405cbd
mov esi, dword [ebp - 0x38]
test esi, esi
je 0x40736d
mov edi, dword [ebp - 0x34]
cmp esi, edi
je 0x407351
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.00405641
add esi, 4
cmp esi, edi
jne 0x40733d
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
sub eax, esi
and eax, 0xfffffffc
push eax
push esi
call fcn.00404744
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.00405641
mov eax, dword [ebp + 8]
call fcn.00599faa
ret 4