Function at 0x1403b57e0
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x50
mov r15, r8
mov r12d, edx
mov rsi, rcx
call fcn.1403a61a0
movsx r9, byte [rsi + 0x435]
mov r8, qword [rsi + 8]
imul r10, r9, 0x138
mov rbp, qword [r10 + rax + 0x2c0]
add rbp, 0x10
mov qword [rsp + 0x80], rbp
mov eax, dword [rax + 0x7ec]
lea rbx, [rbp - 0x10]
lea rdi, [rbp - 0x200]
add rbx, rax
add rdi, rax
test r8, r8
jne 0x1403b5863
lea r8, str.lws_return_http_status
mov ecx, 1
lea rdx, str._s:_wsi_not_bound_to_vhost_n
call fcn.1403a8a00
mov eax, 1
jmp 0x1403b5bb9
test byte [rsi + 0x420], 2
jne 0x1403b58c4
mov r8, qword [r8 + 0x130]
test r8, r8
je 0x1403b58c4
cmp r12d, 0x194
jne 0x1403b58c4
mov r9, 0xffffffffffffffff
nop dword [rax + rax]
inc r9
cmp byte [r8 + r9], 0
jne 0x1403b5890
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rbx
mov edx, 0x12e
mov qword [rsp + 0x20], rax
mov rcx, rsi
call fcn.1403b5bd0
test eax, eax
jle 0x1403b58c4
xor eax, eax
jmp 0x1403b5bb9
mov qword [rsp + 0x88], r14
lea r8, [rsp + 0x80]
test r15, r15
mov qword [rsp + 0x80], rbp
lea r14, [0x1405d5218]
mov r9, rbx
mov edx, r12d
mov rcx, rsi
cmovne r14, r15
call fcn.1403b5060
test eax, eax
jne 0x1403b5bac
test byte [rsi + 0x41c], 6
lea r15, [0x140581130]
jne 0x1403b5970
test dword [rsi + 0x420], 0x20000000
jne 0x1403b5970
cmp qword [rsi + 0x360], r15
je 0x1403b5970
mov eax, dword [rsi + 0x400]
and eax, 0xf000000
cmp eax, 0x1000000
je 0x1403b5970
mov rdx, qword [str.content_type:]
test rdx, rdx
je 0x1403b5bac
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rbx
mov r9d, 9
mov qword [rsp + 0x20], rax
lea r8, str.text_html
mov rcx, rsi
call fcn.1403b54f0
jmp 0x1403b599b
mov r9d, 9
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x80]
mov rcx, rsi
lea r8, str.text_html
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0x13]
call fcn.1403c0970
test eax, eax
jne 0x1403b5bac
mov r9d, r12d
mov qword [rsp + 0x20], r14
lea r8, str._html__head__meta_charsetutf_8_http_equiv_Content_Language__content_en____link_rel_stylesheet__type_text_css__href__error.css_____head__body__h1__u__h1__s__body___html_
mov edx, 0x1fe
mov rcx, rdi
call fcn.1403ac8d0
mov r9d, eax
mov r14d, eax
lea r8, [0x1405d5550]
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea rcx, [rsp + 0x30]
call fcn.1403ac8d0
test byte [rsi + 0x41c], 6
jne 0x1403b5a41
test dword [rsi + 0x420], 0x20000000
jne 0x1403b5a41
cmp qword [rsi + 0x360], r15
je 0x1403b5a41
mov ecx, dword [rsi + 0x400]
and ecx, 0xf000000
cmp ecx, 0x1000000
je 0x1403b5a41
mov rdx, qword [str.content_length:]
test rdx, rdx
je 0x1403b5bac
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rcx
lea r8, [rsp + 0x30]
mov rcx, rsi
mov r9d, eax
call fcn.1403b54f0
jmp 0x1403b5a68
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rcx
lea r8, [rsp + 0x30]
mov rcx, rsi
mov r9d, eax
mov edx, 0x1b
call fcn.1403c0970
test eax, eax
jne 0x1403b5bac
test byte [rsi + 0x41c], 6
jne 0x1403b5ae3
test dword [rsi + 0x420], 0x20000000
jne 0x1403b5ae3
cmp qword [rsi + 0x360], r15
je 0x1403b5ae3
mov eax, dword [rsi + 0x400]
and eax, 0xf000000
cmp eax, 0x1000000
je 0x1403b5ae3
mov rax, qword [rsp + 0x80]
sub rbx, rax
cmp rbx, 3
jl 0x1403b5bac
mov byte [rax], reloc.WS2_32.dll_listen
mov rax, qword [rsp + 0x80]
inc rax
mov qword [rsp + 0x80], rax
mov byte [rax], 0xa
mov rcx, qword [rsp + 0x80]
inc rcx
mov qword [rsp + 0x80], rcx
jmp 0x1403b5aeb
mov rcx, qword [rsp + 0x80]
test byte [rsi + 0x41c], 2
je 0x1403b5b7b
sub rcx, rbp
mov r9d, 8
mov r8, rcx
mov rdx, rbp
mov rcx, rsi
call fcn.1403a7f80
mov ecx, dword [rsp + 0x80]
sub ecx, ebp
cmp eax, ecx
jne 0x1403b5bac
mov rcx, r14
lea edx, [r14 + 0x11]
mov qword [rsi + 0x90], rcx
lea r8, str.pending_status_body
mov qword [rsi + 0x98], rcx
xor ecx, ecx
call fcn.1403aacd0
mov qword [rsi + 0xc0], rax
mov rcx, rax
test rax, rax
jne 0x1403b5b57
lea eax, [rcx - 1]
jmp 0x1403b5bb1
sub rcx, rdi
nop word [rax + rax]
movzx eax, byte [rdi]
mov byte [rcx + rdi + 0x10], al
lea rdi, [rdi + 1]
test al, al
jne 0x1403b5b60
mov rcx, rsi
call fcn.1403b6140
xor eax, eax
jmp 0x1403b5bb1
mov ebx, ecx
mov r8, r14
sub ebx, ebp
mov rdx, rdi
add ebx, r14d
call fcn.1405750e0
mov r8d, ebx
mov r9d, 3
mov rdx, rbp
mov rcx, rsi
call fcn.1403a7f80
xor ecx, ecx
cmp eax, ebx
setne cl
mov eax, ecx
jmp 0x1403b5bb1
mov eax, 1
mov r14, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret