Function at 0x40371e
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, 0x858
lea rax, [rsp + 0x88]
mov r13, r8
mov rbp, r9
mov qword [rsp + 0x8a0], rcx
mov rcx, rax
mov qword [rsp + 0x8a8], rdx
mov edx, 0x30
lea rdi, [rsp + 0xa8]
mov qword [rsp + 0x48], rax
lea rsi, [rsp + 0x75f]
call fcn.004035e8
or r8, 0xffffffffffffffff
mov rcx, r13
and rsi, 0xffffffffffffffe0
lea rdx, [0x004ba5a5]
call fcn.0042ebf0
or r9, 0xffffffffffffffff
mov rdx, r13
mov rcx, rdi
lea r8, [rax + 1]
mov qword [rsp + 0x60], rdi
call fcn.0042f410
movabs rbx, 0xe22ba33ff6c88180
mov r8, qword [rsp + 0x48]
mov rdx, rsi
mov rax, rbx
mov qword [rsi], rax
movabs rax, 0x36a57e2dcd023cec
mov qword [rsi + 8], rax
movabs rax, 0x26c2c529b7fa0d29
mov qword [rsi + 0x10], rax
movabs rax, 0xaa4c20e8f61c3d3c
mov qword [rsi + 0x18], rax
movabs rax, 0xd669100991ed4816
mov qword [rsi + 0x20], rax
movabs rax, 0x30da7293dd08a67d
mov qword [rsi + 0x28], rax
movabs rax, 0xcf5fcd5a82a6eec3
mov qword [rsi + 0x60], rax
movabs rax, 0x43c85e17a87245b8
mov qword [rsi + 0x68], rax
movabs rax, 0x9b6b748c7937945
mov qword [rsi + 0x70], rax
movabs rax, 0xde2d44c59b6e525a
mov qword [rsi + 0x78], rax
vmovdqu ymm1, ymmword [rsi + 0x60]
movabs rax, 0xb2076566f3cd7377
vpxor ymm0, ymm1, ymmword [rsi]
vmovdqu ymmword [rsi], ymm0
mov qword [rsi + 0x80], rax
movabs rax, 0x30da7293e071d41c
mov qword [rsi + 0x88], rax
vmovdqu xmm2, xmmword [rsi + 0x80]
lea rax, [rsp + 0xc8]
vpxor xmm0, xmm2, xmmword [rsi + 0x20]
mov rcx, rax
mov qword [rsp + 0x68], rax
vmovups xmmword [rsi + 0x20], xmm0
call fcn.004b2990
movabs rax, 0x33a97e2dcd023cec
mov qword [rsi], rbx
movabs rdx, 0x561449b200d93deb
lea r15, [rsp + 0x108]
mov qword [rsi + 8], rax
mov rcx, r15
movabs rax, 0x66dfc329a4fa1535
mov qword [rsi + 0x10], rax
movabs rax, 0xf35921b1f8017d34
mov qword [rsi + 0x18], rax
vmovdqu ymm3, ymmword [rsi]
movabs rax, 0xb80a080796bf0704
mov qword [rsi + 0x20], rax
movabs rax, 0x1dae1cf6941fbb5f
mov qword [rsi + 0x28], rax
movabs rax, 0x8a300ef7dad8dbdd
mov qword [rsi + 0x30], rax
movabs rax, 0x5927d10e1b17aec3
mov qword [rsi + 0x38], rax
vmovdqu ymm4, ymmword [rsi + 0x20]
movabs rax, 0x247527db62f9078c
mov qword [rsi + 0x40], rax
movabs rax, 0xf6d760656aa59479
mov qword [rsi + 0x48], rax
vmovdqu xmm5, xmmword [rsi + 0x40]
movabs rax, 0xcf5fcd5a82a6eec3
mov qword [rsi + 0x60], rax
movabs rax, 0x43c85e17a87245b8
mov qword [rsi + 0x68], rax
movabs rax, 0x9b6b748c7937945
mov qword [rsi + 0x70], rax
movabs rax, 0xde2d44c59b6e525a
mov qword [rsi + 0x78], rax
vpxor ymm0, ymm3, ymmword [rsi + 0x60]
movabs rax, 0xb2076566f3cd7377
vmovdqu ymmword [rsi], ymm0
mov qword [rsi + 0x80], rax
movabs rax, 0x30da7293e071d41c
mov qword [rsi + 0x88], rax
movabs rax, 0xf8556884b4b9a989
mov qword [rsi + 0x90], rax
movabs rax, 0x374eb5617879ebee
mov qword [rsi + 0x98], rax
vpxor ymm0, ymm4, ymmword [rsi + 0x80]
vmovdqu ymmword [rsi + 0x20], ymm0
mov qword [rsi + 0xa0], rdx
movabs rdx, 0xf6d7606f67af9900
mov qword [rsi + 0xa8], rdx
vpxor xmm0, xmm5, xmmword [rsi + 0xa0]
movabs rdx, 0x37a12d78d8012cfc
mov qword [rsi + 0xc0], rbx
vmovups xmmword [rsi + 0x40], xmm0
mov qword [rsi + 0xc8], rdx
movabs rdx, 0x7bd9d168fdfd162c
mov qword [rsi + 0xd0], rdx
movabs rdx, 0xfe1625b1fa0a7f37
mov qword [rsi + 0xd8], rdx
vmovdqu ymm1, ymmword [rsi + 0xc0]
movabs rdx, 0xdb61475b96a01219
vpxor ymm0, ymm1, ymmword [rsi + 0x60]
mov qword [rsi + 0xf8], rax
vmovdqu ymmword [rsi + 0xc0], ymm0
mov r8, qword [rsp + 0x48]
mov qword [rsi + 0xe0], rdx
movabs rdx, 0x5cb314b3db53b170
mov qword [rsi + 0xe8], rdx
movabs rdx, 0xf87755e1d9d8c7ec
mov qword [rsi + 0xf0], rdx
vmovdqu ymm2, ymmword [rsi + 0xe0]
lea rdx, [0x004ba5a8]
vpxor ymm0, ymm2, ymmword [rsi + 0x80]
vmovdqu ymmword [rsi + 0xe0], ymm0
call fcn.004b2990
lea rax, [rsp + 0x128]
lea r8, [0x004ba5ab]
mov rdx, r15
mov rcx, rax
mov qword [rsp + 0x40], rax
call fcn.004b28b0
lea rbx, [rsp + 0x148]
mov rdx, qword [rsp + 0x40]
lea r8, [rsi + 0xc0]
mov rcx, rbx
call fcn.004b28b0
mov rdx, qword [rsp + 0x60]
mov rcx, rbx
call fcn.004a24f0
lea r14, [rsp + 0x168]
mov rdx, rax
lea r12, [rsp + 0x340]
mov rcx, r14
call fcn.004a3920
lea r8, [0x004ba5ae]
mov rdx, r14
mov rcx, r12
call fcn.004b28b0
lea rcx, [rsp + 0xe8]
mov r8, rsi
mov rdx, r12
call fcn.004b28b0
mov rcx, r12
call fcn.004a18b0
mov rcx, r14
call fcn.004a18b0
mov rcx, rbx
call fcn.004a18b0
mov rcx, qword [rsp + 0x40]
call fcn.004a18b0
mov rcx, r15
call fcn.004a18b0
mov r8, qword [rsp + 0x48]
lea rdx, str._r_n__
mov rcx, r12
call fcn.004b2990
lea r8, str.___r_n
mov rdx, r12
mov rcx, r15
call fcn.004b28b0
mov rcx, r12
call fcn.004a18b0
mov r8d, 6
mov rdx, r13
mov rcx, r14
call fcn.00491070
lea rcx, [rsp + 0x1c0]
call fcn.00427ad0
test al, al
je 0x403fbb
lea rcx, [rsp + 0x70]
mov rdx, r14
call fcn.004743c0
xor r8d, r8d
xor edx, edx
mov rcx, r14
mov rsi, qword [rsp + 0x70]
call fcn.004742a0
test rsi, rsi
jns 0x403bcf
lea rcx, str.cannot_create_std::vector_larger_than_max_size__
call fcn.004b6c00
je 0x403be8
mov rcx, rsi
call fcn.004b4fc0
mov r13, rax
mov rcx, rsi
xor eax, eax
mov rdi, r13
rep stosb byte [rdi], al
jmp 0x403beb
xor r13d, r13d
mov r8, rsi
mov rdx, r13
mov rcx, r14
call fcn.00473ec0
mov rdx, qword [rax]
mov rcx, r14
mov rdx, qword [rdx - 0x18]
test byte [rax + rdx + 0x20], 5
je 0x403c1a
call fcn.00490c30
mov r12d, 0xe2
jmp 0x403fa5
call fcn.00490c30
lea rax, [rsp + 0x158]
mov qword [rsp + 0x340], rsi
mov qword [rsp + 0x148], rax
cmp rsi, 0xf
jbe 0x403c63
xor r8d, r8d
mov rdx, r12
mov rcx, rbx
call fcn.004a36b0
mov qword [rsp + 0x148], rax
mov rax, qword [rsp + 0x340]
mov qword [rsp + 0x158], rax
mov rdx, qword [rsp + 0x148]
xor eax, eax
cmp rsi, rax
je 0x403c7f
mov cl, byte [r13 + rax]
mov byte [rdx + rax], cl
inc rax
jmp 0x403c6d
mov rax, qword [rsp + 0x340]
mov rdx, qword [rsp + 0x148]
lea r8, [rsp + 0xe8]
mov rcx, rbx
mov qword [rsp + 0x150], rax
mov byte [rdx + rax], 0
xor edx, edx
call fcn.004a29d0
mov rdx, rax
mov rcx, r12
call fcn.004a3920
mov rdx, r15
mov rcx, r12
call fcn.004a24f0
mov rcx, qword [rsp + 0x40]
mov rdx, rax
lea r14, [rsp + 0x340]
call fcn.004a3920
mov rcx, r14
call fcn.004a18b0
mov rcx, rbx
call fcn.004a18b0
xor r9d, r9d
xor r8d, r8d
mov rcx, r14
movabs rax, 0xfe71fc75d2f2ba8b
mov dword [rsp + 0x20], 0
movabs rdx, 0xcf5fcd5a82a6eec3
mov qword [rsp + 0x340], rax
movabs rax, 0x43c85e17a87245b8
mov qword [rsp + 0x50], rdx
mov edx, 1
mov qword [rsp + 0x348], rax
mov qword [rsp + 0x58], rax
vmovdqu xmm3, xmmword [rsp + 0x50]
vpxor xmm0, xmm3, xmmword [rsp + 0x340]
vmovups xmmword [rsp + 0x340], xmm0
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r12, rax
test rax, rax
je 0x403f95
mov rax, qword [rsp + 0x8a0]
xor r9d, r9d
mov qword [rsp + 0x38], 0
mov r8d, 0x1bb
mov dword [rsp + 0x30], 0
mov rcx, r12
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], 0
mov rdx, qword [rax]
call qword [sym.imp.WININET.dll_InternetConnectA]
mov rbx, rax
test rax, rax
jne 0x403dbb
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov r12d, 0xe5
jmp 0x403f9b
movabs rax, 0xcf5fcd5ad6f5a193
xor r9d, r9d
mov rcx, rbx
movabs rdx, 0xcf5fcd5a82a6eec3
mov qword [rsp + 0x340], rax
movabs rax, 0x43c85e17a87245b8
mov qword [rsp + 0x50], rdx
mov rdx, r14
mov qword [rsp + 0x348], rax
mov qword [rsp + 0x58], rax
vmovdqu xmm4, xmmword [rsp + 0x50]
mov rax, qword [rsp + 0x8a8]
mov dword [rsp + 0x30], 0x800000
vpxor xmm0, xmm4, xmmword [rsp + 0x340]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r8, qword [rax]
vmovups xmmword [rsp + 0x340], xmm0
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov r14, rax
test rax, rax
jne 0x403e6c
mov rcx, rbx
mov rbx, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rbx
mov rcx, r12
call rbx
mov r12d, 0xe4
jmp 0x403f9b
mov r9d, 4
lea r8, [rsp + 0x84]
mov edx, 6
mov rcx, rax
mov dword [rsp + 0x84], 0xea60
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov rax, qword [rsp + 0x130]
mov r9, qword [rsp + 0x128]
mov rcx, r14
mov r8d, dword [rsp + 0xd0]
mov rdx, qword [rsp + 0xc8]
mov dword [rsp + 0x20], eax
call qword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x403eff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, r14
mov esi, eax
mov r14, qword [sym.imp.WININET.dll_InternetCloseHandle]
call r14
mov rcx, rbx
call r14
mov rcx, r12
call r14
xor r12d, r12d
cmp esi, 0x2ee2
sete r12b
lea r12d, [r12*4 + 0xe3]
jmp 0x403f9b
mov rax, qword [rbp]
mov qword [rbp + 8], 0
lea rsi, [rsp + 0x340]
mov rdi, qword [sym.imp.WININET.dll_InternetReadFile]
mov byte [rax], 0
lea rax, [rsp + 0x148]
mov dword [rsp + 0x148], 0
mov qword [rsp + 0x50], rax
mov r9, qword [rsp + 0x50]
mov r8d, 0x3ff
mov rdx, rsi
mov rcx, r14
call rdi
test eax, eax
je 0x403f77
mov eax, dword [rsp + 0x148]
test eax, eax
je 0x403f77
mov rdx, rsi
mov rcx, rbp
mov byte [rsp + rax + 0x340], 0
call fcn.004a40d0
mov dword [rsp + 0x148], 0
jmp 0x403f35
mov rsi, qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r14
call rsi
mov rcx, rbx
call rsi
mov rcx, r12
call rsi
mov r12d, 0xe8
jmp 0x403f9b
mov r12d, 0xe6
mov rcx, qword [rsp + 0x40]
call fcn.004a18b0
test r13, r13
je 0x4040b4
mov rcx, r13
call fcn.004b4f70
jmp 0x4040b4
mov r12d, 0xe1
jmp 0x4040b4
lea rcx, [rsp + 0x168]
call fcn.00491830
mov rcx, r15
call fcn.004a18b0
lea rcx, [rsp + 0xe8]
call fcn.004a18b0
mov rcx, qword [rsp + 0x68]
call fcn.004a18b0
mov rcx, qword [rsp + 0x60]
call fcn.004a18b0
mov rcx, qword [rsp + 0x48]
call fcn.004a18b0
mov eax, r12d
add rsp, 0x858
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret