Function at 0x4a9840
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524ad2
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x569564]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp + 0xc]
push 0
push 0x549961
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.00404c71
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
push esi
call fcn.0040e660
add esp, 8
test al, al
je 0x4a9999
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x4a98d7
mov eax, dword [ecx]
jmp 0x4a98d9
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x2c]
push 0
push eax
call fcn.00404cea
lea eax, [ebp - 0x5c]
push eax
call fcn.00449005
add esp, 0x1c
mov esi, eax
lea eax, [ebp - 0x2c]
cmp eax, esi
je 0x4a992e
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x4a9913
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.0040550e
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.00404f22
mov eax, dword [ebp - 0x48]
mov byte [ebp - 4], 1
cmp eax, 0x10
jb 0x4a9947
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.0040550e
lea ecx, [ebp - 0xcc]
call fcn.004e69f0
push 0
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 3
call fcn.004e5590
push 0
lea eax, [ebp - 0xdc]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xcc]
call fcn.004e7f00
lea ecx, [ebp - 0xdc]
test al, al
jne 0x4a99b5
call fcn.004e5650
lea ecx, [ebp - 0xcc]
call fcn.004155ec
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x4a99ae
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.0040550e
xor al, al
jmp 0x4a9b8a
push str.position
call fcn.004e58f0
mov ecx, eax
call fcn.004e6450
lea ecx, [ebp - 0xdc]
test al, al
jne 0x4a9a43
push str.position
call fcn.004e58f0
push eax
lea ecx, [ebp - 0x100]
call fcn.004e53c0
push str.cityname
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 5
call fcn.004e58f0
mov ecx, eax
call fcn.004e6450
lea ecx, [ebp - 0x100]
test al, al
jne 0x4a9a38
push str.cityname
call fcn.004e58f0
lea ecx, [ebp - 0x44]
push ecx
mov ecx, eax
call fcn.004e5f30
cmp dword [ebp - 0x34], 0
mov byte [ebp - 4], 6
jne 0x4a9a62
lea ecx, [ebp - 0x44]
call fcn.00402b26
lea ecx, [ebp - 0x100]
call fcn.004e5650
lea ecx, [ebp - 0xdc]
call fcn.004e5650
lea ecx, [ebp - 0xcc]
call fcn.004155ec
lea ecx, [ebp - 0x2c]
call fcn.00402b26
xor al, al
jmp 0x4a9b8a
lea eax, [ebp - 0x44]
cmp edi, eax
je 0x4a9a75
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.00404cea
push 0x536eb8
lea ecx, [ebp - 0x5c]
call fcn.00403a6c
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x5c]
mov ecx, ebx
push eax
call fcn.005171f0
lea ecx, [ebp - 0x5c]
call fcn.00402b26
push 0
call fcn.004f97a5
xor edx, edx
mov dword [ebp - 0xe4], eax
add esp, 4
mov dword [ebp - 0xe0], edx
mov dword [ebp - 0xf0], edx
mov dword [ebp - 0xec], edx
mov dword [ebp - 0xe8], edx
mov byte [ebp - 4], 8
lea edi, [ebp - 0xe4]
xor esi, esi
cmp esi, 8
jae 0x4a9ae8
push edi
lea ecx, [ebp - 0xf0]
inc edi
call fcn.0040b990
inc esi
jmp 0x4a9ad3
push 0x54b0c8
lea ecx, [ebp - 0x5c]
call fcn.00403a6c
lea eax, [ebp - 0xf0]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x5c]
mov ecx, ebx
push eax
call fcn.00517070
mov eax, dword [ebp - 0x48]
cmp eax, 0x10
jb 0x4a9b20
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.0040550e
lea ecx, [ebp - 0xf0]
call fcn.0040a570
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x4a9b40
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.0040550e
lea ecx, [ebp - 0x100]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
call fcn.004e5650
lea ecx, [ebp - 0xdc]
call fcn.004e5650
lea ecx, [ebp - 0xcc]
call fcn.004155ec
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x4a9b88
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.0040550e
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004ac267
mov esp, ebp
pop ebp
ret 8