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

Disassembly:
push rbp
push r12
push r13
lea rbp, [rsp - 0x1040]
mov eax, 0x1140
call fcn.14003f8f0
sub rsp, rax
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x1160], rbx
mov qword [rsp + 0x1168], rsi
mov qword [rsp + 0x1170], rdi
mov rax, qword [0x14005c4f0]
xor rax, rsp
mov qword [rbp + 0x1030], rax
call fcn.1400022e0
mov rcx, rax
call fcn.140002250
mov r12, rax
xor ebx, ebx
mov dword [rsp + 0x30], ebx
mov edi, ebx
mov qword [rsp + 0x38], rbx
mov esi, ebx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], 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 0x140002720
lea rcx, str.Failed_to_initialize_WinINet.
call fcn.140009e70
mov rdi, rax
mov dl, 0xa
mov rcx, rax
call fcn.140003b40
mov rcx, qword [rdi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rdi + 0x10], 6
jne 0x1400026f5
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 0x14000271b
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x140002712
or edx, 4
xor r8d, r8d
call fcn.140001c90
nop
jmp 0x140002a87
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 0x1400027b8
lea rcx, str.Failed_to_open_URL.
call fcn.140009e70
mov rdi, rax
mov dl, 0xa
mov rcx, rax
call fcn.140003b40
mov rcx, qword [rdi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rdi + 0x10], 6
jne 0x140002784
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 0x1400027a9
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x1400027a1
or edx, 4
xor r8d, r8d
call fcn.140001c90
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
jmp 0x140002a87
lea r9, [rsp + 0x30]
mov r8d, 0x1000
lea rdx, [rbp + 0x30]
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140002818
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140002813
lea r9, [rbp + rax + 0x30]
lea r8, [rbp + 0x30]
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.14000ace0
lea r9, [rsp + 0x30]
mov r8d, 0x1000
lea rdx, [rbp + 0x30]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetReadFile]
mov rsi, qword [rsp + 0x40]
test eax, eax
jne 0x1400027d4
mov rdi, qword [rsp + 0x38]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
cmp rdi, rsi
jne 0x140002897
lea rcx, str.No_data_received_from_the_URL.
call fcn.140009e70
mov rsi, rax
mov dl, 0xa
mov rcx, rax
call fcn.140003b40
mov rcx, qword [rsi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rsi + 0x10], 6
jne 0x14000286c
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 0x140002892
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x140002889
or edx, 4
xor r8d, r8d
call fcn.140001c90
nop
jmp 0x140002a7a
lea rcx, [rbp - 0x50]
call fcn.140004260
nop
mov qword [rsp + 0x78], 0xf
mov qword [rsp + 0x70], rbx
mov byte [rsp + 0x60], 0
mov r8, rsi
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.14000ae80
nop
lea r8, [rsp + 0x60]
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x50]
call fcn.140004400
nop
mov edx, 2
lea rcx, [rbp - 0x78]
call fcn.140005f60
cmp rax, 0xffffffffffffffff
je 0x1400029bf
lea rcx, str.The_IP_address_is_from_China.
call fcn.14000a0c0
mov rsi, rax
mov edx, 0xa
mov rcx, rax
call fcn.140003c90
mov r12d, ebx
mov rcx, qword [rsi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rsi + 0x10], 6
jne 0x140002934
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 0x14000295c
mov edx, dword [rcx + 0x10]
or edx, r12d
cmp qword [rcx + 0x48], 0
jne 0x140002953
or edx, 4
xor r8d, r8d
call fcn.140001c90
nop
cmp qword [rbp - 0x60], 8
jb 0x14000296c
mov rcx, qword [rbp - 0x78]
call fcn.14002ef24
mov qword [rbp - 0x60], 7
mov qword [rbp - 0x68], rbx
mov word [rbp - 0x78], bx
cmp qword [rsp + 0x78], 0x10
jb 0x14000298e
mov rcx, qword [rsp + 0x60]
call fcn.14002ef24
mov qword [rsp + 0x78], 0xf
mov qword [rsp + 0x70], rbx
mov byte [rsp + 0x60], 0
lea rcx, [rbp - 0x50]
call fcn.140004340
nop
test rdi, rdi
je 0x1400029b8
mov rcx, rdi
call fcn.14002ef24
mov al, 1
jmp 0x140002a89
lea rcx, str.The_IP_address_is_not_from_China.
call fcn.14000a0c0
mov rsi, rax
mov edx, 0xa
mov rcx, rax
call fcn.140003c90
mov r12d, ebx
mov rcx, qword [rsi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rsi + 0x10], 6
jne 0x140002a03
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 0x140002a2b
mov edx, dword [rcx + 0x10]
or edx, r12d
cmp qword [rcx + 0x48], 0
jne 0x140002a22
or edx, 4
xor r8d, r8d
call fcn.140001c90
nop
cmp qword [rbp - 0x60], 8
jb 0x140002a3b
mov rcx, qword [rbp - 0x78]
call fcn.14002ef24
mov qword [rbp - 0x60], 7
mov qword [rbp - 0x68], rbx
mov word [rbp - 0x78], bx
cmp qword [rsp + 0x78], 0x10
jb 0x140002a5d
mov rcx, qword [rsp + 0x60]
call fcn.14002ef24
mov qword [rsp + 0x78], 0xf
mov qword [rsp + 0x70], rbx
mov byte [rsp + 0x60], 0
lea rcx, [rbp - 0x50]
call fcn.140004340
nop
test rdi, rdi
je 0x140002a87
mov rcx, rdi
call fcn.14002ef24
xor al, al
mov rcx, qword [rbp + 0x1030]
xor rcx, rsp
call fcn.14002d740
lea r11, [rsp + 0x1140]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rbp
ret