Function at 0x46ff30
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d59a8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x50d108]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.00413e10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
and dword [ebp - 0x24], 0xfffffe00
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x2c]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
call fcn.004679f0
test eax, eax
je 0x470387
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
call fcn.004714a0
test eax, eax
je 0x470387
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.004650f0
push 0x4f2dc0
lea ecx, [ebp - 0x10]
call fcn.004043c0
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x1c]
call fcn.0042c870
mov esi, eax
cmp esi, dword [ebp - 0x1c]
je 0x46fff2
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00413990
test al, al
je 0x47001b
lea eax, [ebp - 0x10]
push ecx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004718f0
push eax
add eax, 0x10
lea ecx, [ebp - 0x1c]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
call fcn.0045f2f0
mov esi, dword [ebp - 0x14]
add esi, 0x14
mov ecx, edi
push esi
call fcn.00402130
mov byte [ebp - 4], 0
or ebx, 0xffffffff
mov edx, dword [ebp - 0x10]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x470047
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.province
lea ecx, [ebp - 0x10]
call fcn.004043c0
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x1c]
call fcn.0042c870
mov esi, eax
cmp esi, dword [ebp - 0x1c]
je 0x47007c
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00413990
test al, al
je 0x4700a5
lea eax, [ebp - 0x10]
push ecx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004718f0
push eax
add eax, 0x10
lea ecx, [ebp - 0x1c]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
call fcn.0045f2f0
mov esi, dword [ebp - 0x14]
add esi, 0x14
lea ecx, [edi + 4]
push esi
call fcn.00402130
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4700cf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.city
lea ecx, [ebp - 0x10]
call fcn.004043c0
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x1c]
call fcn.0042c870
mov esi, eax
cmp esi, dword [ebp - 0x1c]
je 0x470104
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00413990
test al, al
je 0x47012d
lea eax, [ebp - 0x10]
push ecx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004718f0
push eax
add eax, 0x10
lea ecx, [ebp - 0x1c]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
call fcn.0045f2f0
mov esi, dword [ebp - 0x14]
add esi, 0x14
lea ecx, [edi + 8]
push esi
call fcn.00402130
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x470157
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.district
lea ecx, [ebp - 0x10]
call fcn.004043c0
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x1c]
call fcn.0042c870
mov esi, eax
cmp esi, dword [ebp - 0x1c]
je 0x47018c
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00413990
test al, al
je 0x4701b5
lea eax, [ebp - 0x10]
push ecx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004718f0
push eax
add eax, 0x10
lea ecx, [ebp - 0x1c]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
call fcn.0045f2f0
mov esi, dword [ebp - 0x14]
add esi, 0x14
lea ecx, [edi + 0xc]
push esi
call fcn.00402130
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4701df
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x4f2df0
lea ecx, [ebp - 0x10]
call fcn.004043c0
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x1c]
call fcn.0042c870
mov esi, eax
cmp esi, dword [ebp - 0x1c]
je 0x470214
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00413990
test al, al
je 0x47023d
lea eax, [ebp - 0x10]
push ecx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004718f0
push eax
add eax, 0x10
lea ecx, [ebp - 0x1c]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
call fcn.0045f2f0
mov esi, dword [ebp - 0x14]
add esi, 0x14
lea ecx, [edi + 0x10]
push esi
call fcn.00402130
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x470267
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.type
lea ecx, [ebp - 0x10]
call fcn.004043c0
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x1c]
call fcn.0042c870
mov esi, eax
cmp esi, dword [ebp - 0x1c]
je 0x47029c
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00413990
test al, al
je 0x4702c5
lea eax, [ebp - 0x10]
push ecx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004718f0
push eax
add eax, 0x10
lea ecx, [ebp - 0x1c]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
call fcn.0045f2f0
mov esi, dword [ebp - 0x14]
add esi, 0x14
lea ecx, [edi + 0x14]
push esi
call fcn.00402130
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4702ef
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.desc
lea ecx, [ebp - 0x10]
call fcn.004043c0
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x1c]
call fcn.0042c870
mov esi, eax
cmp esi, dword [ebp - 0x1c]
je 0x470324
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00413990
test al, al
je 0x47034d
lea eax, [ebp - 0x10]
push ecx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004718f0
push eax
add eax, 0x10
lea ecx, [ebp - 0x1c]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
call fcn.0045f2f0
mov esi, dword [ebp - 0x14]
add esi, 0x14
lea ecx, [edi + 0x18]
push esi
call fcn.00402130
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x470375
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp + 8]
lea ecx, [edi + 0x1c]
call fcn.00443ea0
mov esi, 1
jmp 0x470391
lea ecx, [ebp - 0x2c]
call fcn.004650f0
xor esi, esi
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x1c]
push eax
push dword [eax]
lea eax, [ebp + 8]
push eax
call fcn.0045ca20
push 0x18
push 1
push dword [ebp - 0x1c]
call fcn.00403e00
add esp, 0xc
mov eax, esi
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