Function at 0x14008bf38
Capabilities:
Check http status code
Read http header
Receive http response

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x50
xor esi, esi
lea r8, [rbp - 8]
and qword [rbp - 8], rsi
mov rdi, rcx
call fcn.14008be20
mov ebx, eax
test eax, eax
js 0x14008c1d7
and qword [rsp + 0x30], rsi
xor r9d, r9d
and dword [rsp + 0x28], esi
or r8d, 0xffffffff
mov rdx, qword [rbp - 8]
mov rcx, qword [rdi + 0x10]
and dword [rsp + 0x20], esi
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
nop dword [rax + rax]
test eax, eax
jne 0x14008bfb3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14008c1d7
mov rcx, qword [rdi + 0x10]
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
nop dword [rax + rax]
test eax, eax
je 0x14008bf94
and qword [rsp + 0x28], rsi
lea rax, [rbp + 0x28]
mov rcx, qword [rdi + 0x10]
lea r9, [rbp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x20000013
mov dword [rbp + 0x28], 4
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
nop dword [rax + rax]
test eax, eax
je 0x14008bf94
mov eax, dword [rbp + 0x30]
cmp eax, 0xc8
jne 0x14008c15b
and dword [rbp + 0x28], esi
lea rax, [rbp + 0x28]
and qword [rsp + 0x28], rsi
xor r9d, r9d
mov rcx, qword [rdi + 0x10]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea esi, [r9 + 0x36]
mov edx, esi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
nop dword [rax + rax]
test eax, eax
jne 0x14008c052
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x7a
jne 0x14008bf94
mov ebx, dword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov qword [rdi + 0x20], rax
test rax, rax
jne 0x14008c08b
mov ebx, 0x8007000e
jmp 0x14008c1d7
and qword [rsp + 0x28], 0
lea rcx, [rbp + 0x28]
mov qword [rsp + 0x20], rcx
mov r9, rax
mov rcx, qword [rdi + 0x10]
xor r8d, r8d
mov edx, esi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
nop dword [rax + rax]
test eax, eax
je 0x14008bf94
mov rcx, qword [rdi + 0x10]
lea rdx, [rbp + 0x28]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
nop dword [rax + rax]
test eax, eax
je 0x14008bf94
mov ebx, dword [rbp + 0x28]
inc ebx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x14008c081
mov r8d, dword [rbp + 0x28]
lea r9, [rbp + 0x28]
mov rcx, qword [rdi + 0x10]
mov rdx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
nop dword [rax + rax]
test eax, eax
jne 0x14008c145
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14008c1b2
mov eax, dword [rbp + 0x28]
mov rdx, rsi
mov rcx, rdi
mov byte [rax + rsi], 0
call fcn.14008c508
mov ebx, eax
jmp 0x14008c1b2
cmp eax, 0x130
jne 0x14008c169
mov ebx, 1
jmp 0x14008c1d7
cmp eax, 0x197
jne 0x14008c1ad
mov rcx, qword [rdi + 0x10]
lea r9, [rbp - 0x10]
lea r8, [rbp - 0xc]
lea rdx, [rbp + 0x38]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryAuthSchemes]
nop dword [rax + rax]
mov eax, dword [rbp + 0x38]
mov ebx, 1
and eax, ebx
test al, al
je 0x14008c1a6
cmp dword [rbp - 0x10], ebx
jne 0x14008c1a6
mov ebx, 0x80070005
jmp 0x14008c1d7
mov ebx, 0x80004005
jmp 0x14008c1d7
mov ebx, 0x80004005
test rsi, rsi
je 0x14008c1d7
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
cmp qword [rbp - 8], 0
je 0x14008c1ff
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, qword [rbp - 8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret