Function at 0x140002210
Capabilities:
Create http request
Get geographical location
Read data from internet
Receive data

Disassembly:
push rbp
push r12
push r13
lea rbp, [rsp - 0x1030]
mov eax, 0x1130
call fcn.14003d5a0
sub rsp, rax
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x1158], rbx
mov qword [rsp + 0x1160], rsi
mov qword [rsp + 0x1168], rdi
call fcn.140001ed0
mov rcx, rax
call fcn.140001e40
mov r12, rax
xor ebx, ebx
mov dword [rbp + 0x1050], ebx
mov edi, ebx
mov qword [rbp - 0x80], rbx
mov esi, ebx
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x70], rbx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea edx, [rbx + 1]
lea rcx, str.GeoLocationChecker
call qword [sym.imp.WININET.dll_InternetOpenW]
mov r13, rax
test rax, rax
jne 0x1400022fd
lea rcx, str.Failed_to_initialize_WinINet.
call fcn.140005780
mov rdi, rax
mov dl, 0xa
mov rcx, rax
call fcn.140003380
mov rcx, qword [rdi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rdi + 0x10], 6
jne 0x1400022d2
mov rcx, qword [rcx + rdi + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
mov ecx, 4
cmp eax, 0xffffffff
cmove ebx, ecx
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
add rcx, rdi
test ebx, ebx
je 0x1400022f8
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x1400022ef
or edx, 4
xor r8d, r8d
call fcn.1400019b0
nop
jmp 0x140002673
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, r12
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov r12, rax
test rax, rax
jne 0x140002395
lea rcx, str.Failed_to_open_URL.
call fcn.140005780
mov rdi, rax
mov dl, 0xa
mov rcx, rax
call fcn.140003380
mov rcx, qword [rdi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rdi + 0x10], 6
jne 0x140002361
mov rcx, qword [rcx + rdi + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
mov ecx, 4
cmp eax, 0xffffffff
cmove ebx, ecx
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
add rcx, rdi
test ebx, ebx
je 0x140002386
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x14000237e
or edx, 4
xor r8d, r8d
call fcn.1400019b0
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
jmp 0x140002673
lea r9, [rbp + 0x1050]
mov r8d, 0x1000
lea rdx, [rbp + 0x30]
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1400023f8
mov eax, dword [rbp + 0x1050]
test eax, eax
je 0x1400023f4
lea r9, [rbp + rax + 0x30]
lea r8, [rbp + 0x30]
mov rdx, rsi
lea rcx, [rbp - 0x80]
call fcn.140005d50
lea r9, [rbp + 0x1050]
mov r8d, 0x1000
lea rdx, [rbp + 0x30]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetReadFile]
mov rsi, qword [rbp - 0x78]
test eax, eax
jne 0x1400023b3
mov rdi, qword [rbp - 0x80]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
cmp rdi, rsi
jne 0x140002477
lea rcx, str.No_data_received_from_the_URL.
call fcn.140005780
mov rsi, rax
mov dl, 0xa
mov rcx, rax
call fcn.140003380
mov rcx, qword [rsi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rsi + 0x10], 6
jne 0x14000244c
mov rcx, qword [rcx + rsi + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
mov ecx, 4
cmp eax, 0xffffffff
cmove ebx, ecx
mov rax, qword [rsi]
movsxd rcx, dword [rax + 4]
add rcx, rsi
test ebx, ebx
je 0x140002472
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x140002469
or edx, 4
xor r8d, r8d
call fcn.1400019b0
nop
jmp 0x140002666
lea rcx, [rbp - 0x50]
call fcn.1400036e0
nop
mov qword [rsp + 0x48], 0xf
mov qword [rsp + 0x40], rbx
mov byte [rsp + 0x30], 0
mov r8, rsi
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140005ef0
nop
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x50]
call fcn.140003880
nop
mov edx, 2
lea rcx, [rsp + 0x58]
call fcn.140004260
cmp rax, 0xffffffffffffffff
je 0x1400025a6
lea rcx, str.The_IP_address_is_from_China.
call fcn.1400059d0
mov rsi, rax
mov edx, 0xa
mov rcx, rax
call fcn.140003530
mov r12d, ebx
mov rcx, qword [rsi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rsi + 0x10], 6
jne 0x140002516
mov rcx, qword [rcx + rsi + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x68]
mov ecx, 4
cmp eax, 0xffffffff
cmove r12d, ecx
mov rax, qword [rsi]
movsxd rcx, dword [rax + 4]
add rcx, rsi
test r12d, r12d
je 0x14000253e
mov edx, dword [rcx + 0x10]
or edx, r12d
cmp qword [rcx + 0x48], 0
jne 0x140002535
or edx, 4
xor r8d, r8d
call fcn.1400019b0
nop
cmp qword [rsp + 0x70], 8
jb 0x140002550
mov rcx, qword [rsp + 0x58]
call fcn.14002c820
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rbx
mov word [rsp + 0x58], bx
cmp qword [rsp + 0x48], 0x10
jb 0x140002575
mov rcx, qword [rsp + 0x30]
call fcn.14002c820
mov qword [rsp + 0x48], 0xf
mov qword [rsp + 0x40], rbx
mov byte [rsp + 0x30], 0
lea rcx, [rbp - 0x50]
call fcn.1400037c0
nop
test rdi, rdi
je 0x14000259f
mov rcx, rdi
call fcn.14002c820
mov al, 1
jmp 0x140002675
lea rcx, str.The_IP_address_is_not_from_China.
call fcn.1400059d0
mov rsi, rax
mov edx, 0xa
mov rcx, rax
call fcn.140003530
mov r12d, ebx
mov rcx, qword [rsi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rsi + 0x10], 6
jne 0x1400025ea
mov rcx, qword [rcx + rsi + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x68]
mov ecx, 4
cmp eax, 0xffffffff
cmove r12d, ecx
mov rax, qword [rsi]
movsxd rcx, dword [rax + 4]
add rcx, rsi
test r12d, r12d
je 0x140002612
mov edx, dword [rcx + 0x10]
or edx, r12d
cmp qword [rcx + 0x48], 0
jne 0x140002609
or edx, 4
xor r8d, r8d
call fcn.1400019b0
nop
cmp qword [rsp + 0x70], 8
jb 0x140002624
mov rcx, qword [rsp + 0x58]
call fcn.14002c820
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rbx
mov word [rsp + 0x58], bx
cmp qword [rsp + 0x48], 0x10
jb 0x140002649
mov rcx, qword [rsp + 0x30]
call fcn.14002c820
mov qword [rsp + 0x48], 0xf
mov qword [rsp + 0x40], rbx
mov byte [rsp + 0x30], 0
lea rcx, [rbp - 0x50]
call fcn.1400037c0
nop
test rdi, rdi
je 0x140002673
mov rcx, rdi
call fcn.14002c820
xor al, al
lea r11, [rsp + 0x1130]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rbp
ret