Function at 0x140002b70
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.1400405f0
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.140002830
mov rcx, rax
call fcn.1400027a0
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 0x140002c5d
lea rcx, str.Failed_to_initialize_WinINet.
call fcn.140009ab0
mov rdi, rax
mov dl, 0xa
mov rcx, rax
call fcn.140003f90
mov rcx, qword [rdi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rdi + 0x10], 6
jne 0x140002c32
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 0x140002c58
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x140002c4f
or edx, 4
xor r8d, r8d
call fcn.1400024b0
nop
jmp 0x140002fd3
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 0x140002cf5
lea rcx, str.Failed_to_open_URL.
call fcn.140009ab0
mov rdi, rax
mov dl, 0xa
mov rcx, rax
call fcn.140003f90
mov rcx, qword [rdi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rdi + 0x10], 6
jne 0x140002cc1
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 0x140002ce6
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x140002cde
or edx, 4
xor r8d, r8d
call fcn.1400024b0
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
jmp 0x140002fd3
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 0x140002d58
mov eax, dword [rbp + 0x1050]
test eax, eax
je 0x140002d54
lea r9, [rbp + rax + 0x30]
lea r8, [rbp + 0x30]
mov rdx, rsi
lea rcx, [rbp - 0x80]
call fcn.14000a920
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 0x140002d13
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 0x140002dd7
lea rcx, str.No_data_received_from_the_URL.
call fcn.140009ab0
mov rsi, rax
mov dl, 0xa
mov rcx, rax
call fcn.140003f90
mov rcx, qword [rsi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rsi + 0x10], 6
jne 0x140002dac
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 0x140002dd2
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x140002dc9
or edx, 4
xor r8d, r8d
call fcn.1400024b0
nop
jmp 0x140002fc6
lea rcx, [rbp - 0x50]
call fcn.1400046d0
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.14000aac0
nop
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x50]
call fcn.140004870
nop
mov edx, 2
lea rcx, [rsp + 0x58]
call fcn.140006010
cmp rax, 0xffffffffffffffff
je 0x140002f06
lea rcx, str.The_IP_address_is_from_China.
call fcn.140009d00
mov rsi, rax
mov edx, 0xa
mov rcx, rax
call fcn.1400040e0
mov r12d, ebx
mov rcx, qword [rsi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rsi + 0x10], 6
jne 0x140002e76
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 0x140002e9e
mov edx, dword [rcx + 0x10]
or edx, r12d
cmp qword [rcx + 0x48], 0
jne 0x140002e95
or edx, 4
xor r8d, r8d
call fcn.1400024b0
nop
cmp qword [rsp + 0x70], 8
jb 0x140002eb0
mov rcx, qword [rsp + 0x58]
call fcn.14002dcdc
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rbx
mov word [rsp + 0x58], bx
cmp qword [rsp + 0x48], 0x10
jb 0x140002ed5
mov rcx, qword [rsp + 0x30]
call fcn.14002dcdc
mov qword [rsp + 0x48], 0xf
mov qword [rsp + 0x40], rbx
mov byte [rsp + 0x30], 0
lea rcx, [rbp - 0x50]
call fcn.1400047b0
nop
test rdi, rdi
je 0x140002eff
mov rcx, rdi
call fcn.14002dcdc
mov al, 1
jmp 0x140002fd5
lea rcx, str.The_IP_address_is_not_from_China.
call fcn.140009d00
mov rsi, rax
mov edx, 0xa
mov rcx, rax
call fcn.1400040e0
mov r12d, ebx
mov rcx, qword [rsi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rsi + 0x10], 6
jne 0x140002f4a
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 0x140002f72
mov edx, dword [rcx + 0x10]
or edx, r12d
cmp qword [rcx + 0x48], 0
jne 0x140002f69
or edx, 4
xor r8d, r8d
call fcn.1400024b0
nop
cmp qword [rsp + 0x70], 8
jb 0x140002f84
mov rcx, qword [rsp + 0x58]
call fcn.14002dcdc
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rbx
mov word [rsp + 0x58], bx
cmp qword [rsp + 0x48], 0x10
jb 0x140002fa9
mov rcx, qword [rsp + 0x30]
call fcn.14002dcdc
mov qword [rsp + 0x48], 0xf
mov qword [rsp + 0x40], rbx
mov byte [rsp + 0x30], 0
lea rcx, [rbp - 0x50]
call fcn.1400047b0
nop
test rdi, rdi
je 0x140002fd3
mov rcx, rdi
call fcn.14002dcdc
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