Function at 0x140003230
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
mov eax, 0x1070
call fcn.14003dca0
sub rsp, rax
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x10b8], rbx
mov rax, qword [0x140058690]
xor rax, rsp
mov qword [rsp + 0x1060], rax
mov r13, r8
mov r12, rdx
mov rdi, rcx
xor ebx, ebx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.Network
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rbp, rax
test rax, rax
jne 0x140003303
lea rcx, str.InternetOpenW_failed.
call fcn.140005e80
mov rdi, rax
mov dl, 0xa
mov rcx, rax
call fcn.140003a50
mov rcx, qword [rdi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rdi + 0x10], 6
jne 0x1400032d5
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 0x14000346e
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x1400032f6
or edx, 4
xor r8d, r8d
call fcn.140001a10
jmp 0x14000346e
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov rsi, rax
test rax, rax
jne 0x14000339a
lea rcx, str.InternetOpenUrlW_failed.
call fcn.140005e80
mov rdi, rax
mov dl, 0xa
mov rcx, rax
call fcn.140003a50
mov rcx, qword [rdi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rdi + 0x10], 6
jne 0x140003367
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 0x14000338c
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x140003384
or edx, 4
xor r8d, r8d
call fcn.140001a10
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x14000346e
mov qword [rsp + 0x38], rbx
mov rdi, rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbx
lea r9, [rsp + 0x30]
mov r8d, 0x1000
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140003416
nop dword [rax]
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140003411
lea r9, [rsp + rax + 0x60]
lea r8, [rsp + 0x60]
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.140006450
lea r9, [rsp + 0x30]
mov r8d, 0x1000
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
mov rdi, qword [rsp + 0x40]
test eax, eax
jne 0x1400033d0
mov rbx, qword [rsp + 0x38]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
cmp rbx, rdi
je 0x140003461
mov ecx, edi
sub ecx, ebx
mov dword [r13], ecx
call fcn.14000f6b4
mov qword [r12], rax
sub rdi, rbx
mov r8, rdi
mov rdx, rbx
mov rcx, rax
call fcn.14002c2c0
nop
test rbx, rbx
je 0x14000345d
mov rcx, rbx
call fcn.14002cf50
mov al, 1
jmp 0x140003470
test rbx, rbx
je 0x14000346e
mov rcx, rbx
call fcn.14002cf50
xor al, al
mov rcx, qword [rsp + 0x1060]
xor rcx, rsp
call fcn.14002c0a0
mov rbx, qword [rsp + 0x10b8]
add rsp, 0x1070
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret