Function at 0x4096d0
Capabilities:
Get geographical location

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x409c9c
sub esp, 0x4c
mov eax, dword [esp + 0x50]
test byte [eax], al
nop
lea ecx, [eax + 0x330]
mov dword [esp], ecx
mov ecx, dword [esp + 0x54]
add ecx, 0x3fffff
and ecx, 0xffc00000
mov dword [esp + 0x14], ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x400000
lea edx, [0xb554f8]
mov dword [esp + 0xc], edx
call fcn.0040b110
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x409b5d
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x14]
jmp 0x40976a
mov ebp, dword [ebx + 8]
mov dword [ecx + 0x32c], ebp
nop
mov ebp, dword [ecx + 0x258c]
sub ebp, dword [ecx + 0x2574]
mov dword [ecx + 0x258c], ebp
mov ebp, dword [ecx + 0x2580]
mov dword [ebx], ebp
mov dword [ecx + 0x2580], ebx
mov eax, edi
mov ebx, dword [ecx + 0x32c]
test ebx, ebx
je 0x409b52
mov eax, dword [ebx]
movzx ebp, byte [ebx + 4]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x409786
sub eax, edx
mov dword [esp + 0x48], ebx
lea ebp, [eax + edx]
cmp ebp, eax
jae 0x409b1f
xor esi, esi
mov edi, esi
cmp eax, esi
je 0x4097ce
test edi, edi
je 0x40973e
mov dword [esp + 0x44], edi
mov dword [esp], edi
mov dword [esp + 4], edx
mov dword [esp + 8], 0
call fcn.00414510
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x48]
mov edi, dword [esp + 0x44]
jmp 0x40973e
movzx esi, byte [ebx + 4]
xchg esi, eax
test al, al
xchg esi, eax
je 0x409b18
mov dword [ebx], eax
mov eax, edx
test edx, edx
je 0x409a6c
mov eax, edi
lea ebx, [edx + edi]
cmp ebx, edi
jae 0x409a63
mov ebp, 0x1c
lea esi, [0x7f3439]
test ebp, ebp
jne 0x409be8
test edi, 0x3fffff
jne 0x409bd2
mov dword [esp + 0x44], eax
mov dword [esp + 0x2c], edx
mov dword [esp], eax
mov dword [esp + 4], edx
lea ecx, [0xb554f8]
mov dword [esp + 8], ecx
call fcn.004146c0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x2c], ecx
mov edx, eax
shr eax, 0x16
mov ebx, dword [esp + 0x50]
jmp 0x409883
mov ecx, dword [esp + 0x28]
mov dword [edx + eax*4], ecx
mov eax, dword [esp + 0x40]
mov dword [esp], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call fcn.004021a0
mov eax, dword [esp + 0x28]
inc eax
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x2c]
mov ecx, ebx
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x50]
mov ebp, edx
lea edx, [ecx + edx - 1]
shr edx, 0x16
cmp eax, edx
ja 0x409a57
mov dword [esp + 0x28], eax
mov edx, dword [ebx + 0x31c]
test edx, edx
je 0x4099fc
test byte [edx], al
cmp eax, 0x400
jae 0x409b9c
mov esi, dword [edx + eax*4]
lea edx, [edx + eax*4]
test esi, esi
jne 0x409ba6
mov dword [esp + 0x40], edx
lea eax, [ebx + 0x320]
mov dword [esp], eax
mov dword [esp + 4], 0x40884
mov dword [esp + 8], 4
lea eax, [0xb55558]
mov dword [esp + 0xc], eax
call fcn.0040b110
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4099cd
mov dword [esp + 0x30], eax
mov ebx, dword [esp + 0x50]
mov ebp, dword [ebx + 0x344]
cmp dword [ebx + 0x340], ebp
jne 0x40998e
shl ebp, 3
test ebp, ebp
jne 0x4099c6
mov ecx, dword [0xb532ec]
mov dword [esp + 0x18], ecx
mov dword [esp], ecx
mov dword [esp + 4], 4
lea eax, [0xb55558]
mov dword [esp + 8], eax
call fcn.0040ad90
mov eax, dword [esp + 0xc]
test eax, eax
je 0x409b70
mov ebx, dword [esp + 0x50]
mov ebp, dword [ebx + 0x340]
mov esi, dword [ebx + 0x33c]
mov edi, dword [esp + 0x18]
shr edi, 2
mov dword [ebx + 0x344], edi
mov dword [ebx + 0x33c], eax
mov edi, dword [ebx + 0x340]
cmp edi, ebp
jle 0x4099c2
cmp eax, esi
je 0x40998e
mov dword [esp], eax
mov dword [esp + 4], esi
shl ebp, 2
mov dword [esp + 8], ebp
call fcn.00459fc0
mov ebx, dword [esp + 0x50]
mov edx, dword [ebx + 0x344]
mov eax, dword [ebx + 0x340]
lea ecx, [eax + 1]
cmp ecx, edx
ja 0x409b6b
mov dword [ebx + 0x340], ecx
mov edx, dword [ebx + 0x33c]
cmp eax, ecx
jb 0x40984d
jmp 0x409b66
mov ebp, edi
jmp 0x409977
mov ecx, ebp
jmp 0x409920
mov dword [esp], 0x40884
mov dword [esp + 4], 4
lea eax, [0xb55558]
mov dword [esp + 8], eax
call fcn.0040ad90
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x4098f9
jmp 0x409b86
mov dword [esp], 0x1000
mov dword [esp + 4], 4
mov dword [esp + 8], 0
call fcn.0040ad90
mov eax, dword [esp + 0xc]
test eax, eax
je 0x409bbc
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x50]
lea edx, [ecx + 0x31c]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.004021a0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x50]
mov ebp, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
jmp 0x4098a6
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ecx
add esp, 0x4c
ret
xor ebp, ebp
xor esi, esi
jmp 0x409800
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 8], 0x400000
call fcn.00409cb0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
test eax, eax
je 0x409b04
mov dword [esp + 0x44], eax
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x50]
lea ecx, [eax + 0x2574]
mov dword [esp + 0x38], ecx
mov dword [esp], ecx
call fcn.00415440
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x44]
mov dword [eax], ecx
mov byte [eax + 4], 1
mov ecx, dword [0xb4504c]
mov dword [eax + 8], ecx
mov dword [0xb4504c], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.00415440
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x44]
mov edx, dword [esp + 0x2c]
lea ebx, [edx + edi]
mov dword [eax], ebx
mov ebx, dword [0xb4504c]
mov dword [eax + 8], ebx
mov dword [0xb4504c], eax
mov ecx, dword [esp + 0x50]
mov edi, dword [esp + 0x44]
jmp 0x4097e8
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
add esp, 0x4c
ret
mov eax, ebp
jmp 0x4097dc
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], ebp
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00414620
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0x2c]
mov esi, eax
mov eax, dword [esp + 0x20]
jmp 0x409797
mov edi, eax
mov eax, edx
xor edx, edx
jmp 0x4097e0
mov ecx, dword [esp + 0x14]
jmp 0x40983a
call fcn.004596a0
call fcn.004596e0
lea eax, [0x7f6df8]
mov dword [esp], eax
mov dword [esp + 4], 0x22
call fcn.00430c90
lea eax, [0x7fab7f]
mov dword [esp], eax
mov dword [esp + 4], 0x2c
call fcn.00430c90
mov ecx, 0x400
call fcn.004596b0
lea eax, [0x7f1160]
mov dword [esp], eax
mov dword [esp + 4], 0x19
call fcn.00430c90
lea eax, [0x7f9061]
mov dword [esp], eax
mov dword [esp + 4], 0x27
call fcn.00430c90
lea eax, [0x7f637a]
mov dword [esp], eax
mov dword [esp + 4], 0x21
call fcn.00430c90
mov dword [esp + 0x1c], edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x34], esi
call fcn.00432510
lea eax, [0x7f6548]
mov dword [esp], eax
mov dword [esp + 4], 0x21
call fcn.00432db0
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.00432c80
lea eax, [0x7e320d]
mov dword [esp], eax
mov dword [esp + 4], 2
call fcn.00432db0
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.00432c80
lea eax, [0x7f4b07]
mov dword [esp], eax
mov dword [esp + 4], 0x1f
call fcn.00432db0
mov eax, dword [esp + 0x34]
mov dword [esp], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
call fcn.00432db0
call fcn.00432730
call fcn.00432580
lea eax, [0x7fb178]
mov dword [esp], eax
mov dword [esp + 4], 0x2e
call fcn.00430c90
nop
call fcn.00457de0
jmp fcn.004096d0