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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xb8
mov qword [rbp - 0x49], 0xfffffffffffffffe
mov rax, qword [0x140018010]
xor rax, rsp
mov qword [rbp + 7], rax
mov r15, r9
mov r14, r8
mov rbx, rdx
mov r13, rcx
mov rcx, qword [rcx + 0x10]
xor esi, esi
test rcx, rcx
jne 0x14000a9e6
mov eax, esi
jmp 0x14000aa13
mov dword [rbp - 0x41], esi
mov dword [rbp - 0x3d], 4
mov qword [rsp + 0x28], rsi
lea rax, [rbp - 0x3d]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x41]
xor r8d, r8d
mov edx, 0x20000013
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov eax, dword [rbp - 0x41]
mov dword [rbx], eax
movdqa xmm0, xmmword [0x140012ad0]
movdqu xmmword [rbp - 0x29], xmm0
mov word [rbp - 0x39], si
mov rcx, qword [r13 + 0x10]
test rcx, rcx
jne 0x14000aa36
xor edx, edx
jmp 0x14000ab42
mov dword [rbp - 0x41], esi
mov qword [rsp + 0x28], rsi
lea rax, [rbp - 0x41]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edi, [r9 + 0x16]
mov edx, edi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000ab3b
lea rdx, [0x140012478]
lea rcx, [rbp - 0x19]
call fcn.1400045fc
nop
mov ecx, dword [rbp - 0x41]
shr rcx, 1
lea eax, [rdi - 0x14]
mul rcx
mov rbx, 0xffffffffffffffff
cmovo rax, rbx
mov rcx, rax
call fcn.14000f4d4
mov r12, rax
mov qword [rsp + 0x28], rsi
lea rax, [rbp - 0x41]
mov qword [rsp + 0x20], rax
mov r9, r12
xor r8d, r8d
mov edx, edi
mov rcx, qword [r13 + 0x10]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x14000ab07
inc rbx
cmp word [r12 + rbx*2], si
jne 0x14000aabf
cmp rbx, qword [rbp - 1]
ja 0x14000aaf8
lea rdi, [rbp - 0x19]
cmp qword [rbp - 1], 8
cmovae rdi, qword [rbp - 0x19]
mov qword [rbp - 9], rbx
add rbx, rbx
mov r8, rbx
mov rdx, r12
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi], si
jmp 0x14000ab07
mov r9, r12
mov rdx, rbx
lea rcx, [rbp - 0x19]
call fcn.140006070
mov rcx, r12
call fcn.14000ee94
movups xmm0, xmmword [rbp - 0x19]
movups xmmword [rbp - 0x69], xmm0
movups xmm1, xmmword [rbp - 9]
movups xmmword [rbp - 0x59], xmm1
movdqa xmm0, xmmword [0x140012ad0]
movdqu xmmword [rbp - 9], xmm0
mov word [rbp - 0x19], si
lea rcx, [rbp - 0x19]
call fcn.140004598
jmp 0x14000ab4b
lea rdx, [0x140012480]
lea rcx, [rbp - 0x69]
call fcn.1400045fc
mov rdx, qword [rbp - 0x21]
cmp rdx, 8
jb 0x14000ab8e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ab89
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000ab89
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000ee94
movups xmm0, xmmword [rbp - 0x69]
movups xmmword [rbp - 0x39], xmm0
movups xmm1, xmmword [rbp - 0x59]
movups xmmword [rbp - 0x29], xmm1
movdqa xmm0, xmmword [0x140012ad0]
movdqu xmmword [rbp - 0x59], xmm0
mov word [rbp - 0x69], si
lea rcx, [rbp - 0x69]
call fcn.140004598
lea rcx, [rbp - 0x39]
cmp qword [rbp - 0x21], 8
cmovae rcx, qword [rbp - 0x39]
mov rax, qword [rbp - 0x29]
lea r10, [rcx + rax*2]
lea r9, [rbp - 0x39]
cmovae r9, qword [rbp - 0x39]
mov rax, r14
cmp qword [r14 + 0x18], 0x10
jb 0x14000abe4
mov rax, qword [r14]
mov rcx, qword [r14 + 0x10]
lea r8, [rax + rcx]
mov rax, r14
jb 0x14000abf4
mov rax, qword [r14]
lea rdx, [rax + rcx]
mov qword [rsp + 0x20], r10
mov rcx, r14
call fcn.14000b89c
cmp qword [r13 + 0x10], rsi
je 0x14000acf7
mov dword [rbp - 0x3d], esi
mov dword [rbp - 0x41], esi
lea rdx, [rbp - 0x41]
mov rcx, qword [r13 + 0x10]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x14000acf7
mov ecx, dword [rbp - 0x41]
inc ecx
call fcn.14000f4d4
mov r14, rax
test rax, rax
je 0x14000acea
mov r8d, dword [rbp - 0x41]
inc r8d
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea r9, [rbp - 0x3d]
mov r8d, dword [rbp - 0x41]
mov rdx, r14
mov rcx, qword [r13 + 0x10]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x14000ac81
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__u_in_WinHttpReadData._n
call fcn.1400010dc
jmp 0x14000acd4
mov edi, dword [rbp - 0x3d]
mov rcx, qword [r15 + 0x10]
mov rax, qword [r15 + 0x18]
sub rax, rcx
cmp rdi, rax
ja 0x14000acc1
lea rax, [rcx + rdi]
mov qword [r15 + 0x10], rax
mov rax, r15
cmp qword [r15 + 0x18], 0x10
jb 0x14000aca9
mov rax, qword [r15]
lea rbx, [rax + rcx]
mov r8, rdi
mov rdx, r14
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + rbx], sil
jmp 0x14000acd4
mov qword [rsp + 0x20], rdi
mov r9, r14
mov rdx, rdi
mov rcx, r15
call fcn.14000a1e0
mov rcx, r14
call fcn.14000ee94
cmp dword [rbp - 0x41], esi
ja 0x14000ac12
mov sil, 1
jmp 0x14000acf7
lea rcx, str.Out_of_memory_n
call fcn.1400010dc
nop
lea rcx, [rbp - 0x39]
call fcn.140004598
mov al, sil
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.14000ee70
add rsp, 0xb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret