Function at 0x140006edc
Capabilities:
Read http header

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov rax, qword [0x14012a418]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rsi, rcx
mov qword [rbp - 0x39], rcx
xor r15d, r15d
mov dword [rbp - 0x69], r15d
mov dword [rbp - 0x65], r15d
mov qword [rsp + 0x28], r15
lea rax, [rbp - 0x65]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea r14d, [r15 + 0x16]
mov edx, r14d
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov ebx, dword [rbp - 0x65]
shr rbx, 1
xorps xmm0, xmm0
movups xmmword [rbp + 0xf], xmm0
mov qword [rbp + 0x1f], r15
lea eax, [r15 + 0xa]
lea r13d, [r15 + 7]
mov qword [rbp + 0x27], r13
cmp rbx, 8
jae 0x140006f86
mov qword [rbp + 0x1f], rbx
test rbx, rbx
je 0x140006f7e
movzx eax, r15w
lea rdi, [rbp + 0xf]
mov rcx, rbx
rep stosw word [rdi], ax
mov word [rbp + rbx*2 + 0xf], r15w
jmp 0x140006fd1
mov rdi, rbx
or rdi, r13
cmp rdi, rax
cmovb rdi, rax
lea rcx, [rdi*2 + 2]
cmp rcx, 0x1000
jb 0x140006fab
call fcn.140001198
jmp 0x140006fb0
call fcn.14006b838
mov rdx, rax
mov qword [rbp + 0xf], rax
mov qword [rbp + 0x1f], rbx
mov qword [rbp + 0x27], rdi
movzx eax, r15w
mov rdi, rdx
mov rcx, rbx
rep stosw word [rdi], ax
mov word [rdx + rbx*2], r15w
lea r9, [rbp + 0xf]
cmp qword [rbp + 0x27], 8
cmovae r9, qword [rbp + 0xf]
mov qword [rsp + 0x28], r15
lea rax, [rbp - 0x65]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, r14d
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x14000782e
lea r14, [rsi + 0xa0]
mov rdi, qword [r14]
mov rbx, qword [r14 + 8]
cmp rdi, rbx
je 0x140007039
lea rcx, [rdi + 0x20]
call fcn.140002874
mov rcx, rdi
call fcn.140002874
add rdi, 0x40
cmp rdi, rbx
jne 0x140007018
mov rax, qword [r14]
mov qword [r14 + 8], rax
lea rcx, [rbp + 0xf]
call fcn.140007d18
mov r12, rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x61], xmm0
mov rsi, r15
mov qword [rbp - 0x51], r15
mov dword [rbp - 0x69], 8
cmp qword [rbp + 0x1f], r15
jne 0x14000706a
mov rbx, qword [rbp - 0x59]
jmp 0x1400071a3
test r12, r12
jne 0x140007080
lea r8, [rbp + 0xf]
xor edx, edx
lea rcx, [rbp - 0x61]
call fcn.140004714
jmp 0x140007061
mov rbx, qword [rbp - 0x59]
mov rdi, r15
mov rcx, r12
call fcn.14007e128
lea rcx, [rbp + 0xf]
cmp qword [rbp + 0x27], 8
cmovae rcx, qword [rbp + 0xf]
mov qword [rsp + 0x20], rax
mov r9, r12
mov r8, r15
mov rdx, qword [rbp + 0x1f]
call fcn.140004f00
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x140007142
cmp rbx, rsi
je 0x1400070e0
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], r13
mov word [rbx], ax
add rbx, 0x20
mov qword [rbp - 0x59], rbx
jmp 0x1400070f4
mov rdx, rbx
lea rcx, [rbp - 0x61]
call fcn.140003f70
mov rsi, qword [rbp - 0x51]
mov rbx, qword [rbp - 0x59]
lea rcx, [rbx - 0x20]
mov rax, qword [rbp + 0x1f]
cmp rax, rdi
jb 0x140007828
mov r9, r15
sub r9, rdi
sub rax, rdi
cmp rax, r9
cmovb r9, rax
lea rax, [rbp + 0xf]
cmp qword [rbp + 0x27], 8
cmovae rax, qword [rbp + 0xf]
lea r8, [rax + rdi*2]
xor edx, edx
call fcn.140007d9c
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
add r15, rcx
jmp 0x140007084
cmp rbx, rsi
je 0x140007164
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], r13
mov word [rbx], ax
add rbx, 0x20
mov qword [rbp - 0x59], rbx
jmp 0x140007174
mov rdx, rbx
lea rcx, [rbp - 0x61]
call fcn.140003f70
mov rbx, qword [rbp - 0x59]
lea rcx, [rbx - 0x20]
mov r9, qword [rbp + 0x1f]
sub r9, rdi
cmp qword [rbp + 0x1f], rdi
jb 0x140007828
lea rax, [rbp + 0xf]
cmp qword [rbp + 0x27], 8
cmovae rax, qword [rbp + 0xf]
lea r8, [rax + rdi*2]
xor edx, edx
call fcn.140007d9c
nop
mov r15d, 4
mov rsi, qword [rbp - 0x61]
xor r12d, r12d
cmp rsi, rbx
je 0x140007718
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x14000770f
mov rcx, rsi
cmp qword [rsi + 0x18], 8
jb 0x1400071d3
mov rcx, qword [rsi]
test rax, rax
je 0x1400071ee
mov rdx, rax
mov rdi, rcx
cmp word [rdi], 0x3a
je 0x14000725c
add rdi, 2
sub rdx, 1
jne 0x1400071de
or rdi, 0xffffffffffffffff
xorps xmm0, xmm0
mov qword [rbp - 0x21], r12
mov qword [rbp - 0x19], r12
movups xmmword [rbp - 0x31], xmm0
cmp rdi, 0xffffffffffffffff
jne 0x1400072e5
lea rcx, [0x1400f81a4]
call fcn.14007e128
mov r8, rax
lea rdx, [0x1400f81a4]
lea rcx, [rbp - 0x31]
call fcn.1400013bc
nop
lea r8, [rbp - 0x31]
lea rdx, [rbp - 0x41]
mov rcx, r14
call fcn.140006cb0
mov rdx, qword [r14 + 8]
mov rax, qword [rbp - 0x41]
cmp rax, rdx
jne 0x14000727c
mov rcx, r14
cmp rdx, qword [r14 + 0x10]
je 0x140007269
lea rdx, [rbp - 0x31]
call fcn.140003ef8
jmp 0x140007272
test rdi, rdi
je 0x1400071ee
sub rdi, rcx
sar rdi, 1
jmp 0x1400071f2
lea r8, [rbp - 0x31]
call fcn.1400044f8
mov rcx, qword [r14 + 8]
sub rcx, 0x20
jmp 0x140007280
lea rcx, [rax + 0x20]
cmp rcx, rsi
je 0x14000729c
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x140007292
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
call fcn.140002c20
nop
mov rdx, qword [rbp - 0x19]
cmp rdx, 8
jb 0x14000770f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400072db
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140007846
call fcn.14006b874
jmp 0x14000770f
mov r8, rdi
cmp rax, rdi
cmovb r8, rax
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x1400072fc
mov rdx, qword [rsi]
lea rcx, [rbp - 0x31]
call fcn.1400013bc
or r15d, 1
mov rcx, qword [rsi + 0x10]
mov r8, rcx
sub r8, rdi
dec r8
inc rdi
xorps xmm0, xmm0
movups xmmword [rbp - 0x11], xmm0
mov qword [rbp - 1], r12
mov qword [rbp + 7], r12
cmp rcx, rdi
jb 0x140007858
sub rcx, rdi
cmp rcx, r8
cmovb r8, rcx
mov rax, rsi
cmp qword [rsi + 0x18], 8
jb 0x140007348
mov rax, qword [rsi]
lea rdx, [rax + rdi*2]
lea rcx, [rbp - 0x11]
call fcn.1400013bc
or r15d, 2
mov dword [rbp - 0x69], r15d
mov rax, qword [rbp - 1]
test rax, rax
sete cl
test rax, rax
je 0x140007404
test cl, cl
jne 0x1400073ba
lea rcx, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rcx, qword [rbp - 0x11]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rdx, eax
cmp rdx, qword [rbp - 1]
ja 0x1400073aa
mov qword [rbp - 1], rdx
lea rax, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rax, qword [rbp - 0x11]
mov word [rax + rdx*2], r12w
jmp 0x1400073ba
xor r8d, r8d
sub rdx, qword [rbp - 1]
lea rcx, [rbp - 0x11]
call fcn.140007a00
mov rdi, qword [rbp - 1]
lea r15, [rdi - 1]
test rdi, rdi
je 0x1400073eb
lea rax, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rax, qword [rbp - 0x11]
movzx ecx, word [rax + r12*2]
call fcn.1400a3890
test eax, eax
je 0x14000745c
inc r12
cmp r12, rdi
jb 0x1400073c7
xor r12d, r12d
mov qword [rbp - 1], r12
lea rax, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rax, qword [rbp - 0x11]
mov word [rax], r12w
mov rdi, qword [rbp - 0x21]
test rdi, rdi
sete al
test rdi, rdi
je 0x140007560
test al, al
jne 0x14000751a
lea rcx, [rbp - 0x31]
cmp qword [rbp - 0x19], 8
cmovae rcx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rdx, eax
cmp rdx, qword [rbp - 0x21]
ja 0x140007506
mov qword [rbp - 0x21], rdx
lea rax, [rbp - 0x31]
cmp qword [rbp - 0x19], 8
cmovae rax, qword [rbp - 0x31]
mov word [rax + rdx*2], r12w
jmp 0x140007516
dec rdi
lea rax, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rax, qword [rbp - 0x11]
movzx ecx, word [rax + rdi*2]
call fcn.1400a3890
test eax, eax
je 0x140007481
test rdi, rdi
jne 0x14000745c
jmp 0x140007484
mov r15, rdi
lea r8, [rbp - 0x11]
cmp qword [rbp + 7], 8
setae dil
mov rcx, qword [rbp - 0x11]
cmovae r8, rcx
lea rdx, [rbp - 0x11]
test dil, dil
cmovne rdx, rcx
add rdx, 2
lea rdx, [rdx + r15*2]
lea rax, [rbp - 0x11]
test dil, dil
cmovne rax, rcx
lea rcx, [rax + r12*2]
call fcn.140003dbc
sub r15, r12
inc r15
cmp r15, qword [rbp - 1]
ja 0x1400074eb
mov qword [rbp - 1], r15
lea rax, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rax, qword [rbp - 0x11]
xor r12d, r12d
mov word [rax + r15*2], r12w
jmp 0x140007404
xor r8d, r8d
sub r15, qword [rbp - 1]
mov rdx, r15
lea rcx, [rbp - 0x11]
call fcn.140007a00
xor r12d, r12d
jmp 0x140007404
xor r8d, r8d
sub rdx, qword [rbp - 0x21]
lea rcx, [rbp - 0x31]
call fcn.140007a00
mov rdi, qword [rbp - 0x21]
lea r15, [rdi - 1]
test rdi, rdi
je 0x140007547
lea rax, [rbp - 0x31]
cmp qword [rbp - 0x19], 8
cmovae rax, qword [rbp - 0x31]
movzx ecx, word [rax + r12*2]
call fcn.1400a3890
test eax, eax
je 0x14000759c
inc r12
cmp r12, rdi
jb 0x140007523
xor r12d, r12d
mov qword [rbp - 0x21], r12
lea rax, [rbp - 0x31]
cmp qword [rbp - 0x19], 8
cmovae rax, qword [rbp - 0x31]
mov word [rax], r12w
lea r8, [rbp - 0x31]
lea rdx, [rbp - 0x49]
mov rcx, r14
call fcn.140006cb0
mov rdx, qword [r14 + 8]
mov rax, qword [rbp - 0x49]
cmp rax, rdx
jne 0x140007659
mov rcx, r14
cmp rdx, qword [r14 + 0x10]
je 0x140007646
lea rdx, [rbp - 0x31]
call fcn.140003ef8
jmp 0x14000764f
dec rdi
lea rax, [rbp - 0x31]
cmp qword [rbp - 0x19], 8
cmovae rax, qword [rbp - 0x31]
movzx ecx, word [rax + rdi*2]
call fcn.1400a3890
test eax, eax
je 0x1400075c1
test rdi, rdi
jne 0x14000759c
jmp 0x1400075c4
mov r15, rdi
lea r8, [rbp - 0x31]
cmp qword [rbp - 0x19], 8
setae dil
mov rcx, qword [rbp - 0x31]
cmovae r8, rcx
lea rdx, [rbp - 0x31]
test dil, dil
cmovne rdx, rcx
add rdx, 2
lea rdx, [rdx + r15*2]
lea rax, [rbp - 0x31]
test dil, dil
cmovne rax, rcx
lea rcx, [rax + r12*2]
call fcn.140003dbc
sub r15, r12
inc r15
cmp r15, qword [rbp - 0x21]
ja 0x14000762b
mov qword [rbp - 0x21], r15
lea rax, [rbp - 0x31]
cmp qword [rbp - 0x19], 8
cmovae rax, qword [rbp - 0x31]
xor r12d, r12d
mov word [rax + r15*2], r12w
jmp 0x140007560
xor r8d, r8d
sub r15, qword [rbp - 0x21]
mov rdx, r15
lea rcx, [rbp - 0x31]
call fcn.140007a00
xor r12d, r12d
jmp 0x140007560
lea r8, [rbp - 0x31]
call fcn.1400044f8
mov rcx, qword [r14 + 8]
sub rcx, 0x20
jmp 0x14000765d
lea rcx, [rax + 0x20]
lea rax, [rbp - 0x11]
cmp rcx, rax
je 0x14000767e
lea rdx, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rdx, qword [rbp - 0x11]
mov r8, qword [rbp - 1]
call fcn.140002c20
nop
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x1400076be
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400076b9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000784c
call fcn.14006b874
mov qword [rbp - 1], r12
mov qword [rbp + 7], r13
mov word [rbp - 0x11], r12w
mov rdx, qword [rbp - 0x19]
cmp rdx, 8
jb 0x14000770b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007706
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140007852
call fcn.14006b874
mov r15d, dword [rbp - 0x69]
add rsi, 0x20
jmp 0x1400071b0
xorps xmm0, xmm0
movups xmmword [rbp - 0x31], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x21], xmm1
lea rcx, str.Content_Length
call fcn.14007e128
mov r8, rax
lea rdx, str.Content_Length
lea rcx, [rbp - 0x31]
call fcn.1400013bc
lea r8, [rbp - 0x31]
lea rdx, [rbp - 0x49]
mov rcx, r14
call fcn.140006cb0
mov rax, qword [rbp - 0x49]
cmp rax, qword [r14 + 8]
mov rdi, r12
je 0x140007767
lea rdi, [rax + 0x20]
mov rdx, qword [rbp - 0x19]
cmp rdx, 8
jb 0x1400077a7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400077a2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140007822
call fcn.14006b874
movdqa xmm0, xmmword [0x1400f7ee0]
movdqu xmmword [rbp - 0x21], xmm0
mov word [rbp - 0x31], r12w
test rdi, rdi
je 0x1400077e2
mov rcx, rdi
call fcn.140007e9c
test al, al
je 0x1400077e2
xor edx, edx
lea r8d, [rdx + 0xa]
mov rcx, rdi
call fcn.140009884
mov eax, eax
mov rcx, qword [rbp - 0x39]
mov qword [rcx + 0x18], rax
lea rcx, [rbp - 0x61]
call fcn.140006998
nop
lea rcx, [rbp + 0xf]
call fcn.140002874
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.14006b990
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.14007d5f4
nop
call fcn.140006a88
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.WinHttpQueryHeaders_failed
mov rcx, rsi
call fcn.140006a9c
nop
call fcn.14007d5f4
nop
call fcn.14007d5f4
nop
call fcn.14007d5f4
nop
call fcn.140006a88
int3