Function at 0x518d50
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a7f18
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x60f520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x18], 0
cmp dword [eax - 0xc], 0
jne 0x518ffd
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.0041b090
mov dword [ebp - 0x20], eax
push 0x5cdf6c
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.0040c2d0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x20]
call fcn.00519e20
push esi
mov ecx, eax
call fcn.0040b7d0
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, edi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x518df3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.province
lea ecx, [ebp - 0x14]
call fcn.0040c2d0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x20]
call fcn.00519e20
lea ecx, [esi + 4]
push ecx
mov ecx, eax
call fcn.0040b7d0
mov byte [ebp - 4], 0
mov ecx, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x518e3b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.city
lea ecx, [ebp - 0x14]
call fcn.0040c2d0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x20]
call fcn.00519e20
lea ecx, [esi + 8]
push ecx
mov ecx, eax
call fcn.0040b7d0
mov byte [ebp - 4], 0
mov ecx, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x518e83
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.district
lea ecx, [ebp - 0x14]
call fcn.0040c2d0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x20]
call fcn.00519e20
lea ecx, [esi + 0xc]
push ecx
mov ecx, eax
call fcn.0040b7d0
mov byte [ebp - 4], 0
mov ecx, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x518ecb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x5cdf9c
lea ecx, [ebp - 0x14]
call fcn.0040c2d0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x20]
call fcn.00519e20
lea ecx, [esi + 0x10]
push ecx
mov ecx, eax
call fcn.0040b7d0
mov byte [ebp - 4], 0
mov ecx, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x518f13
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.type
lea ecx, [ebp - 0x14]
call fcn.0040c2d0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x20]
call fcn.00519e20
lea ecx, [esi + 0x14]
push ecx
mov ecx, eax
call fcn.0040b7d0
mov byte [ebp - 4], 0
mov ecx, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x518f5b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.desc
lea ecx, [ebp - 0x14]
call fcn.0040c2d0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x20]
call fcn.00519e20
lea ecx, [esi + 0x18]
push ecx
mov ecx, eax
call fcn.0040b7d0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x518fa1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
and dword [ebp - 0x2c], 0xfffffe00
mov dword [ebp - 0x28], 0
lea edx, [ebp - 0x34]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x20]
call fcn.0051a4a0
test eax, eax
je 0x518fcd
lea edx, [esi + 0x1c]
lea ecx, [ebp - 0x34]
call fcn.0050c3e0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0
call fcn.004e6420
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x20]
push eax
push dword [eax]
lea eax, [ebp - 0x14]
push eax
call fcn.00519e90
push dword [ebp - 0x20]
call fcn.00551995
add esp, 4
mov ecx, dword [esi + 0x1c]
sub ecx, 0x10
call fcn.00429f20
lea ecx, [eax + 0x10]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4