Function at 0x18003a0a0
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x1803cf040]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rsi, r8
mov r14, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor r13d, r13d
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r13
mov ebx, 0xf
mov qword [rsp + 0x68], rbx
mov byte [rsp + 0x50], r13b
mov dword [rsp + 0x48], r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.WinHTTP_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r15, rax
test rax, rax
je 0x18003a1bb
cmp qword [rsi + 0x18], 7
jbe 0x18003a128
mov rsi, qword [rsi]
mov r8d, 0x50
xor r9d, r9d
mov rdx, rsi
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r12, rax
test rax, rax
je 0x18003a1b2
cmp qword [r14 + 0x18], 7
jbe 0x18003a14f
mov r14, qword [r14]
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
xor r9d, r9d
mov r8, r14
lea rdx, [0x1803bce08]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r14, rax
test rax, rax
je 0x18003a1a9
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov rcx, r14
test eax, eax
jne 0x18003a1cf
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea rdx, [0x1800c7cae]
mov rcx, rdi
call fcn.180037e10
jmp 0x18003a302
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x18003a210
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], rbx
mov byte [rdi], 0
jmp 0x18003a302
mov dword [rsp + 0x44], r13d
lea rdx, [rsp + 0x44]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x18003a2d6
mov ecx, dword [rsp + 0x44]
inc ecx
call fcn.180046074
mov rbp, rax
mov r8d, dword [rsp + 0x44]
inc r8d
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x18003a2c3
mov esi, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x60]
mov rax, rbx
sub rax, rcx
cmp rsi, rax
ja 0x18003a2a9
lea rax, [rcx + rsi]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x50]
cmp rbx, 0xf
cmova rax, qword [rsp + 0x50]
lea rbx, [rax + rcx]
mov r8d, esi
mov rdx, rbp
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rsi], 0
jmp 0x18003a2be
mov qword [rsp + 0x20], rsi
mov r9, rbp
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.180038b70
mov rbx, qword [rsp + 0x68]
mov rcx, rbp
call fcn.180045fc8
cmp dword [rsp + 0x44], 0
ja 0x18003a210
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rsp + 0x60]
movups xmmword [rdi + 0x10], xmm1
mov rax, rdi
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.180045890
mov rbx, qword [rsp + 0xd8]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret