Function at 0x100061de
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1001f862
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x10027120]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x10027120]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
xor eax, eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
cmp ebx, eax
je 0x1000622b
mov byte [ebx], al
cmp edi, eax
je 0x10006231
mov byte [edi], al
push eax
push eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
push str.Referer:_http:__ip_api.com_r_n
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x28]
push eax
xor ecx, ecx
mov edx, str.http:__ip_api.com_json__langzh_CN
call fcn.1000a65e
add esp, 0x14
cmp eax, 0xc8
jne 0x1000647c
mov esi, dword [esp + 0x18]
test esi, esi
je 0x1000647c
cmp dword [esp + 0x1c], 0
je 0x1000647c
cmp dword [esp + 0x1c], 0x400
ja 0x1000647c
lea eax, [esp + 0x2c]
push eax
call fcn.10007af5
and dword [esp + 0x78], 0
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x24]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call fcn.10008f44
cmp dword [eax + 0x30], 0
jne 0x10006465
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x2c]
shl edi, 5
add edi, dword [esp + 0x34]
push eax
mov esi, str.status
lea ebx, [esp + 0x1c]
call fcn.10008fe0
cmp dword [eax], edi
je 0x10006465
mov edi, esi
mov edx, edi
lea esi, [esp + 0x2c]
call fcn.100090f4
mov ax, word [eax + 0xe]
shr ax, 0xa
test al, 1
je 0x10006465
mov edx, edi
call fcn.100090f4
mov ecx, 0x1000
test word [eax + 0xe], cx
jne 0x10006310
mov eax, dword [eax + 8]
test eax, eax
je 0x10006465
push str.success
push eax
call fcn.1000f06a
pop ecx
pop ecx
test eax, eax
jne 0x10006465
cmp dword [esp + 0x10], eax
je 0x1000640a
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x34]
shl eax, 5
add eax, ebx
cmp ebx, eax
setne al
mov dword [esp + 0x20], str.country
mov dword [esp + 0x24], str.regionName
mov dword [esp + 0x28], str.city
test al, al
je 0x1000640a
add ebx, 0x18
mov eax, 0x1000
lea esi, [ebx - 0x18]
test word [ebx - 0xa], ax
jne 0x1000637d
mov esi, dword [ebx - 0x10]
test esi, esi
je 0x100063ec
cmp byte [esi], 0
je 0x100063ec
xor edi, edi
push esi
push dword [esp + edi*4 + 0x24]
call fcn.1000f06a
pop ecx
pop ecx
test eax, eax
je 0x100063a0
inc edi
cmp edi, 3
jb 0x10006388
jmp 0x100063ec
mov eax, 0x1000
test word [ebx + 6], ax
lea eax, [ebx - 8]
jne 0x100063b0
mov eax, dword [ebx]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100063b2
mov edi, dword [esp + 0x10]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100063c0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x10]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100063dd
mov esi, 0x10023f24
movsw word es:[edi], word [esi]
mov eax, dword [esp + 0x2c]
shl eax, 5
add eax, dword [esp + 0x34]
add ebx, 0x20
lea ecx, [ebx - 0x18]
cmp ecx, eax
setne al
test al, al
jne 0x1000636c
cmp dword [esp + 0x14], 0
je 0x10006465
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x2c]
shl edi, 5
add edi, dword [esp + 0x34]
push eax
mov esi, str.query
lea ebx, [esp + 0x24]
call fcn.10008fe0
cmp dword [eax], edi
je 0x10006465
mov edx, esi
lea esi, [esp + 0x2c]
call fcn.100090f4
mov ecx, 0x1000
test word [eax + 0xe], cx
jne 0x1000644c
mov eax, dword [eax + 8]
test eax, eax
je 0x10006465
cmp byte [eax], 0
je 0x10006465
mov edx, dword [esp + 0x14]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1000645b
or dword [esp + 0x78], 0xffffffff
lea eax, [esp + 0x2c]
push eax
call fcn.10007b74
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
test edi, edi
je 0x10006485
cmp byte [edi], 0
je 0x1000648e
test ebx, ebx
je 0x10006492
cmp byte [ebx], 0
jne 0x10006492
xor eax, eax
jmp 0x10006495
xor eax, eax
inc eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.1000d755
mov esp, ebp
pop ebp
ret 0xc