Function at 0x40aea0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x586d5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c0
push ebx
push esi
push edi
mov ebx, ecx
push 0
push ebx
push 0x404d00
lea ecx, [ebp - 0x44]
call fcn.0055acb0
mov ecx, 5
mov esi, eax
mov edi, 0x60aca4
push 0
rep movsd dword es:[edi], dword [esi]
push ebx
push 0x4051d0
lea ecx, [ebp - 0x44]
call fcn.0055acb0
mov ecx, 5
mov esi, eax
mov edi, 0x60acb8
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x14]
mov dword [0x66839c], 2
call fcn.0055ae40
mov ecx, dword [ebx + 0x54]
mov dword [ebp - 4], 0
call fcn.00497430
mov ecx, dword [0x66a814]
push 0x6683fc
call fcn.004c0640
lea esi, [eax + 0x7c]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [ebp - 0x10]
not ecx
dec ecx
mov edi, ecx
inc edi
cmp edi, eax
jl 0x40af72
lea ecx, [edi + 0x32]
cmp ecx, eax
jle 0x40af72
test eax, eax
je 0x40af60
mov eax, dword [ebp - 0x14]
push eax
call fcn.0050f580
add esp, 4
lea eax, [edi + 0x32]
push eax
mov dword [ebp - 0x10], eax
call fcn.0050f560
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, edi
mov edi, dword [ebp - 0x14]
mov edx, ecx
push 0x6683fc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x66a814]
call fcn.004c0640
lea esi, [eax + 0x2c]
mov eax, dword [ebp - 0xc8]
inc eax
lea ecx, [ebp - 0x20]
push eax
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], esi
call fcn.0055c610
mov edx, dword [eax]
lea eax, [ebp - 0x64]
push edx
push eax
call fcn.00566480
mov ecx, dword [ebp - 0x20]
add esp, 8
push ecx
call fcn.0050f580
xor edi, edi
add esp, 4
mov dword [ebx + 0x7c], edi
mov al, byte [0x60ad00]
test al, al
je 0x40b02f
lea edx, [ebp - 0x30]
mov ecx, ebx
push edx
call fcn.0040ad70
lea eax, [ebp - 0x30]
push edi
push eax
mov ecx, 0x60aca0
call fcn.00481700
mov ecx, dword [0x66a80c]
mov dword [ebp - 0x68], 1
call fcn.004c0320
lea edi, [eax + 0x2c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0xbc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x18]
jmp 0x40b032
mov dword [ebp - 0x68], edi
mov eax, dword [0x60acd4]
mov ecx, dword [ebx + 0x38]
push eax
push 0x5a562c
add ecx, 0x8c
push esi
push ecx
call fcn.00585a90
mov ecx, dword [ebx + 0x54]
add esp, 4
push eax
call fcn.004971c0
mov eax, dword [ebx + 0x38]
lea edx, [ebp - 0x64]
push edx
add eax, 0x8c
push esi
push eax
call fcn.00585a90
mov ecx, dword [ebx + 0x54]
add esp, 4
push eax
call fcn.004979b0
lea ecx, [ebp - 0x1cc]
push ecx
mov ecx, ebx
call fcn.0040a710
test eax, eax
je 0x40b142
mov ecx, dword [0x66a80c]
call fcn.004c0320
lea edi, [eax + 0x2c]
lea esi, [ebp - 0x170]
mov dl, byte [esi]
mov cl, byte [edi]
mov al, dl
cmp dl, cl
jne 0x40b0ca
test al, al
je 0x40b0c6
mov cl, byte [esi + 1]
mov dl, byte [edi + 1]
mov al, cl
cmp cl, dl
jne 0x40b0ca
add esi, 2
add edi, 2
test al, al
jne 0x40b0a2
xor eax, eax
jmp 0x40b0cf
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40b142
mov ecx, dword [0x66a80c]
lea edx, [ebp - 0x170]
push edx
call fcn.004c0250
cmp eax, 0xffffffff
je 0x40b1d5
lea eax, [ebp - 0xbc]
push eax
push str.Setting_city_to__s
call fcn.00558640
add esp, 8
lea ecx, [ebp - 0x170]
push ecx
mov ecx, dword [0x66a80c]
call fcn.004c02d0
mov ecx, dword [0x66a80c]
call fcn.004c0320
lea edi, [eax + 0x2c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x5d44b0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x60aca0
call fcn.00480af0
mov dword [ebp - 0xc4], eax
mov edi, 0x6683fc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x118]
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [ebp - 0x6c], 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [ebp - 0x118]
and ecx, 3
push 0xb4
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0xc4]
push edx
mov dword [0x6683a0], ecx
push 0
mov ecx, 0x60aca0
call fcn.00480950
mov ecx, ebx
call fcn.0040a930
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
push eax
call fcn.0050f580
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x170]
push eax
push str.City__s_not_installed.
call fcn.00558660
add esp, 8
mov ecx, 0x60aca0
call fcn.00480310
xor eax, eax
mov ecx, ebx
push eax
push 1
mov dword [0x66839c], eax
mov dword [0x609254], eax
call fcn.004076c0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
push ecx
call fcn.0050f580
mov ecx, dword [ebp - 0xc]
add esp, 4
xor eax, eax
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret