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

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 8], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov r13, r8
mov r12, rcx
xor r15d, r15d
mov dword [rbp - 0x28], r15d
mov dword [rbp - 0x2c], 4
mov qword [r11 - 0x70], r15
lea rax, [rbp - 0x2c]
mov qword [r11 - 0x78], rax
lea r9, [rbp - 0x28]
xor r8d, r8d
mov edx, 0x20000005
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x18001e349
call fcn.180035b20
mov ebx, eax
lea rdx, [0x18008d218]
mov rcx, qword [0x18008d218]
cmp rcx, rdx
je 0x18001e342
test byte [rcx + 0x1c], 1
je 0x18001e342
lea edx, [r15 + 0x13]
mov r9d, eax
lea r8, [0x180073338]
mov rcx, qword [rcx + 0x10]
call fcn.180001330
mov eax, ebx
jmp 0x18001e4c3
or qword [rbp - 0x20], 0xffffffffffffffff
mov qword [rbp - 0x18], r15
lea rdx, [rbp - 0x18]
lea rcx, [rbp - 0x20]
call fcn.18001fde0
mov esi, eax
test eax, eax
jns 0x18001e3a9
lea rdx, [0x18008d218]
mov rax, qword [0x18008d218]
cmp rax, rdx
je 0x18001e3a0
test byte [rax + 0x1c], 1
je 0x18001e3a0
lfence
mov edx, 0x14
mov r9d, esi
lea r8, [0x180073338]
mov rcx, qword [0x18008d218]
mov rcx, qword [rcx + 0x10]
call fcn.180001330
mov rdi, qword [rbp - 0x20]
jmp 0x18001e4a3
mov r14d, 0x2000
mov ecx, r14d
call fcn.180062878
mov rbx, rax
mov qword [rbp - 0x10], rax
mov dword [rbp + 0x58], r15d
lea rdx, [rbp + 0x58]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov rdi, qword [rbp - 0x20]
jmp 0x18001e454
cmp r14d, dword [rbp + 0x58]
jae 0x18001e406
mov r14d, dword [rbp + 0x58]
mov ecx, r14d
call fcn.180062878
mov r15, rax
cmp rbx, rax
je 0x18001e403
test rbx, rbx
je 0x18001e3fc
mov rcx, rbx
call fcn.180040d20
mov rbx, r15
mov qword [rbp - 0x10], rbx
xor r15d, r15d
mov dword [rbp - 0x30], r15d
lea r9, [rbp - 0x30]
mov r8d, r14d
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x18001e4f7
mov eax, dword [rbp - 0x30]
test eax, eax
je 0x18001e4db
mov edx, eax
mov r8, rbx
mov rcx, rdi
call fcn.180035d7c
mov esi, eax
test eax, eax
js 0x18001e495
mov dword [rbp + 0x58], r15d
lea rdx, [rbp + 0x58]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x18001e3d5
call fcn.180035b20
mov esi, eax
lea rdx, [0x18008d218]
mov rcx, qword [0x18008d218]
cmp rcx, rdx
je 0x18001e495
test byte [rcx + 0x1c], 1
je 0x18001e495
mov edx, 0x15
mov r9d, eax
lea r8, [0x180073338]
mov rcx, qword [rcx + 0x10]
call fcn.180001330
nop
test rbx, rbx
je 0x18001e4a3
mov rcx, rbx
call fcn.180040d20
nop
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x18001e4b2
call fcn.180040d20
nop
cmp rdi, 0xffffffffffffffff
je 0x18001e4c1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rax, rdi
or rdi, 0xffffffffffffffff
mov rcx, qword [rbp + 0x48]
mov qword [rcx], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x18], r15
mov qword [r13], rax
jmp 0x18001e495
call fcn.180035b20
mov esi, eax
lea rdx, [0x18008d218]
mov rcx, qword [0x18008d218]
cmp rcx, rdx
je 0x18001e495
test byte [rcx + 0x1c], 1
je 0x18001e495
mov edx, 0x16
jmp 0x18001e481