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

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
mov r12, r9
mov r13, r8
mov rbx, rdx
mov r15, rcx
mov rcx, qword [rcx + 0x10]
xor r14d, r14d
test rcx, rcx
jne 0x140019172
mov eax, r14d
jmp 0x1400191a0
mov dword [rbp + 0x67], r14d
mov dword [rbp + 0x6f], 4
mov qword [rsp + 0x28], r14
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x67]
xor r8d, r8d
mov edx, 0x20000013
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov eax, dword [rbp + 0x67]
mov dword [rbx], eax
mov qword [rbp - 0x39], r14
mov qword [rbp - 0x29], r14
mov qword [rbp - 0x21], 7
mov word [rbp - 0x39], r14w
mov rcx, qword [r15 + 0x10]
test rcx, rcx
jne 0x1400191d5
mov qword [rbp - 0x59], r14
mov qword [rbp - 0x49], r14
mov qword [rbp - 0x41], 7
jmp 0x1400192c3
mov dword [rbp + 0x67], r14d
mov qword [rsp + 0x28], r14
lea rax, [rbp + 0x67]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x16]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400192b3
mov qword [rbp - 0x19], r14
mov qword [rbp - 9], r14
mov qword [rbp - 1], 7
mov word [rbp - 0x19], r14w
lea r8d, [rax - 0x77]
lea rdx, [0x140060df0]
lea rcx, [rbp - 0x19]
call fcn.140010450
nop
mov ecx, dword [rbp + 0x67]
shr rcx, 1
mov eax, 2
mul rcx
mov rbx, 0xffffffffffffffff
cmovo rax, rbx
mov rcx, rax
call fcn.14002166c
mov rdi, rax
mov qword [rsp + 0x28], r14
lea rax, [rbp + 0x67]
mov qword [rsp + 0x20], rax
mov r9, rdi
xor r8d, r8d
lea edx, [rbx + 0x17]
mov rcx, qword [r15 + 0x10]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x140019299
nop dword [rax]
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x140019280
mov r8, rbx
mov rdx, rdi
lea rcx, [rbp - 0x19]
call fcn.140010450
mov rcx, rdi
call fcn.140021138
movups xmm0, xmmword [rbp - 0x19]
movups xmmword [rbp - 0x59], xmm0
movups xmm6, xmmword [rbp - 9]
movups xmmword [rbp - 0x49], xmm6
jmp 0x1400192dd
mov qword [rbp - 0x59], r14
mov qword [rbp - 0x49], r14
mov qword [rbp - 0x41], 7
mov r8d, 3
lea rdx, [0x140060de8]
lea rcx, [rbp - 0x59]
call fcn.140010450
movups xmm6, xmmword [rbp - 0x49]
mov rdx, qword [rbp - 0x21]
cmp rdx, 8
jb 0x14001931d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140019318
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400195c6
call fcn.140021138
movups xmm0, xmmword [rbp - 0x59]
movups xmmword [rbp - 0x39], xmm0
movups xmmword [rbp - 0x29], xmm6
lea rcx, [rbp - 0x39]
psrldq xmm6, 8
movq rax, xmm6
cmp rax, 8
mov rax, qword [rbp - 0x49]
jb 0x14001934b
mov rsi, qword [rbp - 0x59]
lea rbx, [rsi + rax*2]
jmp 0x140019353
lea rbx, [rcx + rax*2]
lea rsi, [rbp - 0x39]
mov qword [rbp - 0x59], r14
mov r8, r14
mov qword [rbp - 0x49], r14
mov ecx, 0xf
mov qword [rbp - 0x41], rcx
mov byte [rbp - 0x59], 0
mov rdx, rbx
sub rdx, rsi
sar rdx, 1
cmp rdx, rcx
jbe 0x14001938d
lea rcx, [rbp - 0x59]
call fcn.14001c5c0
mov r8, r14
mov qword [rbp - 0x49], r14
mov rcx, qword [rbp - 0x41]
lea rax, [rbp - 0x59]
mov qword [rbp + 0x67], rax
cmp rsi, rbx
je 0x1400193ed
movzx edi, byte [rbp + 0x67]
nop
movzx r9d, byte [rsi]
cmp r8, rcx
jae 0x1400193ca
lea rax, [r8 + 1]
mov qword [rbp - 0x49], rax
lea rax, [rbp - 0x59]
cmp rcx, 0x10
cmovae rax, qword [rbp - 0x59]
mov byte [rax + r8], r9b
mov byte [rax + r8 + 1], 0
jmp 0x1400193dc
movzx r8d, dil
mov edx, 1
lea rcx, [rbp - 0x59]
call fcn.140012620
add rsi, 2
mov rcx, qword [rbp - 0x41]
mov r8, qword [rbp - 0x49]
cmp rsi, rbx
jne 0x1400193a0
lea rdx, [rbp - 0x59]
cmp rcx, 0x10
cmovae rdx, qword [rbp - 0x59]
mov rcx, r13
call fcn.140010770
nop
mov rdx, qword [rbp - 0x41]
cmp rdx, 0x10
jb 0x14001943e
inc rdx
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140019439
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400195cc
call fcn.140021138
cmp qword [r15 + 0x10], 0
je 0x14001955a
mov dword [rbp + 0x6f], r14d
mov edi, r14d
movss xmm6, dword [0x14006110c]
movss xmm7, dword [0x1400610f8]
mov dword [rbp + 0x67], r14d
lea rdx, [rbp + 0x67]
mov rcx, qword [r15 + 0x10]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x14001955a
mov ecx, dword [rbp + 0x67]
add edi, ecx
mov eax, edi
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
divss xmm0, xmm6
mulss xmm0, xmm7
cvttss2si ebx, xmm0
cmp byte [r15 + 0x28], 0
je 0x140019501
lea rdx, str.Download
lea rcx, [0x1400759e0]
call fcn.140010d70
mov edx, ebx
mov rcx, rax
call fcn.140019da0
mov rcx, rax
lea rdx, [0x140060dfc]
call fcn.140010d70
mov r8, rax
imul ecx, ebx, 0xfa000
mov edx, edi
sub edx, ecx
mov eax, 0x51eb851f
mul edx
shr edx, 5
mov rcx, r8
call fcn.140019da0
mov rcx, rax
lea rdx, [0x140060df8]
call fcn.140010d70
mov rcx, rax
call fcn.140010fe0
mov ecx, dword [rbp + 0x67]
inc ecx
call fcn.14002166c
mov rbx, rax
mov r8d, dword [rbp + 0x67]
inc r8d
xor edx, edx
mov rcx, rax
call fcn.140023b70
lea r9, [rbp + 0x6f]
mov r8d, dword [rbp + 0x67]
mov rdx, rbx
mov rcx, qword [r15 + 0x10]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x140019544
mov r8d, dword [rbp + 0x6f]
mov rdx, rbx
mov rcx, r12
call fcn.140010770
mov rcx, rbx
call fcn.140021138
cmp dword [rbp + 0x67], 0
ja 0x140019460
mov bl, 1
jmp 0x14001955c
xor bl, bl
mov rdx, qword [rbp - 0x21]
cmp rdx, 8
jb 0x140019598
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140019593
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400195c0
call fcn.140021138
movzx eax, bl
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x50]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14002e15c
nop
call fcn.14002e15c
nop
call fcn.14002e15c
int3