Function at 0x40410b
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x4d8
movabs rax, 0xfe71fc75d2f2ba8b
movabs r15, 0x43c85e17a87245b8
movabs rdi, 0xcf5fcd5a82a6eec3
mov qword [rsp + 0x48], r15
mov r14, rcx
mov r13, rdx
mov rsi, r8
mov qword [rsp + 0x80], rax
xor r8d, r8d
lea rbp, [rsp + 0x80]
lea rbx, [rsp + 0x49f]
mov qword [rsp + 0x88], r15
mov edx, 1
mov rcx, rbp
and rbx, 0xffffffffffffffe0
mov qword [rsp + 0x40], rdi
vmovdqu xmm1, xmmword [rsp + 0x40]
vpxor xmm0, xmm1, xmmword [rsp + 0x80]
mov dword [rsp + 0x538], r9d
xor r9d, r9d
mov dword [rsp + 0x20], 0
vmovups xmmword [rsp + 0x80], xmm0
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r12, rax
test rax, rax
je 0x404423
mov qword [rsp + 0x38], 0
xor r9d, r9d
mov rcx, rax
mov r8d, 0x1bb
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], 0
mov rdx, qword [r14]
call qword [sym.imp.WININET.dll_InternetConnectA]
mov r14, rax
test rax, rax
jne 0x40420e
mov rcx, r12
mov r12d, 0xe5
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x40443e
mov qword [rsp + 0x40], rdi
xor r9d, r9d
mov rdx, rbp
mov rcx, r14
movabs rax, 0xcf5fcd5a82f2ab84
mov qword [rsp + 0x48], r15
vmovdqu xmm2, xmmword [rsp + 0x40]
mov qword [rsp + 0x88], r15
mov qword [rsp + 0x80], rax
vpxor xmm0, xmm2, xmmword [rsp + 0x80]
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x80800000
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r8, qword [r13]
vmovups xmmword [rsp + 0x80], xmm0
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov r13, rax
test rax, rax
jne 0x4042a4
mov rbx, qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r14
call rbx
mov rcx, r12
mov r12d, 0xe4
call rbx
jmp 0x40443e
mov r9d, 4
lea r8, [rsp + 0x58]
mov edx, 6
mov rcx, r13
imul eax, dword [rsp + 0x538], 0x3e8
mov dword [rsp + 0x58], eax
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov qword [rbx + 8], r15
lea r15, [rsp + 0x60]
movabs rax, 0xe22ba33ff6c88180
mov qword [rbx], rdi
lea rdx, [rbx + 0x20]
mov rcx, r15
mov qword [rbx + 0x20], rax
movabs rax, 0x26bc7e2dcd023cec
mov qword [rbx + 0x28], rax
movabs rax, 0x4dada3cafbc0d3d
mov qword [rbx + 0x30], rax
movabs rax, 0xde2d44c59b6e5250
mov qword [rbx + 0x38], rax
vmovdqu ymm3, ymmword [rbx + 0x20]
movabs rax, 0x9b6b748c7937945
mov qword [rbx + 0x10], rax
movabs rax, 0xde2d44c59b6e525a
mov qword [rbx + 0x18], rax
vpxor ymm0, ymm3, ymmword [rbx]
vmovdqu ymmword [rbx + 0x20], ymm0
call fcn.00403210
mov rax, qword [rsp + 0x68]
xor r9d, r9d
mov rcx, r13
mov dword [rsp + 0x20], 0
mov rdx, qword [rsp + 0x60]
lea r8d, [rax - 1]
call qword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x4043a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rsi, qword [sym.imp.WININET.dll_InternetCloseHandle]
mov ebx, eax
mov rcx, r13
call rsi
mov rcx, r14
call rsi
mov rcx, r12
call rsi
xor r12d, r12d
cmp ebx, 0x2ee2
sete r12b
lea r12d, [r12*4 + 0xe3]
jmp 0x404419
mov rax, qword [rsi]
mov qword [rsi + 8], 0
lea rbx, [rsp + 0x5c]
mov rdi, qword [sym.imp.WININET.dll_InternetReadFile]
mov byte [rax], 0
mov dword [rsp + 0x5c], 0
mov r9, rbx
mov r8d, 0x3ff
mov rdx, rbp
mov rcx, r13
call rdi
test eax, eax
je 0x4043fd
mov eax, dword [rsp + 0x5c]
test eax, eax
je 0x4043fd
mov rdx, rbp
mov rcx, rsi
mov byte [rsp + rax + 0x80], 0
call fcn.004a40d0
mov dword [rsp + 0x5c], 0
jmp 0x4043c3
mov rbx, qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r13
call rbx
mov rcx, r14
call rbx
mov rcx, r12
call rbx
mov r12d, 0xe8
mov rcx, r15
call fcn.004a18b0
jmp 0x40443e
mov r12d, 0xe6
jmp 0x40443e
mov eax, r12d
add rsp, 0x4d8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret