Function at 0x14003f020
Capabilities:
Read http header

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xa98]
sub rsp, 0xb98
mov rax, qword [0x14016f8a0]
xor rax, rsp
mov qword [rbp + 0xa80], rax
mov r13, r9
mov r12, r8
mov r14, rdx
mov r15, rcx
mov rax, qword [rbp + 0xb00]
mov qword [rsp + 0x50], rax
xor esi, esi
mov dword [rsp + 0x30], 0x200
movzx eax, si
lea rdi, [rbp + 0x80]
mov ecx, 0x100
rep stosw word [rdi], ax
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x80]
xor r8d, r8d
lea edx, [rsi + 0x13]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
lea rcx, [rbp + 0x80]
call fcn.1400cdf30
mov edi, eax
mov rcx, qword [r12]
mov rax, qword [rcx]
mov edx, edi
call qword [rax + 0x38]
call fcn.1400170f0
mov rbx, rax
test rax, rax
je 0x14003f12c
mov rax, qword [rax]
mov rcx, rbx
call qword [rax + htons]
cmp eax, 5
jl 0x14003f12c
lea edx, [rsi + 1]
lea rcx, [rsp + 0x70]
call fcn.140002860
nop
lea rdx, str.Received_response_code
lea rcx, [rsp + 0x70]
call fcn.1400019a0
mov rcx, rax
mov edx, edi
call fcn.1400037a0
mov rdi, qword [rbx]
mov rax, qword [r15]
mov rcx, r15
call qword [rax + 0x18]
mov r8, rax
lea r9, [rsp + 0x70]
lea edx, [rsi + 5]
mov rcx, rbx
call qword [rdi + 0x18]
nop
lea rcx, [rsp + 0x70]
call fcn.140003bc0
mov dword [rsp + 0x30], 0x800
movzx eax, si
lea rdi, [rbp + 0x280]
mov ecx, 0x400
rep stosw word [rdi], ax
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x280]
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
cmp word [rbp + 0x280], 0
je 0x14003f255
lea rdx, [rbp + 0x280]
lea rcx, [rbp + 0x60]
call fcn.140030af0
nop
mov rcx, qword [r12]
mov rax, qword [rcx]
lea rdx, [rbp + 0x60]
call qword [rax + 0x68]
call fcn.1400170f0
mov rbx, rax
test rax, rax
je 0x14003f21a
mov rax, qword [rax]
mov rcx, rbx
call qword [rax + htons]
cmp eax, 5
jl 0x14003f21a
mov edx, 1
lea rcx, [rsp + 0x70]
call fcn.140002860
nop
lea rdx, str.Received_content_type
lea rcx, [rsp + 0x70]
call fcn.1400019a0
lea rdx, [rbp + 0x60]
cmp qword [rbp + 0x78], 0x10
cmovae rdx, qword [rbp + 0x60]
mov r8, qword [rbp + 0x70]
mov rcx, rax
call fcn.140001d10
mov rdi, qword [rbx]
mov rax, qword [r15]
mov rcx, r15
call qword [rax + 0x18]
mov r8, rax
lea r9, [rsp + 0x70]
mov edx, 5
mov rcx, rbx
call qword [rdi + 0x18]
nop
lea rcx, [rsp + 0x70]
call fcn.140003bc0
nop
mov rdx, qword [rbp + 0x78]
cmp rdx, 0x10
jb 0x14003f255
inc rdx
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003f250
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003f4b3
call fcn.1400b91c0
call fcn.1400170f0
mov rbx, rax
test rax, rax
je 0x14003f2bb
mov rax, qword [rax]
mov rcx, rbx
call qword [rax + htons]
cmp eax, 5
jl 0x14003f2bb
mov edx, 1
lea rcx, [rsp + 0x70]
call fcn.140002860
nop
lea rdx, str.Received_headers:
lea rcx, [rsp + 0x70]
call fcn.1400019a0
mov rdi, qword [rbx]
mov rax, qword [r15]
mov rcx, r15
call qword [rax + 0x18]
mov r8, rax
lea r9, [rsp + 0x70]
mov edx, 5
mov rcx, rbx
call qword [rdi + 0x18]
nop
lea rcx, [rsp + 0x70]
call fcn.140003bc0
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x16]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14003f484
mov edx, dword [rsp + 0x30]
shr rdx, 1
lea rax, vtable.Aws::Utils::Array_wchar_t_.0
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rdx
je 0x14003f34c
mov r8, qword [str.Aws::Array]
lea rcx, [rsp + 0x40]
call fcn.14003e090
mov rdi, qword [rax]
mov qword [rax], rsi
lea rax, [rsp + 0x38]
mov qword [rax], rsi
mov qword [rsp + 0x68], rdi
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14003f33a
call fcn.140015ad0
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14003f34a
call fcn.140015ad0
nop
jmp 0x14003f36c
lea rax, [rsp + 0x48]
mov rdi, rsi
mov qword [rax], rsi
mov qword [rsp + 0x68], rsi
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14003f36c
call fcn.140015ad0
nop
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9, rdi
xor r8d, r8d
lea edx, [r8 + 0x16]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov esi, eax
test eax, eax
je 0x14003f476
mov rdx, rdi
lea rcx, [rbp + 0x60]
call fcn.140030af0
nop
call fcn.1400170f0
mov r14, rax
test rax, rax
je 0x14003f417
mov r8, qword [rax]
mov rcx, rax
call qword [rhtons + 8]
cmp eax, 5
jl 0x14003f417
mov edx, 1
lea rcx, [rsp + 0x70]
call fcn.140002860
nop
lea rdx, [rbp + 0x60]
cmp qword [rbp + 0x78], 0x10
cmovae rdx, qword [rbp + 0x60]
mov r8, qword [rbp + 0x70]
lea rcx, [rsp + 0x70]
call fcn.140001d10
mov rbx, qword [r14]
mov rax, qword [r15]
mov rcx, r15
call qword [rax + 0x18]
mov r8, rax
lea r9, [rsp + 0x70]
mov edx, 5
mov rcx, r14
call qword [rbx + 0x18]
nop
lea rcx, [rsp + 0x70]
call fcn.140003bc0
lea rdx, [rbp + 0x60]
cmp qword [rbp + 0x78], 0x10
cmovae rdx, qword [rbp + 0x60]
lea rcx, [r13 + 0x10]
mov r8, qword [rbp + 0x70]
call fcn.140001d10
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
mov qword [rcx], rax
mov rdx, qword [rbp + 0x78]
cmp rdx, 0x10
jb 0x14003f476
inc rdx
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003f470
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003f4ad
call fcn.1400b91c0
nop
test rdi, rdi
je 0x14003f484
mov rcx, rdi
call fcn.140015ad0
nop
cmp esi, 1
sete al
mov rcx, qword [rbp + 0xa80]
xor rcx, rsp
call fcn.1400b91a0
add rsp, 0xb98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1400bfe60
nop
call fcn.1400bfe60
int3