Function at 0x18000be50
Capabilities:
Check http status code
Read http header
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, 0x70
mov rax, qword [0x180045068]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r13, r8
mov rbx, rdx
mov rsi, rcx
xor r12d, r12d
mov dword [rsp + 0x40], r12d
mov r14d, r12d
lea r15, [rcx + 0x44]
mov dword [r15], 8
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
xor edx, edx
lea r8d, [r12 + 8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
mov r8d, dword [r15]
xor edx, edx
mov rcx, rax
call fcn.1800130a0
mov dword [rsi + 0x48], 0x1000
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
xor edx, edx
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
mov r8d, dword [rsi + 0x48]
xor edx, edx
mov rcx, rax
call fcn.1800130a0
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x60], 0xf
mov qword [rsp + 0x58], 3
movzx ecx, word [0x180030c10]
mov word [rsp + 0x48], cx
movzx ecx, byte [0x180030c12]
mov byte [rsp + 0x4a], cl
mov byte [rsp + 0x4b], r12b
mov r8, rbx
lea rdx, [rsp + 0x48]
mov rcx, rsi
call fcn.18000b980
test al, al
sete bl
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x18000bf6c
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000bf67
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000c155
call fcn.180010918
test bl, bl
jne 0x18000bfcc
mov qword [rsp + 0x30], r12
mov eax, dword [r13 + 0x10]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsi + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x18000bfcc
xor edx, edx
mov rcx, qword [rsi + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r15
mov r9, rbp
xor r8d, r8d
lea edx, [r8 + 0x13]
mov rcx, qword [rsi + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x18000bffb
call qword [sym.imp.KERNEL32.dll_GetLastError]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
jmp 0x18000c12a
mov rcx, rbp
call fcn.180017ac4
cmp eax, 0xc8
jne 0x18000bfcc
lea r9, [rsp + 0x40]
mov r8d, dword [rsi + 0x48]
mov rdx, rdi
mov rcx, qword [rsi + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x18000bfcc
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x18000c097
nop dword [rax]
add r14d, eax
mov eax, dword [rsi + 0x48]
add eax, eax
mov dword [rsi + 0x48], eax
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r9d, ebx
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdi, rax
mov r8d, dword [rsi + 0x48]
shr r8, 1
lea rcx, [r8 + rax]
xor edx, edx
call fcn.1800130a0
mov edx, dword [rsi + 0x48]
mov r8d, edx
shr r8d, 1
shr rdx, 1
add rdx, rdi
lea r9, [rsp + 0x40]
mov rcx, qword [rsi + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x18000bfcc
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x18000c030
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], 0xf
mov r8d, r14d
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.1800094c0
lea rdx, [rsp + 0x48]
mov rcx, r13
call fcn.180003e40
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x18000c100
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000c0fb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000c14f
call fcn.180010918
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1800110b0
mov rbx, qword [rsp + 0xc8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.180016e8c
int3
call fcn.180016e8c
int3