Function at 0x4013df
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcbc
push ebx
push esi
push edi
lea esi, [ebp - 0x3c]
mov edi, 0x41142c
mov eax, 0x40f188
call fcn.0040d970
push 0
lea edx, [ebp - 0x244]
push edx
lea ecx, [ebp - 0x344]
push ecx
lea eax, [ebp - 0x3f]
push eax
push dword [ebp + 8]
call sub.cw3230mt.DLL__fnsplit
add esp, 0x14
push 0x40f368
push 0x40f361
lea edx, [ebp - 0x344]
push edx
lea ecx, [ebp - 0x3f]
push ecx
lea eax, [ebp - 0x144]
push eax
call sub.cw3230mt.DLL__fnmerge
add esp, 0x14
mov word [esi + 0x10], 8
lea edx, [ebp - 0x144]
push edx
lea ecx, [ebp - 0xc]
push ecx
call fcn.0040c954
add esp, 8
inc dword [esi + 0x1c]
mov word [esi + 0x10], 0x14
push 0
push 0x40f375
push str.Language
lea eax, [ebp - 0xc]
push eax
call fcn.0040cb85
add esp, 0x10
mov ebx, eax
test eax, eax
jne 0x401487
call sub.KERNEL32.dll_GetUserDefaultLCID
mov ebx, eax
push 0xa
push edi
push 3
push ebx
call sub.KERNEL32.dll_GetLocaleInfoA
push edi
lea eax, [ebp - 0x244]
push eax
lea edx, [ebp - 0x344]
push edx
lea ecx, [ebp - 0x3f]
push ecx
lea eax, [ebp - 0x144]
push eax
call sub.cw3230mt.DLL__fnmerge
add esp, 0x14
push 0
lea edx, [ebp - 0x144]
push edx
call sub.cw3230mt.DLL__access
add esp, 8
test eax, eax
jne 0x401523
push 0x15
call sub.cw3230mt.DLL___bnew_qui
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4014ff
mov word [esi + 0x10], 0x2c
push 1
push 1
lea edx, [ebp - 0x144]
push edx
push dword [ebp - 0x10]
call sub.OWL52t.dll__TModule__bctr_qpxc4boolt2
add esp, 0x10
mov word [esi + 0x10], 0x20
mov eax, dword [ebp - 0x10]
jmp 0x401502
mov eax, dword [ebp - 0x10]
push eax
dec dword [esi + 0x1c]
push 2
lea edx, [ebp - 0xc]
push edx
call fcn.0040ca8d
add esp, 8
pop eax
mov edx, dword [esi]
mov dword fs:[0], edx
jmp 0x401696
mov eax, ebx
mov word [esi + 0x10], 0x14
and ax, 0x3ff
or ax, 0x400
movzx ebx, ax
or ebx, 0
push 0xa
push edi
push 3
push ebx
call sub.KERNEL32.dll_GetLocaleInfoA
push edi
lea eax, [ebp - 0x244]
push eax
lea edx, [ebp - 0x344]
push edx
lea ecx, [ebp - 0x3f]
push ecx
lea eax, [ebp - 0x144]
push eax
call sub.cw3230mt.DLL__fnmerge
add esp, 0x14
push 0
lea edx, [ebp - 0x144]
push edx
call sub.cw3230mt.DLL__access
add esp, 8
test eax, eax
jne 0x4015d5
push 0x15
call sub.cw3230mt.DLL___bnew_qui
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4015b1
mov word [esi + 0x10], 0x44
push 1
push 1
lea edx, [ebp - 0x144]
push edx
push dword [ebp - 0x14]
call sub.OWL52t.dll__TModule__bctr_qpxc4boolt2
add esp, 0x10
mov word [esi + 0x10], 0x38
mov eax, dword [ebp - 0x14]
jmp 0x4015b4
mov eax, dword [ebp - 0x14]
push eax
dec dword [esi + 0x1c]
push 2
lea edx, [ebp - 0xc]
push edx
call fcn.0040ca8d
add esp, 8
pop eax
mov edx, dword [esi]
mov dword fs:[0], edx
jmp 0x401696
mov ax, 0x409
movzx ebx, ax
or ebx, 0
push 0xa
push edi
push 3
push ebx
call sub.KERNEL32.dll_GetLocaleInfoA
push edi
lea eax, [ebp - 0x244]
push eax
lea edx, [ebp - 0x344]
push edx
lea ecx, [ebp - 0x3f]
push ecx
lea eax, [ebp - 0x144]
push eax
call sub.cw3230mt.DLL__fnmerge
add esp, 0x14
push 0
lea edx, [ebp - 0x144]
push edx
call sub.cw3230mt.DLL__access
add esp, 8
test eax, eax
jne 0x401678
push 0x15
call sub.cw3230mt.DLL___bnew_qui
pop ecx
mov dword [ebp - 0x18], eax
test eax, eax
je 0x401657
mov word [esi + 0x10], 0x5c
push 1
push 1
lea edx, [ebp - 0x144]
push edx
push dword [ebp - 0x18]
call sub.OWL52t.dll__TModule__bctr_qpxc4boolt2
add esp, 0x10
mov word [esi + 0x10], 0x50
mov eax, dword [ebp - 0x18]
jmp 0x40165a
mov eax, dword [ebp - 0x18]
push eax
dec dword [esi + 0x1c]
push 2
lea edx, [ebp - 0xc]
push edx
call fcn.0040ca8d
add esp, 8
pop eax
mov edx, dword [esi]
mov dword fs:[0], edx
jmp 0x401696
xor eax, eax
push eax
dec dword [esi + 0x1c]
push 2
lea edx, [ebp - 0xc]
push edx
call fcn.0040ca8d
add esp, 8
pop eax
mov edx, dword [esi]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret