Function at 0x495420
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d8eb8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x6609c4]
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 0x4956f3
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.00408190
mov dword [ebp - 0x20], eax
push str.country
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.00406470
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x20]
call fcn.00496740
mov ecx, dword [ebp - 0x2c]
push esi
lea ecx, [ecx + 0x14]
call fcn.00406bc0
mov byte [ebp - 4], 0
or ebx, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4954c9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.province
lea ecx, [ebp - 0x14]
call fcn.00406470
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x20]
call fcn.00496740
mov ecx, dword [ebp - 0x2c]
lea eax, [esi + 4]
push eax
lea ecx, [ecx + 0x14]
call fcn.00406bc0
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x495517
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.city
lea ecx, [ebp - 0x14]
call fcn.00406470
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x20]
call fcn.00496740
mov ecx, dword [ebp - 0x2c]
lea eax, [esi + 8]
push eax
lea ecx, [ecx + 0x14]
call fcn.00406bc0
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x495565
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.district
lea ecx, [ebp - 0x14]
call fcn.00406470
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x20]
call fcn.00496740
mov ecx, dword [ebp - 0x2c]
lea eax, [esi + 0xc]
push eax
lea ecx, [ecx + 0x14]
call fcn.00406bc0
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4955b3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x63e5fc
lea ecx, [ebp - 0x14]
call fcn.00406470
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x20]
call fcn.00496740
mov ecx, dword [ebp - 0x2c]
lea eax, [esi + 0x10]
push eax
lea ecx, [ecx + 0x14]
call fcn.00406bc0
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x495601
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.type
lea ecx, [ebp - 0x14]
call fcn.00406470
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x20]
call fcn.00496740
mov ecx, dword [ebp - 0x2c]
lea eax, [esi + 0x14]
push eax
lea ecx, [ecx + 0x14]
call fcn.00406bc0
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49564f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.desc
lea ecx, [ebp - 0x14]
call fcn.00406470
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x20]
call fcn.00496740
mov ecx, dword [ebp - 0x2c]
lea eax, [esi + 0x18]
push eax
lea ecx, [ecx + 0x14]
call fcn.00406bc0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x49569b
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.004965e0
test eax, eax
je 0x4956c7
lea edx, [esi + 0x1c]
lea ecx, [ebp - 0x34]
call fcn.00485a40
lea ecx, [ebp - 0x34]
call fcn.004867e0
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.004744d0
push dword [ebp - 0x20]
call fcn.00589ff5
add esp, 4
mov ecx, dword [esi + 0x1c]
sub ecx, 0x10
call fcn.00411a00
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