Function at 0x4287a1
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 4], 0
push 4
call fcn.004c34cd
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov dword [ebx], 0
push 0x60001
push 0
push ebx
push 1
mov eax, 5
mov ebx, 0x5601d0
call fcn.004c34eb
add esp, 0x10
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
mov ebx, dword [ebx + 0x14]
add ebx, 0xc
mov dword [ebp - 0xc], ebx
push 0x60001
push 0
mov ebx, dword [ebp - 0xc]
push dword [ebx]
push 1
mov eax, 5
mov ebx, 0x560a80
call fcn.004c34eb
add esp, 0x10
xor ecx, ecx
push eax
lea eax, [ebp - 4]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x428a68
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
mov ebx, dword [ebx + 0x14]
add ebx, 0xc
mov dword [ebp - 0xc], ebx
fild dword [ebp - 4]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fsub qword [0x5f457c]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
call fcn.00401004
push 0x80000301
push 0
push eax
push 0x60001
push 0
mov ebx, dword [ebp - 0xc]
push dword [ebx]
push 2
mov eax, 5
mov ebx, 0x560ad0
call fcn.004c34eb
add esp, 0x1c
mov dword [ebp - 0x20], eax
push reloc.WS2_32.dll_connect
push 0
push str.cityId
push 0x60001
push 0
push dword [ebp - 0x20]
push 2
mov eax, 5
mov ebx, 0x5608e0
call fcn.004c34eb
add esp, 0x1c
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
push ebx
push 0x60001
push 0
push ebx
push 1
mov eax, 5
mov ebx, 0x5601f0
call fcn.004c34eb
add esp, 0x10
call fcn.004c34d9
add esp, 4
push 0x60001
push 0
push dword [ebp - 0x24]
push 1
mov eax, 5
mov ebx, 0x560530
call fcn.004c34eb
add esp, 0x10
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], ecx
mov ebx, dword [ebp - 0x24]
push ebx
push 0x60001
push 0
push ebx
push 1
mov eax, 5
mov ebx, 0x5601f0
call fcn.004c34eb
add esp, 0x10
call fcn.004c34d9
add esp, 4
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
cmp ecx, 0x80000101
jne 0x428945
and eax, 0xff
jmp 0x42896b
cmp ecx, 0x80000201
jne 0x428950
cwde
jmp 0x42896b
mov dword [ebp - 0x38], eax
cmp ecx, 0x80000301
je 0x42896e
cmp ecx, 0x80000401
jne 0x428973
mov dword [ebp - 0x34], edx
fild qword [ebp - 0x38]
jmp 0x428995
mov dword [ebp - 0x38], eax
fild dword [ebp - 0x38]
jmp 0x428995
cmp ecx, 0x80000501
jne 0x428980
fld dword [ebp - 0x38]
jmp 0x428995
cmp ecx, 0x80000601
je 0x42899e
push 2
call fcn.004c34df
add esp, 4
fstp qword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
fild dword [ebp + 0xc]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x38]
fsub qword [ebp - 0x40]
ftst
fnstsw ax
test ah, 1
je 0x4289bb
fchs
fcomp qword [0x5f4ecd]
fnstsw ax
test ah, 0x41
mov eax, 0
setne al
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x28]
cmp ecx, reloc.WS2_32.dll_connect
je 0x4289e8
cmp ecx, reloc.WS2_32.dll_getpeername
jne 0x4289f8
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4289f8
push ebx
call fcn.004c34d9
add esp, 4
cmp dword [ebp - 0x44], 0
je 0x428a60
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
mov ebx, dword [ebx + 0x14]
add ebx, 0xc
mov dword [ebp - 0xc], ebx
fild dword [ebp - 4]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fsub qword [0x5f457c]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
call fcn.00401004
push 0x80000301
push 0
push eax
push 0x60001
push 0
mov ebx, dword [ebp - 0xc]
push dword [ebx]
push 2
mov eax, 5
mov ebx, 0x560ad0
call fcn.004c34eb
add esp, 0x1c
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
jmp 0x428ad5
pop eax
pop ebx
pop ecx
jmp 0x42881f
add esp, 0xc
push reloc.WS2_32.dll_connect
push 0
push 0x5f4731
push 0x60001
push 0
push dword [ebp - 8]
push 2
mov eax, 5
mov ebx, 0x560230
call fcn.004c34eb
add esp, 0x1c
mov eax, dword [ebp - 8]
push eax
push 4
call fcn.004c34cd
add esp, 4
pop ebx
push eax
push 0x60001
push 0
push ebx
push 0x60001
push 0
push eax
push 2
mov eax, 5
mov ebx, 0x560210
call fcn.004c34eb
add esp, 0x1c
pop eax
jmp 0x428ad5
push eax
mov ebx, dword [ebp - 8]
push ebx
push 0x60001
push 0
push ebx
push 1
mov eax, 5
mov ebx, 0x5601f0
call fcn.004c34eb
add esp, 0x10
call fcn.004c34d9
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8