Function at 0x180002dec
Capabilities:
Check http status code
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], r9
mov word [rax + 0x18], r8w
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov r14, qword [rbp + 0x90]
xor ebx, ebx
mov rsi, rdx
test r14, r14
je 0x180002e26
mov qword [r14], rbx
mov rdi, qword [rbp + 0x98]
test rdi, rdi
je 0x180002e34
mov dword [rdi], ebx
mov r12, qword [rbp + 0xa0]
test r12, r12
je 0x180002e44
mov qword [r12], rbx
mov r13, qword [rbp + 0xa8]
test r13, r13
je 0x180002e54
mov dword [r13], ebx
lea rcx, str.Microsoft_CryptoAPI_6.3
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rbp + 0x88], ebx
mov r15d, 1
mov dword [rsp + 0x20], ebx
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [rbp - 0x10], rax
test rax, rax
je 0x1800030fd
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], ebx
lea r8d, [r15 + 0x4f]
xor r9d, r9d
mov rdx, rsi
mov rcx, rax
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], rbx
call qword [sym.imp.WININET.dll_InternetConnectA]
mov qword [rbp + 0xa8], rax
test rax, rax
je 0x1800030f3
mov r8, qword [rbp + 0x60]
mov rdx, qword [rbp + 0x58]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], 0x84000000
xor r9d, r9d
mov rcx, rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov rsi, rax
test rax, rax
je 0x1800030e6
mov eax, dword [rbp + 0x80]
mov r9, qword [rbp + 0x78]
mov r8d, dword [rbp + 0x70]
mov rdx, qword [rbp + 0x68]
mov rcx, rsi
mov dword [rsp + 0x20], eax
call qword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x1800030dd
test r14, r14
je 0x180002f97
test rdi, rdi
je 0x180002f97
lea r9, [rbp + 0x50]
lea edx, [r15 + 0x15]
xor r8d, r8d
mov rcx, rsi
mov dword [rbp + 0x50], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
mov eax, dword [rbp + 0x50]
test eax, eax
je 0x180002f8f
mov rcx, qword [0x18000a270]
lea r8d, [rax + 1]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea r9, [rbp + 0x50]
lea edx, [r15 + 0x15]
mov rcx, rsi
mov r8, rax
mov qword [rsp + 0x20], rbx
mov qword [rbp + 0x90], rax
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
mov eax, dword [rbp + 0x50]
mov rcx, qword [rbp + 0x90]
mov byte [rax + rcx], bl
mov eax, dword [rbp + 0x50]
jmp 0x180002f92
mov rcx, rbx
mov qword [r14], rcx
mov dword [rdi], eax
lea r9, [rbp + 0x40]
lea r8, [rbp + 0x88]
mov edx, 0x20000013
mov rcx, rsi
mov dword [rbp + 0x40], 4
mov qword [rsp + 0x20], rbx
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x1800030dd
cmp dword [rbp + 0x88], 0xc8
jne 0x1800030dd
mov rcx, qword [0x18000a270]
xor edx, edx
mov r8d, 0x2000
mov r14d, ebx
mov rdi, rbx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbp + 0x98], rax
mov rdx, rax
jmp 0x18000307e
mov eax, dword [rbp + 0x50]
test eax, eax
je 0x18000309e
mov rcx, qword [0x18000a270]
add eax, r14d
xor edx, edx
mov r8d, eax
mov dword [rbp + 0x90], eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r8d, r14d
mov rdx, rdi
mov rcx, rax
mov qword [rbp + 0xa0], rax
call fcn.180004280
mov r8d, dword [rbp + 0x50]
mov rdx, qword [rbp + 0x98]
mov ecx, r14d
mov r14, qword [rbp + 0xa0]
add rcx, r14
call fcn.180004280
test rdi, rdi
je 0x18000306d
mov rcx, qword [0x18000a270]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdx, qword [rbp + 0x98]
mov rdi, r14
mov r14d, dword [rbp + 0x90]
lea r9, [rbp + 0x50]
mov r8d, 0x2000
mov rcx, rsi
mov dword [rbp + 0x50], ebx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x180002ffe
jmp 0x1800030a1
mov r15d, ebx
mov r8, qword [rbp + 0x98]
mov rcx, qword [0x18000a270]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r15d, r15d
jne 0x1800030c6
mov dword [r13], r14d
mov qword [r12], rdi
jmp 0x1800030dd
test rdi, rdi
je 0x1800030dd
mov rcx, qword [0x18000a270]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
test r15d, r15d
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret