Function at 0x18005cff0
Capabilities:
Read http header

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1800b0070]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov r15, rdx
mov rdi, rcx
xor ebx, ebx
mov dword [rsp + 0x50], ebx
mov r14d, ebx
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rbx + 0x16]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x18005d0cf
test eax, eax
jg 0x18005d066
mov ebx, eax
jmp 0x18005d06f
movzx ebx, ax
or ebx, 0x80070000
lea rcx, [0x180002040]
lea rax, [0x180002050]
test ebx, ebx
cmovs rax, rcx
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x38], rax
lea rax, [0x180011f30]
mov r9d, 0x43d
mov qword [rsp + 0x30], rax
lea rax, [0x180002090]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
lea r8, [0x180011f50]
lea rdx, [0x18000fa90]
mov ecx, 1
call sym.StorageClientLib.dll_griteLog
jmp 0x18005d408
mov ecx, dword [rsp + 0x50]
shr rcx, 1
mov eax, 2
mul rcx
mov r12, 0xffffffffffffffff
cmovo rax, r12
lea rdx, [0x1800b1510]
mov rcx, rax
call fcn.18003b8e8
mov r14, rax
test rax, rax
jne 0x18005d14c
mov ebx, 0x8007000e
mov dword [rsp + 0x38], ebx
lea rax, [0x18000ab10]
mov qword [rsp + 0x30], rax
lea rax, [0x180001ef0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov r9d, 0x440
lea r8, [0x180011f50]
lea rdx, [0x18000fa90]
lea ecx, [r12 + 2]
call sym.StorageClientLib.dll_griteLog
jmp 0x18005d408
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9, r14
xor r8d, r8d
lea edx, [r8 + 0x16]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x18005d1b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x18005d180
mov ebx, eax
jmp 0x18005d189
movzx ebx, ax
or ebx, 0x80070000
lea rcx, [0x180002040]
lea rax, [0x180002050]
test ebx, ebx
cmovs rax, rcx
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x38], rax
lea rax, [0x180011fc0]
mov r9d, 0x449
jmp 0x18005d099
lea rdx, [0x180012004]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_wcsstr]
mov rsi, rax
test rax, rax
je 0x18005d408
nop dword [rax]
nop dword [rax + rax]
add rsi, 4
mov eax, dword [rsp + 0x50]
lea rcx, [r14 + rax*2]
cmp rsi, rcx
jae 0x18005d408
lea rdx, [0x18001200c]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_wcsstr]
mov rdi, rax
test rax, rax
je 0x18005d408
mov word [rax], bx
mov qword [rbp + 0x10], 7
mov qword [rbp + 8], rbx
mov word [rbp - 8], bx
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], rbx
mov word [rsp + 0x78], bx
mov r8, r12
nop dword [rax + rax]
inc r8
cmp word [rsi + r8*2], 0
jne 0x18005d240
mov rdx, rsi
lea rcx, [rbp - 0x10]
call fcn.180046e10
lea rdx, [0x180012004]
lea rcx, [rdi + 4]
call qword [sym.imp.msvcrt.dll_wcsstr]
mov rsi, rax
test rax, rax
je 0x18005d273
mov word [rax], bx
mov r8, r12
nop word [rax + rax]
inc r8
cmp word [rdi + r8*2 + 4], 0
jne 0x18005d280
lea rdx, [rdi + 4]
lea rcx, [rsp + 0x70]
call fcn.180046e10
mov qword [rbp - 0x40], 7
mov qword [rbp - 0x48], rbx
mov word [rbp - 0x58], bx
mov r9, r12
xor r8d, r8d
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x60]
call fcn.18003e0a0
nop
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], rbx
mov word [rbp - 0x30], bx
mov r9, r12
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x38]
call fcn.18003e0a0
nop
mov qword [rbp + 0x40], 7
mov qword [rbp + 0x38], rbx
mov word [rbp + 0x28], bx
mov r9, r12
xor r8d, r8d
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x20]
call fcn.18003e0a0
nop
mov qword [rbp + 0x68], 7
mov qword [rbp + 0x60], rbx
mov word [rbp + 0x50], bx
mov r9, r12
xor r8d, r8d
lea rdx, [rbp - 0x38]
lea rcx, [rbp + 0x48]
call fcn.18003e0a0
nop
lea r8, [rbp + 0x20]
lea rdx, [rsp + 0x60]
mov rcx, r15
call fcn.180054490
nop
cmp qword [rbp + 0x68], 8
jb 0x18005d34d
mov rcx, qword [rbp + 0x50]
call sub.msvcrt.dll_free
mov qword [rbp + 0x68], 7
mov qword [rbp + 0x60], rbx
mov word [rbp + 0x50], bx
cmp qword [rbp + 0x40], 8
jb 0x18005d36d
mov rcx, qword [rbp + 0x28]
call sub.msvcrt.dll_free
mov qword [rbp + 0x40], 7
mov qword [rbp + 0x38], rbx
mov word [rbp + 0x28], bx
cmp qword [rbp - 0x18], 8
jb 0x18005d38d
mov rcx, qword [rbp - 0x30]
call sub.msvcrt.dll_free
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], rbx
mov word [rbp - 0x30], bx
cmp qword [rbp - 0x40], 8
jb 0x18005d3ad
mov rcx, qword [rbp - 0x58]
call sub.msvcrt.dll_free
mov qword [rbp - 0x40], 7
mov qword [rbp - 0x48], rbx
mov word [rbp - 0x58], bx
cmp qword [rbp - 0x70], 8
jb 0x18005d3ce
mov rcx, qword [rsp + 0x78]
call sub.msvcrt.dll_free
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], rbx
mov word [rsp + 0x78], bx
cmp qword [rbp + 0x10], 8
jb 0x18005d3ef
mov rcx, qword [rbp - 8]
call sub.msvcrt.dll_free
mov qword [rbp + 0x10], 7
mov qword [rbp + 8], rbx
mov word [rbp - 8], bx
test rsi, rsi
jne 0x18005d1e0
mov rcx, r14
call sub.msvcrt.dll_free
mov eax, ebx
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.18003b8c0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret