Function at 0x18000acc0
Capabilities:
Read http header

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x190], rbx
mov rax, qword [0x180067008]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov r12, rdx
mov rbx, rcx
xor edi, edi
mov dword [rbp - 0x58], edi
mov qword [rsp + 0x28], rdi
lea rax, [rbp - 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rdi + 0x16]
mov rcx, qword [rcx]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x18000b37c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x18000b37c
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], rdi
mov word [rbp - 0x50], di
mov edx, dword [rbp - 0x58]
test rdx, rdx
jne 0x18000ad5b
mov qword [rbp - 0x40], rdx
mov word [rbp + rdx*2 - 0x50], di
jmp 0x18000ad64
lea rcx, [rbp - 0x50]
call fcn.18000c190
lea r9, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae r9, qword [rbp - 0x50]
mov qword [rsp + 0x28], rdi
lea rax, [rbp - 0x58]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [r8 + 0x16]
mov rcx, qword [rbx]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
movabs rsi, 0x7fffffffffffffff
test eax, eax
je 0x18000b192
mov rbx, rdi
mov r9d, 2
xor r8d, r8d
lea rdx, [0x180058978]
lea rcx, [rbp - 0x50]
call fcn.18000bfe0
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x18000b192
mov r9, r13
sub r9, rbx
mov r8, rbx
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x50]
call fcn.18000bd00
nop
mov r9d, 1
xor r8d, r8d
lea rdx, [0x180058980]
lea rcx, [rbp - 0x30]
call fcn.18000bfe0
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x18000b089
mov r9, rax
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x30]
call fcn.18000bd00
nop
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.18000a930
nop
mov rax, qword [rsp + 0x68]
cmp rax, 8
jb 0x18000ae86
inc rax
mov rcx, qword [rsp + 0x50]
cmp rax, rsi
ja 0x18000b120
add rax, rax
cmp rax, 0x1000
jb 0x18000ae81
test cl, 0x1f
jne 0x18000b11a
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x18000b114
sub rcx, rax
cmp rcx, 8
jb 0x18000b10e
cmp rcx, 0x27
ja 0x18000b108
mov rcx, rax
call fcn.180033ed0
mov qword [rsp + 0x68], 7
xor ebx, ebx
mov qword [rsp + 0x60], rbx
mov word [rsp + 0x50], bx
lea r14, [rbp - 0x10]
mov r8, qword [rbp - 0x10]
mov rdx, qword [rbp + 8]
cmp rdx, 0x10
cmovae r14, r8
lea rcx, [rbp - 0x10]
cmovae rcx, r8
mov rax, qword [rbp]
add rax, rcx
lea rsi, [rbp - 0x10]
cmp rdx, 0x10
cmovae rsi, r8
mov rdi, rax
sub rdi, rsi
cmp rsi, rax
cmova rdi, rbx
test rdi, rdi
je 0x18000aef7
nop dword [rax]
movsx ecx, byte [rsi + rbx]
call fcn.18003bb0c
mov byte [rbx + r14], al
inc rbx
cmp rbx, rdi
jne 0x18000aee0
xor ebx, ebx
lea r8, [r15 + 1]
or r9, 0xffffffffffffffff
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x30]
call fcn.18000bd00
nop
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.18000a930
nop
mov rax, qword [rsp + 0x48]
movabs rsi, 0x7fffffffffffffff
cmp rax, 8
jb 0x18000af81
inc rax
mov rcx, qword [rsp + 0x30]
cmp rax, rsi
ja 0x18000b13e
add rax, rax
cmp rax, 0x1000
jb 0x18000af7c
test cl, 0x1f
jne 0x18000b138
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x18000b132
sub rcx, rax
cmp rcx, 8
jb 0x18000b12c
cmp rcx, 0x27
ja 0x18000b126
mov rcx, rax
call fcn.180033ed0
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x30], bx
lea r8, [rbp + 0x10]
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x50]
call fcn.18000c2c0
nop
mov rdx, rax
mov rcx, r12
call fcn.18000c4d0
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x68]
mov rcx, r12
call fcn.18000c550
nop
lea rcx, [rsp + 0x70]
call fcn.180001e50
lea rcx, [rsp + 0x50]
call fcn.180001e50
nop
mov rax, qword [rbp + 0x28]
cmp rax, 0x10
jb 0x18000b02b
inc rax
mov rcx, qword [rbp + 0x10]
cmp rax, 0x1000
jb 0x18000b026
test cl, 0x1f
jne 0x18000b156
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x18000b150
sub rcx, rax
cmp rcx, 8
jb 0x18000b14a
cmp rcx, 0x27
ja 0x18000b144
mov rcx, rax
call fcn.180033ed0
mov qword [rbp + 0x28], reloc.WS2_32.dll_ntohs
mov qword [rbp + 0x20], rbx
mov byte [rbp + 0x10], 0
mov rax, qword [rbp + 8]
cmp rax, 0x10
jb 0x18000b089
inc rax
mov rcx, qword [rbp - 0x10]
cmp rax, 0x1000
jb 0x18000b084
test cl, 0x1f
jne 0x18000b16e
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x18000b168
sub rcx, rax
cmp rcx, 8
jb 0x18000b162
cmp rcx, 0x27
ja 0x18000b15c
mov rcx, rax
call fcn.180033ed0
lea rbx, [r13 + 2]
mov r9d, 2
mov r8, rbx
lea rdx, [0x180058978]
lea rcx, [rbp - 0x50]
call fcn.18000bfe0
mov r13, rax
mov rax, qword [rbp - 0x18]
cmp rax, 8
jb 0x18000b0ff
inc rax
mov rcx, qword [rbp - 0x30]
cmp rax, rsi
ja 0x18000b18c
add rax, rax
cmp rax, 0x1000
jb 0x18000b0fa
test cl, 0x1f
jne 0x18000b186
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x18000b180
sub rcx, rax
cmp rcx, 8
jb 0x18000b17a
cmp rcx, 0x27
ja 0x18000b174
mov rcx, rax
call fcn.180033ed0
cmp r13, 0xffffffffffffffff
jmp 0x18000adc5
call fcn.18003835c
int3
call fcn.18003835c
int3
call fcn.18003835c
int3
call fcn.18003835c
int3
call fcn.18003835c
nop
call fcn.18003835c
int3
call fcn.18003835c
int3
call fcn.18003835c
int3
call fcn.18003835c
int3
call fcn.18003835c
nop
call fcn.18003835c
int3
call fcn.18003835c
int3
call fcn.18003835c
int3
call fcn.18003835c
nop
call fcn.18003835c
int3
call fcn.18003835c
int3
call fcn.18003835c
int3
call fcn.18003835c
nop
call fcn.18003835c
int3
call fcn.18003835c
int3
call fcn.18003835c
int3
call fcn.18003835c
int3
call fcn.18003835c
int3
mov rax, qword [r12]
mov rbx, qword [rax]
cmp rbx, rax
je 0x18000b317
lea rcx, [rbx + 0x40]
call fcn.18000bf20
cmp rax, 0xffffffffffffffff
je 0x18000b21f
or r9, 0xffffffffffffffff
mov r8, rax
lea rdx, [rbp - 0x30]
lea rcx, [rbx + 0x40]
call fcn.18000be20
mov rdx, rax
lea rcx, [rbx + 0x40]
call fcn.1800091e0
mov rax, qword [rbp - 0x18]
cmp rax, 0x10
jb 0x18000b21f
inc rax
mov rcx, qword [rbp - 0x30]
cmp rax, 0x1000
jb 0x18000b21a
test cl, 0x1f
jne 0x18000b2f9
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x18000b2f3
sub rcx, rax
cmp rcx, 8
jb 0x18000b2ed
cmp rcx, 0x27
ja 0x18000b2e7
mov rcx, rax
call fcn.180033ed0
lea rcx, [rbx + 0x40]
call fcn.18000be60
cmp rax, 0xffffffffffffffff
je 0x18000b294
lea r9, [rax + 1]
xor r8d, r8d
lea rdx, [rbp - 0x30]
lea rcx, [rbx + 0x40]
call fcn.18000be20
mov rdx, rax
lea rcx, [rbx + 0x40]
call fcn.1800091e0
mov rax, qword [rbp - 0x18]
cmp rax, 0x10
jb 0x18000b294
inc rax
mov rcx, qword [rbp - 0x30]
cmp rax, 0x1000
jb 0x18000b28f
test cl, 0x1f
jne 0x18000b311
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x18000b30b
sub rcx, rax
cmp rcx, 8
jb 0x18000b305
cmp rcx, 0x27
ja 0x18000b2ff
mov rcx, rax
call fcn.180033ed0
cmp byte [rbx + 0x19], 0
jne 0x18000b2de
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x18000b2be
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x18000b2de
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x18000b2b0
jmp 0x18000b2de
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x18000b2db
cmp rbx, qword [rax + 0x10]
jne 0x18000b2db
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x18000b2c8
mov rbx, rax
cmp rbx, qword [r12]
jmp 0x18000b19c
call fcn.18003835c
int3
call fcn.18003835c
int3
call fcn.18003835c
int3
call fcn.18003835c
int3
call fcn.18003835c
int3
call fcn.18003835c
int3
call fcn.18003835c
int3
call fcn.18003835c
nop
mov rax, qword [rbp - 0x38]
cmp rax, 8
jb 0x18000b37c
inc rax
mov rcx, qword [rbp - 0x50]
cmp rax, rsi
jbe 0x18000b333
call fcn.18003835c
int3
add rax, rax
cmp rax, 0x1000
jb 0x18000b377
test byte [rbp - 0x50], 0x1f
je 0x18000b34a
call fcn.18003835c
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x18000b359
call fcn.18003835c
int3
sub rcx, rax
cmp rcx, 8
jae 0x18000b368
call fcn.18003835c
int3
cmp rcx, 0x27
jbe 0x18000b374
call fcn.18003835c
int3
mov rcx, rax
call fcn.180033ed0
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.180033e70
mov rbx, qword [rsp + 0x190]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret