Function at 0x14010f570
Capabilities:
Read http header
Receive http response

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140148058]
xor rax, rsp
mov qword [rsp + 0x58], rax
and dword [rsp + 0x30], 0
mov ebp, edx
mov rdi, rcx
call fcn.14010cf84
mov rcx, qword [rdi + 0x10]
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov rcx, rdi
mov ebx, eax
call fcn.14010ef8c
test ebx, ebx
jne 0x14010f604
call sub.KERNEL32.dll_GetLastError
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
mov rcx, qword [0x140148ea8]
lea rsi, [0x140148ea8]
cmp rcx, rsi
je 0x14010f7d6
test byte [rcx + 0x1c], 1
je 0x14010f7d6
mov edx, 0x46
mov r9d, ebx
jmp 0x14010f63b
mov rcx, rdi
call fcn.140111f50
mov ebx, eax
test eax, eax
jns 0x14010f650
mov rcx, qword [0x140148ea8]
lea rsi, [0x140148ea8]
cmp rcx, rsi
je 0x14010f7d6
test byte [rcx + 0x1c], 1
je 0x14010f7d6
mov edx, 0x47
mov r9d, eax
mov rcx, qword [rcx + 0x10]
lea r8, [0x140001328]
call fcn.14000fd64
jmp 0x14010f7d6
mov rcx, rdi
mov dword [rsp + 0x30], 4
call fcn.14010cf84
mov rcx, qword [rdi + 0x10]
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x30]
lea r9, [rdi + 0x354]
xor r8d, r8d
mov edx, 0x20000013
mov qword [rsp + 0x20], rax
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
lea rsi, [0x140148ea8]
mov ebx, eax
test eax, eax
je 0x14010f777
test ebp, ebp
je 0x14010f777
mov rcx, qword [rdi + 0x10]
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x48]
xor r8d, r8d
mov edx, 0x4000000b
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x38], reloc.OLEAUT32.dll_SafeArrayGetDim
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov ebx, eax
test eax, eax
jne 0x14010f712
mov rax, qword [0x140148ea8]
cmp rax, rsi
je 0x14010f70b
test byte [rax + 0x1c], 1
je 0x14010f70b
call sub.KERNEL32.dll_GetLastError
mov rcx, qword [0x140148ea8]
lea edx, [rbx + 0x48]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140001328]
mov r9d, eax
call fcn.14000fd64
mov ebx, 1
jmp 0x14010f777
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call sub.KERNEL32.dll_SystemTimeToFileTime
test eax, eax
jne 0x14010f75b
mov rax, qword [0x140148ea8]
cmp rax, rsi
je 0x14010f75b
test byte [rax + 0x1c], 1
je 0x14010f75b
call sub.KERNEL32.dll_GetLastError
mov rcx, qword [0x140148ea8]
lea r8, [0x140001328]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0x49
call fcn.14000fd64
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x38]
mov qword [rdi + 0x368], rax
mov rcx, rdi
call fcn.14010ef8c
test ebx, ebx
jne 0x14010f7d4
call sub.KERNEL32.dll_GetLastError
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
mov rcx, qword [0x140148ea8]
cmp rcx, rsi
je 0x14010f7d6
test byte [rcx + 0x1c], 1
je 0x14010f7d6
mov eax, dword [rsp + 0x30]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140001328]
mov edx, 0x4a
mov r9d, ebx
mov dword [rsp + 0x20], eax
call fcn.140011e38
jmp 0x14010f7d6
xor ebx, ebx
mov eax, ebx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140001000
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret