Function at 0x1400a18ec
Capabilities:
Read http header

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x460
mov qword [r11 - 0x418], 0xfffffffffffffffe
mov rax, qword [0x1401d3050]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov r12, r9
mov r15, r8
mov r14, rdx
mov rbx, rcx
mov qword [rsp + 0x40], rdx
xor r13d, r13d
mov dword [rsp + 0x48], r13d
mov rax, qword [rcx + 0x28]
mov qword [r11 - 0x3e0], r13
lea rcx, [0x14012f480]
mov qword [r11 - 0x3e8], rcx
mov qword [r11 - 0x3d8], rax
mov qword [r11 - 0x3d0], r13
mov dword [r11 - 0x3c8], r13d
mov qword [r11 - 0x3c0], r13
mov dword [r11 - 0x3b8], r13d
mov qword [r11 - 0x3b0], r13
mov dword [r11 - 0x3a8], r13d
mov qword [r11 - 0x3a0], r13
mov dword [r11 - 0x398], r13d
mov qword [r11 - 0x390], r13
mov dword [r11 - 0x388], r13d
mov qword [r11 - 0x380], r13
mov dword [r11 - 0x378], r13d
mov qword [r11 - 0x370], r13
mov dword [r11 - 0x368], r13d
mov qword [r11 - 0x360], r13
mov dword [r11 - 0x358], r13d
lea rcx, [r11 - 0x3e8]
call fcn.1400542c4
test eax, eax
jns 0x1400a1a0a
mov r8d, 0x28876d2
lea rcx, [rsp + 0x50]
call fcn.140097520
mov r8, rax
mov rdx, r14
mov rcx, rbx
call fcn.140097ac4
lea rcx, [rsp + 0xb0]
call fcn.14005f980
mov rax, r14
jmp 0x1400a1dd9
mov edi, reloc.OLEAUT32.dll_SafeArrayDestroy
mov esi, 0x33f
cmp qword [rbx + 0x10], r13
jne 0x1400a1a31
lea r9, str._HttpWin_Async__sendInternal:_null_context
mov r8d, edi
mov edx, esi
mov ecx, 0x5970e1
call fcn.140030428
nop
cmp byte [rbx + 0x21], r13b
je 0x1400a1a4e
lea r9, str._HttpWin_Async__sendInternal:_request_already_sent
mov r8d, edi
mov edx, esi
mov ecx, 0x5970e2
call fcn.140030428
nop
cmp byte [rbx + 0x20], r13b
jne 0x1400a1a6b
lea r9, str._HttpWin_Async__sendInternal:_request_not_open
mov r8d, edi
mov edx, esi
mov ecx, 0x5970e3
call fcn.140030428
nop
cmp byte [rbx + 0x22], r13b
je 0x1400a1a88
lea r9, str._HttpWin_Async__sendInternal:_request_already_aborted
mov r8d, edi
mov edx, esi
mov ecx, 0x12cd420
call fcn.140030428
nop
cmp qword [rbx + 0x120], r13
je 0x1400a1aa8
lea r9, str._HttpWin_Async__sendInternal:_helper_already_set
mov r8d, edi
mov edx, esi
mov ecx, 0x597100
call fcn.140030428
nop
cmp qword [rbx + 0x10], r13
je 0x1400a1da4
cmp byte [rbx + 0x21], r13b
jne 0x1400a1da4
cmp byte [rbx + 0x20], r13b
je 0x1400a1da4
cmp byte [rbx + 0x22], r13b
jne 0x1400a1da4
cmp qword [rbx + 0x120], r13
jne 0x1400a1da4
cmp qword [rbx + 0xd0], r13
je 0x1400a1c11
cmp qword [rbx + 0x118], r13
jne 0x1400a1b52
xor eax, eax
mov qword [rsp + 0x58], rax
lea ecx, [rax + 0x78]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1400a1dfd
lea rcx, [rsp + 0x50]
call fcn.1400990d4
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400a1b2c
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, qword [rbx + 0x118]
mov rax, qword [rsp + 0x58]
mov qword [rbx + 0x118], rax
test rcx, rcx
je 0x1400a1b52
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140007d11.0]
nop
mov ecx, 0x28
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1400a1e0b
nop dword [rax]
mov rcx, qword [rbx + 0x118]
mov qword [rax], rcx
test rcx, rcx
je 0x1400a1b8d
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140007d11.0]
nop
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], r13
mov qword [rdi + 0x20], r13
mov rsi, qword [rbx + 0x128]
mov qword [rbx + 0x128], rdi
test rsi, rsi
je 0x1400a1c11
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x1400a1bee
mov rax, qword [rsi + 0x20]
sub rax, rcx
cmp rax, 0x1000
jb 0x1400a1bdc
mov rdx, qword [rcx - 8]
sub rcx, rdx
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400a1c32
mov rcx, rdx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], r13
mov qword [rsi + 0x20], r13
mov rcx, qword [rsi]
test rcx, rcx
je 0x1400a1c07
mov qword [rsi], r13
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140007d11.0]
nop
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, rbx
call fcn.1400a2148
mov ecx, 0x58
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1400a1e15
jmp 0x1400a1c39
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov qword [rsp + 0x50], rdi
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x4c0]
cmp rsi, rax
ja 0x1400a1e1f
movdqa xmm0, xmmword [0x14017f2c0]
movdqu xmmword [rsp + 0xa0], xmm0
mov word [rsp + 0x90], r13w
mov rdx, qword [rsp + 0x108]
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], r13w
jne 0x1400a1c7a
lea rcx, [rsp + 0x90]
call fcn.14001c6b0
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], esi
mov r9, r12
mov r8, r15
lea rdx, [rsp + 0x90]
mov rcx, rdi
call fcn.1400a6b68
mov rdx, qword [rbx + 0x120]
mov qword [rbx + 0x120], rax
test rdx, rdx
je 0x1400a1cd6
nop dword [rax + rax]
call fcn.1400a48d4
nop
mov rax, qword [rsp + 0xa8]
cmp rax, 8
jb 0x1400a1d1e
lea rax, [rax*2 + 2]
mov rcx, qword [rsp + 0x90]
mov rdx, rcx
cmp rax, 0x1000
jb 0x1400a1d17
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x1400a1d17
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rcx, [rbx + 0x158]
call fcn.14009af44
lea rdx, [rsp + 0x68]
mov rcx, qword [rbx + 0x120]
call fcn.1400a6c50
mov ecx, dword [rsp + 0x68]
mov dword [rbx + 0xb8], ecx
mov rax, qword [rsp + 0x70]
mov qword [rbx + 0xc0], rax
mov eax, dword [rsp + 0x78]
mov dword [rbx + 0xc8], eax
cmp ecx, 7
jne 0x1400a1d81
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400a1e29
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
call qword [case.0x140007d11.0]
cdqe
mov qword [rsp + 0x70], rax
lea r8, [rsp + 0x68]
mov rdx, r14
mov rcx, rbx
call fcn.140097ac4
nop
lea rcx, [rsp + 0xb0]
call fcn.14005f980
mov rax, r14
jmp 0x1400a1dd9
mov r8d, 0x28876d3
lea rcx, [rsp + 0x50]
call fcn.1400975a4
mov r8, rax
mov rdx, r14
mov rcx, rbx
call fcn.140097ac4
lea rcx, [rsp + 0xb0]
call fcn.14005f980
mov rax, r14
jmp 0x1400a1dd9
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140118d00
nop
add rsp, 0x460
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x1117748
call fcn.140007918
nop
jmp 0x1400a1e0a
nop
call fcn.1400ecb00
nop
jmp 0x1400a1e14
nop
call fcn.1400ecb00
nop
jmp 0x1400a1e1e
nop
call fcn.140028424
nop
jmp 0x1400a1e28
nop
xor edx, edx
mov ecx, 0x152139a
call fcn.140007884
nop
jmp 0x1400a1e38
nop
nop
nop
nop
nop
nop
nop
nop
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
xor r14d, r14d
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
cmp byte [rcx + 0x21], r14b
jne 0x1400a1ebf
lea rax, str.Message
mov word [rbp - 8], r14w
mov qword [rbp - 0x18], rax
lea r9, str._HttpWin_Async__status
lea rax, str.m_fRequestSent_is_false___request_sent_failed.
mov ecx, 0x25903cf
mov qword [rbp - 0x10], rax
lea r8d, [r14 + 0xf]
lea rax, [0x14012d360]
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
call fcn.14008c890
mov r8d, 0x28876d4
lea rcx, [rbp - 0x20]
call fcn.1400975a4
mov r8, rax
jmp 0x1400a1f39
mov rcx, qword [rcx + 0x58]
mov dword [rbp + 0x20], r14d
mov dword [rbp + 0x38], 4
test rcx, rcx
jne 0x1400a1edb
mov r8d, 0x28876d5
jmp 0x1400a1eb1
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], r14
lea r9, [rbp + 0x20]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x20000013
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x1400a1f12
mov eax, dword [rbp + 0x20]
mov dword [rsi], eax
mov dword [rbp - 0x20], r14d
mov qword [rbp - 0x18], r14
mov dword [rbp - 0x10], r14d
jmp 0x1400a1f35
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
mov r8d, 0x28565a0
or edx, 0x80070000
lea rcx, [rbp - 0x20]
test eax, eax
cmovle edx, eax
call fcn.14009c6ac
lea r8, [rbp - 0x20]
mov rdx, rbx
mov rcx, rdi
call fcn.140097ac4
lea r11, [rsp + 0x50]
mov rax, rbx
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret