Function at 0x40f3b0
Capabilities:
Get geographical location

Disassembly:
pushal
popal
push ebp
push esp
pop ebp
sub esp, 0xa8
mov eax, dword [0x45ba3c]
xor eax, ebp
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0xc], 1
jne 0x40f56f
mov eax, dword [ebp + 0x18]
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x90]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0x80
mov edx, dword [ebp - 0x98]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004178e0
add esp, 0x14
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
jne 0x40f4c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x40f434
jmp 0x40f54b
push 0
push 0
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004178e0
add esp, 0x14
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
jne 0x40f460
jmp 0x40f54b
push 0x5e
push str.f:dd_vctoolscrt_bld_self_x86crt_srcinithelp.c
push 2
push 1
mov ecx, dword [ebp - 0x98]
push ecx
call fcn.0040b2e0
add esp, 0x14
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40f488
jmp 0x40f54b
mov dword [ebp - 0x9c], 1
mov edx, dword [ebp - 0x98]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004178e0
add esp, 0x14
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
jne 0x40f4c5
jmp 0x40f54b
push 0x69
push str.f:dd_vctoolscrt_bld_self_x86crt_srcinithelp.c
push 2
push 1
mov ecx, dword [ebp - 0x94]
push ecx
call fcn.0040b2e0
add esp, 0x14
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x40f4ee
jmp 0x40f54b
push 0
push 0x6c
push 0x450c78
push str.__getlocaleinfo
push str.strncpy_s_straddress__outsize__pcbuffer__outsize___1_
mov ecx, dword [ebp - 0x94]
sub ecx, 1
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x94]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
call fcn.004174f0
add esp, 0x10
push eax
call fcn.00408050
add esp, 0x18
cmp dword [ebp - 0x9c], 0
je 0x40f544
push 2
mov eax, dword [ebp - 4]
push eax
call fcn.0040bc20
add esp, 8
sub eax, eax
jmp 0x40f678
cmp dword [ebp - 0x9c], 0
je 0x40f562
push 2
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040bc20
add esp, 8
or eax, 0xffffffff
jmp 0x40f678
cmp dword [ebp + 0xc], 2
jne 0x40f631
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0xa4], edx
mov eax, dword [ebp - 0xa4]
mov dword [eax], 0
push 0
push 0
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0xa0], 0
jne 0x40f5b1
jmp 0x40f60b
push 0x82
push str.f:dd_vctoolscrt_bld_self_x86crt_srcinithelp.c
push 2
push 2
mov eax, dword [ebp - 0xa0]
push eax
call fcn.0040b2e0
add esp, 0x14
mov ecx, dword [ebp - 0xa4]
mov dword [ecx], eax
mov edx, dword [ebp - 0xa4]
cmp dword [edx], 0
jne 0x40f5e3
jmp 0x40f60b
mov eax, dword [ebp - 0xa0]
push eax
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
or eax, eax
jne 0x40f607
jmp 0x40f60b
sub eax, eax
jmp 0x40f678
push 2
mov edx, dword [ebp - 0xa4]
mov eax, dword [edx]
push eax
call fcn.0040bc20
add esp, 8
mov ecx, dword [ebp - 0xa4]
mov dword [ecx], 0
or eax, 0xffffffff
jmp 0x40f678
cmp dword [ebp + 0xc], 0
jne 0x40f675
mov dword [ebp - 0xa8], 0
push 2
lea edx, [ebp - 0xa8]
push edx
mov eax, dword [ebp + 0x14]
or eax, 0x20000000
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x40f666
or eax, 0xffffffff
jmp 0x40f678
mov edx, dword [ebp + 0x18]
mov al, byte [ebp - 0xa8]
mov byte [edx], al
sub eax, eax
jmp 0x40f678
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00411b10
push ebp
pop esp
pop ebp
ret