Function at 0x140007320
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
and qword [rbp - 8], 0
lea r8, [rbp - 8]
mov rdi, rcx
call fcn.1400052b0
mov ebx, eax
test eax, eax
js 0x1400075b6
and qword [rsp + 0x30], 0
xor r9d, r9d
and dword [rsp + 0x28], 0
or r8d, 0xffffffff
mov rdx, qword [rbp - 8]
mov rcx, qword [rdi + 0x10]
and dword [rsp + 0x20], 0
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
nop dword [rax + rax]
test eax, eax
jne 0x14000739d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400075b6
mov rcx, qword [rdi + 0x10]
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
nop dword [rax + rax]
test eax, eax
je 0x14000737e
and qword [rsp + 0x28], 0
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 0x14000737e
mov eax, dword [rbp + 0x30]
cmp eax, 0xc8
jne 0x140007568
and qword [rsp + 0x28], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rdi + 0x10]
xor r9d, r9d
and dword [rbp + 0x28], 0
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 0x14000743f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x7a
jne 0x14000737e
mov ebx, dword [rbp + 0x28]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
nop dword [rax + rax]
mov qword [rdi + 0x20], rax
test rax, rax
jne 0x140007478
mov ebx, 0x8007000e
jmp 0x1400075b6
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 0x14000737e
mov rcx, qword [rdi + 0x10]
lea rdx, [rbp + 0x28]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
nop dword [rax + rax]
test eax, eax
je 0x14000737e
mov ebx, dword [rbp + 0x28]
inc ebx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x14000746e
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 0x140007532
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140007546
mov eax, dword [rbp + 0x28]
mov rdx, rsi
mov rcx, rdi
mov byte [rax + rsi], 0
call fcn.14000711c
mov ebx, eax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
jmp 0x1400075b6
cmp eax, 0x130
jne 0x140007576
mov ebx, 1
jmp 0x1400075b6
cmp eax, 0x197
jne 0x1400075b1
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 0x1400075b1
cmp dword [rbp - 0x10], ebx
mov ebx, 0x80070005
je 0x1400075b6
mov ebx, 0x80004005
cmp qword [rbp - 8], 0
je 0x1400075de
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, qword [rbp - 8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret