Function at 0x640158
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x640160
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x64042c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406d80
cmp dword [ebp - 4], 0
je 0x640270
mov edx, 0x640444
mov eax, dword [ebp - 4]
call fcn.00539778
mov edx, dword [0x538764]
call fcn.004046b8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x640270
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x10]
dec eax
test eax, eax
jl 0x640270
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x34]
push eax
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.005393cc
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.004794a8
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x14]
call fcn.00478d14
cmp dword [ebp - 0x14], 0
je 0x640264
lea eax, [ebp - 0x40]
call fcn.006400d0
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call fcn.004794a8
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call fcn.00478d14
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x14]
call fcn.004790b8
test al, al
jne 0x640257
lea eax, [ebp - 0x4c]
call fcn.00640114
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.004794a8
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x44]
call fcn.00478d14
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x14]
call fcn.004790b8
test al, al
je 0x640264
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
call fcn.00406d80
jmp 0x640270
inc dword [ebp - 0x10]
dec dword [ebp - 0x28]
jne 0x6401d0
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x640346
lea eax, [ebp - 0x20]
xor edx, edx
call fcn.00406dd4
lea eax, [ebp - 0x50]
push eax
xor ecx, ecx
mov edx, 0x640460
mov eax, 0x640480
call fcn.0063f78c
mov eax, dword [ebp - 0x50]
mov edx, 0x64049c
call fcn.00407534
jne 0x640301
lea eax, [ebp - 0x24]
push eax
xor ecx, ecx
mov edx, 0x6404ac
mov eax, 0x640480
call fcn.0063f78c
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x6402d6
mov eax, dword [ebp - 0x2c]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 2
jne 0x640301
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x24]
call fcn.00406dd4
lea eax, [ebp - 0x54]
mov ecx, dword [ebp - 0x20]
mov edx, 0x6404d0
call fcn.00407264
mov eax, dword [ebp - 0x54]
xor edx, edx
call fcn.006039d8
cmp dword [ebp - 0x20], 0
jne 0x64032b
lea edx, [ebp - 0x20]
xor eax, eax
call fcn.006440c4
lea eax, [ebp - 0x58]
mov ecx, dword [ebp - 0x20]
mov edx, 0x640538
call fcn.00407264
mov eax, dword [ebp - 0x58]
xor edx, edx
call fcn.006039d8
cmp dword [ebp - 0x20], 0
jne 0x64033b
mov eax, dword [ebp - 8]
call fcn.00640114
jmp 0x640346
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
call fcn.00406d80
cmp dword [ebp - 4], 0
je 0x6403fc
mov edx, 0x6405a0
mov eax, dword [ebp - 4]
call fcn.005397c4
test eax, eax
jl 0x6403fc
mov edx, 0x6405a0
mov eax, dword [ebp - 4]
call fcn.00539778
mov edx, dword [0x538930]
call fcn.004046b8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x6403fc
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00478d14
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x5c]
call fcn.004794a8
mov edx, dword [ebp - 0x5c]
xor ecx, ecx
mov eax, dword [ebp - 0x18]
call fcn.00539fe0
cmp dword [ebp - 0x1c], 0
je 0x6403c2
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
call fcn.00478d14
jmp 0x6403fc
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00478ddc
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0x64]
call fcn.004794a8
mov edx, dword [ebp - 0x64]
xor ecx, ecx
mov eax, dword [ebp - 0x18]
call fcn.00539fe0
cmp dword [ebp - 0x1c], 0
je 0x6403fc
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
call fcn.00478d14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x640433
lea eax, [ebp - 0x68]
mov edx, 0xf
call fcn.00406d78
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00406d78
lea eax, [ebp - 0x14]
call fcn.00406d70
ret