Function at 0x516ca0
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x5ca7a3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x140
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [esi + 0x1dc]
push ebx
mov dword [esp + 0x3c], ecx
call fcn.005921e0
lea ebp, [esi + 0xe8]
push ebx
mov ecx, ebp
call fcn.005921e0
mov eax, dword [esi + 0x180]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push ebx
push 0x14b
push eax
call edi
mov ecx, dword [esi + 0x144]
push ebx
push ebx
push 0x14b
push ecx
call edi
mov edx, dword [0x63b4a0]
mov dword [esp + 0x14], edx
lea eax, [esp + 0x14]
lea ecx, [esi + 0x1a0]
push eax
mov dword [esp + 0x15c], ebx
call fcn.0058f654
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 8]
cmp eax, 7
jge 0x516d61
mov edx, dword [esi + 0x180]
push 0x645010
push ebx
push 0x143
push edx
call edi
mov eax, dword [esi + 0x144]
push 0x645010
push ebx
push 0x143
push eax
call edi
jmp 0x517104
lea ecx, [esp + 0x28]
push 2
push ecx
lea ecx, [esp + 0x1c]
call fcn.00588091
mov eax, dword [eax]
push 0x619788
push eax
mov byte [esp + 0x160], 1
call fcn.00568a52
add esp, 8
test eax, eax
je 0x516e3a
lea edx, [esp + 0x3c]
push 2
push edx
lea ecx, [esp + 0x1c]
call fcn.00588091
mov eax, dword [eax]
push 0x619784
push eax
call fcn.00568a52
add esp, 8
lea ecx, [esp + 0x3c]
test eax, eax
setne byte [esp + 0x13]
call fcn.0058df3f
cmp byte [esp + 0x13], bl
je 0x516e3a
lea eax, [esp + 0x34]
push 2
push eax
lea ecx, [esp + 0x1c]
call fcn.00588091
mov eax, dword [eax]
push 0x619780
push eax
call fcn.00568a52
add esp, 8
lea ecx, [esp + 0x34]
test eax, eax
setne byte [esp + 0x13]
call fcn.0058df3f
cmp byte [esp + 0x13], bl
je 0x516e3a
lea ecx, [esp + 0x30]
push 2
push ecx
lea ecx, [esp + 0x1c]
call fcn.00588091
mov eax, dword [eax]
push 0x61977c
push eax
call fcn.00568a52
add esp, 8
lea ecx, [esp + 0x30]
test eax, eax
setne byte [esp + 0x13]
call fcn.0058df3f
mov al, byte [esp + 0x13]
mov byte [esp + 0x13], 1
cmp al, bl
jne 0x516e3e
mov byte [esp + 0x13], bl
lea ecx, [esp + 0x28]
mov byte [esp + 0x158], bl
call fcn.0058df3f
cmp byte [esp + 0x13], bl
je 0x516e81
mov edx, dword [esi + 0x180]
push 0x645010
push ebx
push 0x143
push edx
call edi
mov eax, dword [esi + 0x144]
push 0x645010
push ebx
push 0x143
push eax
call edi
jmp 0x517104
push 1
mov ecx, ebp
call fcn.005921e0
lea ecx, [esp + 0x28]
push 7
push ecx
lea ecx, [esp + 0x1c]
call fcn.00588091
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x15c], 2
call fcn.0058e078
lea ecx, [esp + 0x28]
mov byte [esp + 0x158], bl
call fcn.0058df3f
mov eax, dword [0x63b4a0]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
push 0x645010
lea ecx, [esp + 0x1c]
mov byte [esp + 0x15c], 7
call fcn.0058e0c8
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0x180]
push edx
push ebx
push 0x143
push eax
call edi
mov ecx, dword [0x64a740]
push ecx
lea ecx, [esp + 0x44]
call fcn.00557aba
push ebx
push str.select__from_CityInfo_order_by_Parent
push ebx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x164], 8
call fcn.00557dcf
cmp dword [esp + 0x108], ebx
jne 0x516f93
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x40]
push edx
push str.Parent
call fcn.0055891c
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call fcn.00568a52
add esp, 8
test eax, eax
je 0x516f7b
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x18]
push edx
call fcn.0058e078
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x180]
push eax
push ebx
push 0x143
push ecx
call edi
mov edx, dword [esp + 0x40]
push 1
push 1
lea ecx, [esp + 0x48]
call dword [edx + 0x14]
cmp dword [esp + 0x108], ebx
je 0x516f30
lea ecx, [esp + 0x40]
call fcn.00557ea3
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
push str.select__from_T_MobileArea_where_S_Num_s
push ecx
call fcn.00588507
mov edx, dword [esp + 0x2c]
add esp, 0xc
lea ecx, [esp + 0x40]
push ebx
push edx
push ebx
call fcn.00557dcf
cmp dword [esp + 0x108], ebx
jne 0x517096
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x40]
push eax
push str.S_AreaCode
call fcn.0055891c
lea ecx, [esp + 0x40]
call fcn.00557ea3
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x20]
push ecx
push str.select__from_CityInfo_where_Pos_s
push edx
call fcn.00588507
mov eax, dword [esp + 0x2c]
add esp, 0xc
lea ecx, [esp + 0x40]
push ebx
push eax
push ebx
call fcn.00557dcf
cmp dword [esp + 0x108], ebx
jne 0x517096
lea ecx, [esp + 0x1c]
push ecx
push str.Parent
lea ecx, [esp + 0x48]
call fcn.0055891c
lea edx, [esp + 0x24]
lea ecx, [esp + 0x40]
push edx
push str.City
call fcn.0055891c
mov eax, dword [esp + 0x1c]
mov byte [0x637608], bl
mov ecx, dword [esi + 0x180]
push eax
push ebx
push 0x14c
push ecx
call edi
mov edx, dword [esi + 0x180]
push ebx
push eax
push 0x14e
push edx
call edi
push ecx
lea eax, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call fcn.0058dcb4
mov ecx, esi
call fcn.00517140
mov ecx, dword [esp + 0x38]
push 1
mov byte [0x637608], 1
call fcn.005921e0
lea ecx, [esp + 0x40]
call fcn.00557ea3
lea ecx, [esp + 0x40]
mov byte [esp + 0x158], 7
call fcn.00557cc6
lea ecx, [esp + 0x2c]
mov byte [esp + 0x158], 6
call fcn.0058df3f
lea ecx, [esp + 0x24]
mov byte [esp + 0x158], 5
call fcn.0058df3f
lea ecx, [esp + 0x20]
mov byte [esp + 0x158], 4
call fcn.0058df3f
lea ecx, [esp + 0x18]
mov byte [esp + 0x158], 3
call fcn.0058df3f
lea ecx, [esp + 0x1c]
mov byte [esp + 0x158], bl
call fcn.0058df3f
lea ecx, [esp + 0x14]
mov dword [esp + 0x158], 0xffffffff
call fcn.0058df3f
mov ecx, dword [esp + 0x150]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x14c
ret