Function at 0x40f090
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x491749
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4b5a50]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b5a50]
xor eax, esp
push eax
lea eax, [esp + 0x22c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x23c]
xor ebx, ebx
push str.http:__api.box.uuuo.com_open_ip.json
lea ecx, [esp + 0x1c]
mov dword [esp + 0x50], ebp
mov dword [esp + 0x1c], ebx
call fcn.00401600
push 0x49a67c
lea ecx, [esp + 0x18]
mov dword [esp + 0x238], ebx
call fcn.00401600
xor eax, eax
lea esi, [esp + 0x14c]
call fcn.00422970
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x88], esp
mov byte [esp + 0x250], 2
push ebx
xor eax, eax
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebx
push 0x49a67c
mov word [ecx + 4], ax
call fcn.00411830
mov ecx, dword [esp + 0x34]
mov edx, esi
call fcn.004240f0
cmp eax, ebx
je 0x40f683
mov ecx, esi
push ecx
lea ebx, [esp + 0xa4]
call fcn.00425160
xor ebx, ebx
mov byte [esp + 0x234], 3
cmp dword [esp + 0xb4], ebx
jne 0x40f1b1
push ebx
mov ecx, ebp
call fcn.00401600
cmp dword [esp + 0xb8], 0x10
jb 0x40f193
mov edx, dword [esp + 0xa4]
push edx
call fcn.0043e229
add esp, 4
mov dword [esp + 0xb8], 0xf
mov dword [esp + 0xb4], ebx
mov byte [esp + 0xa4], bl
jmp 0x40f68f
lea ecx, [esp + 0xbc]
push ecx
call fcn.00428860
mov eax, 0xfffffe00
and dword [esp + 0x44], eax
mov dword [esp + 0x48], ebx
and dword [esp + 0x34], eax
mov dword [esp + 0x38], ebx
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0xa8]
push edx
lea ecx, [esp + 0x108]
mov byte [esp + 0x240], 8
call fcn.00411250
mov eax, dword [esp + 0x100]
mov esi, 0x10
cmp dword [esp + 0x114], esi
jae 0x40f20e
lea eax, [esp + 0x100]
mov ecx, dword [esp + 0x110]
lea edx, [esp + 0x3c]
push edx
add ecx, eax
push ecx
push eax
lea eax, [esp + 0xc8]
push eax
call fcn.00428920
test al, al
jne 0x40f2c7
push ebx
mov ecx, ebp
call fcn.00401600
lea eax, [esp + 0x2c]
mov byte [esp + 0x234], 6
call fcn.004263a0
lea eax, [esp + 0x3c]
mov byte [esp + 0x234], 4
call fcn.004263a0
lea edi, [esp + 0xbc]
call fcn.0040f720
cmp dword [esp + 0xb8], esi
jb 0x40f282
mov ecx, dword [esp + 0xa4]
push ecx
call fcn.0043e229
add esp, 4
mov dword [esp + 0xb8], 0xf
mov dword [esp + 0xb4], ebx
mov byte [esp + 0xa4], bl
lea ecx, [esp + 0x14c]
call fcn.00422a50
mov byte [esp + 0x234], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40f6b6
mov al, byte [esp + 0x44]
cmp al, bl
je 0x40f2d7
cmp al, 7
jne 0x40f233
push 0x49b3ec
lea ebx, [esp + 0x40]
call fcn.004269f0
mov ecx, eax
call fcn.004266d0
test eax, eax
ja 0x40f35d
lea eax, [esp + 0x2c]
mov byte [esp + 0x234], 6
call fcn.004263a0
mov eax, ebx
mov byte [esp + 0x234], 4
call fcn.004263a0
lea edi, [esp + 0xbc]
call fcn.0040f720
mov byte [esp + 0x234], 2
cmp dword [esp + 0xb8], esi
jb 0x40f33d
mov ecx, dword [esp + 0xa4]
push ecx
call fcn.0043e229
add esp, 4
xor ebx, ebx
mov dword [esp + 0xb8], 0xf
mov dword [esp + 0xb4], ebx
mov byte [esp + 0xa4], bl
jmp 0x40f668
push 0x49b3ec
lea ebx, [esp + 0x40]
call fcn.004269f0
push eax
lea ecx, [esp + 0x20]
call fcn.00426240
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x1c]
movsx esi, al
and eax, 0xffffff00
movzx edx, cl
or eax, edx
mov edx, eax
mov eax, ecx
xor eax, esi
mov esi, dword [esp + 0x30]
and eax, 0xff
xor ecx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x20]
mov dword [esp + 0x20], esi
mov eax, edx
shl eax, 0x17
sar eax, 0x1f
mov esi, ecx
shl esi, 0x17
shl eax, 8
sar esi, 0x17
xor eax, ecx
xor esi, edx
and eax, 0x100
and esi, 0x100
xor ecx, eax
xor edx, esi
lea eax, [esp + 0x1c]
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edx
mov dword [esp + 0x24], ecx
call fcn.004263a0
mov ecx, dword [esp + 0x24]
and ecx, 0xffffff04
or ecx, 0x104
xor ebx, ebx
mov eax, 1
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ebx
test byte [0x4bb3a8], al
jne 0x40f432
or dword [0x4bb3a8], eax
push 0x492030
mov dword [0x4bb394], 0x4a3674
call fcn.0045d043
add esp, 4
mov ecx, dword [0x4b7c6c]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
push 0xffffffffffffffff
push 0x49a8f6
call eax
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x1c]
push ecx
mov eax, str.city
lea esi, [esp + 0x90]
lea ecx, [esp + 0x30]
mov byte [esp + 0x238], 9
call fcn.00426cd0
mov byte [esp + 0x234], 0xa
mov ecx, dword [eax]
mov ebp, 0xf
mov eax, ecx
mov dword [esp + 0x68], ebp
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
lea esi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40f490
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x58]
call fcn.00411600
lea edx, [esp + 0x50]
push edx
lea edi, [esp + 0x74]
mov byte [esp + 0x238], 0xb
call fcn.004213c0
add esp, 4
mov edi, 8
mov byte [esp + 0x234], 0xc
cmp dword [eax + 0x18], edi
jb 0x40f4d4
mov edx, dword [eax + 4]
jmp 0x40f4d7
lea edx, [eax + 4]
cmp edx, ebx
jne 0x40f4df
xor eax, eax
jmp 0x40f4f3
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40f4e4
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.00401d30
cmp dword [esp + 0x88], edi
jb 0x40f514
mov eax, dword [esp + 0x74]
push eax
call fcn.0043e229
add esp, 4
xor ecx, ecx
mov edi, 0x10
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], cx
cmp dword [esp + 0x68], edi
jb 0x40f545
mov edx, dword [esp + 0x54]
push edx
call fcn.0043e229
add esp, 4
lea eax, [esp + 0x8c]
mov dword [esp + 0x68], ebp
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
mov byte [esp + 0x234], 9
call fcn.004263a0
lea eax, [esp + 0x1c]
mov byte [esp + 0x234], 8
call fcn.004263a0
lea eax, [esp + 0x2c]
mov byte [esp + 0x234], 6
call fcn.004263a0
lea eax, [esp + 0x3c]
mov byte [esp + 0x234], 4
call fcn.004263a0
cmp dword [esp + 0x144], edi
jb 0x40f5b1
mov eax, dword [esp + 0x130]
push eax
call fcn.0043e229
add esp, 4
mov dword [esp + 0x144], ebp
mov dword [esp + 0x140], ebx
mov byte [esp + 0x130], bl
cmp dword [esp + 0x114], edi
jb 0x40f5df
mov ecx, dword [esp + 0x100]
push ecx
call fcn.0043e229
add esp, 4
lea esi, [esp + 0xdc]
mov dword [esp + 0x114], ebp
mov dword [esp + 0x110], ebx
mov byte [esp + 0x100], bl
call fcn.00411460
mov edx, dword [esp + 0xdc]
push edx
call fcn.0043e229
add esp, 4
lea esi, [esp + 0xbc]
call fcn.00411400
mov eax, dword [esp + 0xbc]
push eax
call fcn.0043e229
add esp, 4
mov byte [esp + 0x234], 2
cmp dword [esp + 0xb8], edi
jb 0x40f64d
mov ecx, dword [esp + 0xa4]
push ecx
call fcn.0043e229
add esp, 4
mov dword [esp + 0xb8], ebp
mov ebp, dword [esp + 0x4c]
mov dword [esp + 0xb4], ebx
mov byte [esp + 0xa4], bl
xor ebx, ebx
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
push eax
call fcn.00401e30
add esp, 4
add eax, 0x10
mov dword [ebp], eax
jmp 0x40f29b
push 0x49a67c
mov ecx, ebp
call fcn.00401600
lea ecx, [esp + 0x14c]
call fcn.00422a50
mov byte [esp + 0x234], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f6c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x234], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f6ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0045ceb0
add esp, 0x224
ret 4