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

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x100
mov rax, qword [0x18014a010]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rdi, rcx
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x88], r8
mov qword [rsp + 0x90], r9
mov byte [rsp + 0x40], 0
xor r13d, r13d
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x48], r13
mov dword [rsp + 0x98], r13d
mov dword [rsp + 0xa8], r13d
mov r14d, r13d
mov dword [rsp + 0x44], r13d
mov dword [rsp + 0xac], r13d
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0xac]
xor r8d, r8d
call fcn.1800903b0
test al, al
je 0x18008f9f9
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0xb0], xmm0
movups xmmword [rsp + 0xc0], xmm0
movups xmmword [rsp + 0xd0], xmm0
mov qword [rsp + 0xe0], rax
mov dword [rsp + 0xe8], eax
mov dword [rsp + 0xac], 0x3c
mov qword [rsp + 0x28], r13
lea rax, [rsp + 0xac]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xb0]
xor r8d, r8d
lea edx, [r8 + 5]
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x18008fa98
mov qword [rsp + 0xa0], r13
mov r8d, 0xa
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0xb0]
call fcn.1800d48c0
mov esi, eax
mov qword [rsp + 0xc0], r13
mov qword [rsp + 0xc8], 7
mov word [rsp + 0xb0], r13w
lea rdx, [rsp + 0xb0]
mov rcx, rdi
call fcn.1800902b0
mov r15, qword [rsp + 0xb0]
mov r12, qword [rsp + 0xc8]
test al, al
je 0x18008f847
lea r11, [rsp + 0xb0]
cmp r12, 8
cmovae r11, r15
mov rax, qword [rsp + 0xc0]
cmp rax, 3
jb 0x18008f847
add rax, 0xfffffffffffffffe
lea rbx, [r11 + rax*2]
mov rax, r11
lea r8, [0x180126ce0]
mov qword [rsp + 0xa0], r8
nop dword [rax]
mov rcx, rbx
sub rcx, rax
sar rcx, 1
mov rdx, r13
je 0x18008f7da
cmp word [rax], 0x34
je 0x18008f7d7
cmp rcx, 1
je 0x18008f7da
dec rcx
add rax, 2
cmp word [rax], 0x34
jne 0x18008f7c4
mov rdx, rax
mov rax, rdx
test rdx, rdx
je 0x18008f847
mov r9d, 3
mov rcx, r8
movzx edx, word [rdx]
mov r8d, 0x34
cmp dx, r8w
jb 0x18008f827
mov r10, rax
sub r10, qword [rsp + 0xa0]
cmp dx, r8w
ja 0x18008f827
cmp r9, 1
je 0x18008f837
dec r9
add rcx, 2
movzx edx, word [r10 + rcx]
movzx r8d, word [rcx]
cmp dx, r8w
jae 0x18008f809
add rax, 2
lea r8, [0x180126ce0]
jmp 0x18008f7b0
sub rax, r11
sar rax, 1
cmp rax, 0xffffffffffffffff
jne 0x18008fa13
lea rdx, [rsp + 0x98]
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x18008fa2c
cmp esi, 0x800000
ja 0x18008fa45
mov rcx, rsi
call fcn.1800caa98
mov rsi, rax
mov qword [rsp + 0x70], rax
mov ecx, 0x1000
call fcn.1800caa98
mov rbx, rax
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x98]
cmp eax, 0x1000
jbe 0x18008f8cc
test rbx, rbx
je 0x18008f8b6
mov rcx, rbx
call fcn.1800ca7c8
mov qword [rsp + 0x48], r13
mov eax, dword [rsp + 0x98]
mov ecx, eax
call fcn.1800caa98
mov rbx, rax
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x98]
test rbx, rbx
je 0x18008fa7e
lea r9, [rsp + 0xa8]
mov r8d, eax
mov rdx, rbx
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x18008fa7e
mov r8d, dword [rsp + 0xa8]
mov ecx, r14d
add rcx, rsi
mov rdx, rbx
call fcn.1800c1d10
add r14d, dword [rsp + 0xa8]
mov dword [rsp + 0x44], r14d
lea rdx, [rsp + 0x98]
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x18008fa5e
mov eax, dword [rsp + 0x98]
test eax, eax
jne 0x18008f896
mov dil, 1
mov byte [rsp + 0x40], dil
cmp r12, 8
jb 0x18008f985
lea rdx, [r12*2 + 2]
mov rax, r15
cmp rdx, 0x1000
jb 0x18008f97c
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18008fa78
mov rcx, r15
call fcn.180096034
nop
jmp 0x18008f9a0
mov rcx, rbx
call fcn.1800ca7c8
test dil, dil
je 0x18008f9c5
mov rax, qword [rsp + 0x88]
mov qword [rax], rsi
mov rax, qword [rsp + 0x90]
mov dword [rax], r14d
jmp 0x18008f9d2
test rsi, rsi
je 0x18008f9d2
mov rcx, rsi
call fcn.1800ca7c8
movzx eax, dil
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.180096010
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov dword [rsp + 0x50], 1
lea rdx, [0x1801472f8]
lea rcx, [rsp + 0x50]
call fcn.1800c1a08
nop
mov dword [rsp + 0x54], 5
lea rdx, [0x1801472f8]
lea rcx, [rsp + 0x54]
call fcn.1800c1a08
mov dword [rsp + 0x58], 4
lea rdx, [0x1801472f8]
lea rcx, [rsp + 0x58]
call fcn.1800c1a08
mov dword [rsp + 0x5c], select
lea rdx, [0x1801472f8]
lea rcx, [rsp + 0x5c]
call fcn.1800c1a08
mov dword [rsp + 0x60], 8
lea rdx, [0x1801472f8]
lea rcx, [rsp + 0x60]
call fcn.1800c1a08
nop
call fcn.1800d0cf4
nop
mov dword [rsp + 0x64], 8
lea rdx, [0x1801472f8]
lea rcx, [rsp + 0x64]
call fcn.1800c1a08
nop
mov dword [rsp + 0x68], 4
lea rdx, [0x1801472f8]
lea rcx, [rsp + 0x68]
call fcn.1800c1a08
int3