Function at 0x180001bc8
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
or dword [rbp + 0x58], 0xffffffff
xor r14d, r14d
mov qword [rdx], r14
mov r13, r8
mov qword [r8], r14
mov rdi, rcx
xor r8d, r8d
mov qword [rbp - 8], r14
xor r9d, r9d
mov dword [rsp + 0x20], r14d
xor edx, edx
xor ecx, ecx
mov ebx, r14d
mov esi, r14d
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r15, rax
test rax, rax
je 0x180001e65
mov rdx, qword [rdi + 0x30]
test rdx, rdx
je 0x180001c40
mov r8d, dword [rdi + 0x38]
test r8d, r8d
je 0x180001c40
xor r9d, r9d
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
movzx r8d, word [rdi + 0x18]
xor r9d, r9d
mov rdx, qword [rdi]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r12, rax
test rax, rax
je 0x180001e5c
mov ecx, dword [rdi + 0x1c]
lea rax, section..r
neg ecx
lea rdx, [0x1800070b0]
mov rcx, r12
sbb r8d, r8d
and r8d, 0x800000
cmp qword [rdi + 0x28], r14
mov dword [rsp + 0x30], r8d
cmovne rdx, rax
mov dword [rbp - 0x10], r8d
mov r8, qword [rdi + 8]
xor r9d, r9d
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r14, rax
test rax, rax
je 0x180001e53
cmp dword [rdi + 0x1c], ebx
je 0x180001cd7
mov r9d, 4
mov dword [rbp - 0x10], 0x3300
lea r8, [rbp - 0x10]
mov rcx, rax
lea edx, [r9 + 0x1b]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov ecx, dword [rdi + 0x28]
mov rdx, qword [rdi + 0x10]
mov r9, qword [rdi + 0x20]
mov rax, rdx
neg rax
sbb r8d, r8d
and qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], ecx
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
xor edi, edi
test eax, eax
je 0x180001e4a
xor edx, edx
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x180001e4a
lea rax, [rbp + 0x50]
mov qword [rsp + 0x28], rdi
lea r9, [rbp + 0x58]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x50], 4
mov edx, 0x20000013
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov qword [rsp + 0x28], rdi
lea r9, [rbp - 8]
neg eax
mov dword [rbp + 0x50], 8
lea rax, [rbp + 0x50]
mov edx, 0x20000005
sbb ecx, ecx
mov qword [rsp + 0x20], rax
and dword [rbp + 0x58], ecx
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
neg eax
sbb rcx, rcx
and qword [rbp - 8], rcx
lea rdx, [rbp + 0x50]
mov dword [rbp + 0x50], edi
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x180001e03
mov eax, dword [rbp + 0x50]
test eax, eax
je 0x180001e03
inc eax
add eax, esi
je 0x180001e00
lea rdi, [rax + 1]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
test rbx, rbx
je 0x180001dc8
mov r9, rdi
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
jmp 0x180001dd1
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor edi, edi
mov rbx, rax
test rax, rax
je 0x180001e03
mov r8d, dword [rbp + 0x50]
lea r9, [rbp + 0x50]
mov edx, esi
mov rcx, r14
add rdx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x180001e03
mov eax, dword [rbp + 0x50]
test eax, eax
je 0x180001e03
add esi, eax
jmp 0x180001d82
mov rbx, rdi
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x180001e32
mov eax, esi
cmp rcx, rax
je 0x180001e32
test rbx, rbx
je 0x180001e2c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
or dword [rbp + 0x58], 0xffffffff
jmp 0x180001e4a
test rbx, rbx
je 0x180001e3d
mov eax, esi
mov byte [rax + rbx], dil
mov rax, qword [rbp + 0x48]
mov qword [rax], rbx
mov eax, esi
mov qword [r13], rax
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]
mov eax, dword [rbp + 0x58]
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret