Function at 0x140004a80
Capabilities:
Read http header

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0xf8
mov rax, qword [0x1401ca1c8]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r14, r8
mov rsi, rdx
mov rbx, rcx
mov qword [rbp - 0x79], rdx
mov dword [rbp - 0x79], r9d
xor r15d, r15d
xorps xmm0, xmm0
movups xmmword [rbp - 0x69], xmm0
mov qword [rbp - 0x59], r15
mov qword [rbp - 0x51], 7
mov word [rbp - 0x69], r15w
mov dword [rsp + 0x34], r15d
movups xmm0, xmmword [r8]
movaps xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x49]
call fcn.14003ddc0
cmp qword [rax + 0x18], 8
jb 0x140004af5
mov rax, qword [rax]
lea rcx, [rbp - 0x79]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x34]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov r8, rax
mov edx, 0xffff
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov rdx, qword [rbp - 0x31]
cmp rdx, 8
jb 0x140004b5d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004b58
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004d2d
call fcn.1400fb310
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140004d33
mov ecx, dword [rsp + 0x34]
shr rcx, 1
mov r8, qword [rbp - 0x59]
cmp rcx, r8
ja 0x140004b95
lea rax, [rbp - 0x69]
cmp qword [rbp - 0x51], 8
cmovae rax, qword [rbp - 0x69]
mov qword [rbp - 0x59], rcx
mov word [rax + rcx*2], r15w
jmp 0x140004bf1
mov rdx, rcx
sub rdx, r8
mov rdi, qword [rbp - 0x51]
mov rax, rdi
sub rax, r8
cmp rdx, rax
ja 0x140004bd9
mov qword [rbp - 0x59], rcx
lea r9, [rbp - 0x69]
cmp rdi, 8
cmovae r9, qword [rbp - 0x69]
lea rdi, [r9 + r8*2]
test rdx, rdx
je 0x140004bce
movzx eax, r15w
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [r8 + rdx]
mov word [r9 + rax*2], r15w
jmp 0x140004bf1
mov word [rsp + 0x20], r15w
mov r9, rdx
movzx r8d, byte [rsp + 0x30]
lea rcx, [rbp - 0x69]
call fcn.140001800
lea rdi, [rbp - 0x69]
cmp qword [rbp - 0x51], 8
cmovae rdi, qword [rbp - 0x69]
movups xmm0, xmmword [r14]
movaps xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x49]
call fcn.14003ddc0
cmp qword [rax + 0x18], 8
jb 0x140004c20
mov rax, qword [rax]
lea rcx, [rbp - 0x79]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x34]
mov qword [rsp + 0x20], rcx
mov r9, rdi
mov r8, rax
mov edx, 0xffff
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
sete dil
mov rdx, qword [rbp - 0x31]
cmp rdx, 8
jb 0x140004c8e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004c89
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004d70
call fcn.1400fb310
test dil, dil
jne 0x140004d76
lea rax, [rbp - 0x69]
cmp qword [rbp - 0x51], 8
cmovae rax, qword [rbp - 0x69]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp - 0x59]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14003d980
nop
mov rdx, qword [rbp - 0x51]
cmp rdx, 8
jb 0x140004d08
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004d03
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004d27
call fcn.1400fb310
mov rax, rsi
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1400fb3b0
add rsp, 0xf8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1401025e4
nop
call fcn.1401025e4
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rdx, str.Failed_to_query_header_size
lea rcx, [rbp - 0x49]
call fcn.140003b60
nop
lea r9, [rbp - 0x49]
mov r8d, edi
mov rdx, rbx
lea rcx, [rbp - 0x29]
call fcn.140003fb0
lea rdx, [0x1401c3208]
lea rcx, [rbp - 0x29]
call fcn.1400fc9b0
nop
call fcn.1401025e4
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rdx, str.Failed_to_query_header
lea rcx, [rbp - 0x49]
call fcn.140003b60
nop
lea r9, [rbp - 0x49]
mov r8d, edi
mov rdx, rbx
lea rcx, [rbp - 0x29]
call fcn.140003fb0
lea rdx, [0x1401c3208]
lea rcx, [rbp - 0x29]
call fcn.1400fc9b0
int3