Function at 0x140009e60
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
cmp byte [rcx + 0x170], 0
mov r13, rcx
mov rbx, qword [rcx + 0x20]
mov qword [rsp + 0x90], rbx
mov byte [rcx + 0x11b], 1
jne case.0x140009eda.10
xor r12d, r12d
lea r15, [0x1400b8af4]
movsxd rax, dword [r13 + 0x120]
lea rdi, [0x1400b92e8]
lea r14, [0x1400b8944]
mov esi, 9
lea rdx, [0x140000000]
mov ebp, 0x1af
cmp eax, 0x16
ja case.0x140009eda.10
mov ecx, dword [rdx + rax*4 + 0xaeac]
add rcx, rdx
jmp rcx
mov r8, qword [r13 + 0xb0]
test r8, r8
je 0x140009f53
mov r14, qword [r13 + 0x78]
lea rdx, [r8 - 1]
mov rax, r12
test rdx, rdx
je 0x140009f17
nop dword [rax + rax]
movzx ecx, byte [r14 + rax]
cmp cl, 0xd
je 0x140009f17
cmp cl, 0xa
je 0x140009f17
inc rax
cmp rax, rdx
jb 0x140009f00
cmp rax, rdx
jne 0x140009f5f
cmp byte [r14 + rax], 0xa
je 0x140009f5f
cmp r8, qword [r13 + 0xa8]
jne 0x140009f53
mov rcx, r13
call fcn.140007360
test eax, eax
jne 0x140009f53
cmp qword [r13 + 0x60], r12
lea r8, [0x1400b9aa0]
mov edx, 0x19e
mov rcx, r13
cmovne edx, ebp
call fcn.140008330
cmp dword [r13 + 0x120], r12d
jmp 0x14000a679
cmp byte [r14 + rax], 0xd
lea rdi, [r14 + rax]
mov rsi, rax
jne 0x140009f79
cmp byte [rdi + 1], 0xa
jne 0x140009f79
mov byte [rdi], r12b
inc rax
mov byte [r14 + rax], r12b
inc rax
add qword [r13 + 0x78], rax
sub qword [r13 + 0xa8], rax
sub qword [r13 + 0xb0], rax
test r14, r14
je 0x140009f53
cmp byte [r14], r12b
je 0x140009f53
mov r15, qword [r13 + 0x20]
mov r8, rsi
mov edx, 0x20
mov rcx, r14
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x14000a0ed
mov byte [rax], r12b
inc rbx
mov qword [r13 + 0x58], r14
cmp byte [rbx], 0x20
jne 0x140009fe1
mov rax, rbx
sub rax, r14
cmp rax, rsi
jae 0x140009fe1
inc rbx
inc rax
cmp byte [rbx], 0x20
je 0x140009fd1
mov rax, rbx
sub rax, r14
cmp rax, rsi
jne 0x14000a006
lea rax, [0x1400c1562]
mov rbx, r12
mov qword [r13 + 0x68], rax
lea rbp, [0x1400c1561]
mov rdi, r12
jmp 0x14000a068
cmp byte [rdi - 1], 0x20
lea r8, [rdi - 1]
mov rbp, rbx
jne 0x14000a027
cmp r8, rbx
jbe 0x14000a021
dec r8
cmp byte [r8], 0x20
je 0x14000a013
cmp byte [r8], 0x20
je 0x14000a035
cmp r8, rbx
jbe 0x14000a046
dec r8
cmp byte [r8], 0x20
jne 0x14000a027
cmp r8, rbx
jbe 0x14000a046
mov byte [r8], r12b
lea rax, [r8 + 1]
sub r8, rbx
jmp 0x14000a054
sub r14, rbx
lea rax, [0x1400c1563]
lea r8, [rsi + r14]
mov edx, 0x3f
mov qword [r13 + 0x68], rax
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rdi, rax
cmp qword [r15 + 0x90], r12
je 0x14000a091
mov byte [r13 + 0x10c], 1
mov r8, r13
mov rcx, qword [r15 + 0x98]
mov rdx, rbp
call qword [r15 + 0x90]
mov qword [r13 + 0x48], rax
test rdi, rdi
je 0x14000a0b9
lea rax, [rsp + 0x88]
mov byte [rdi], r12b
lea r8, [rdi + 1]
mov qword [rsp + 0x20], rax
lea r9, [fcn.140008860]
mov rcx, r13
call fcn.14000f5e0
test rbx, rbx
je 0x14000a0d2
mov rcx, qword [r15 + 0xa8]
mov r8, rbx
mov rdx, r13
call qword [r15 + 0xa0]
mov qword [r13 + 0x60], rbp
lea r15, [0x1400b8af4]
mov dword [r13 + 0x120], 1
jmp 0x14000abee
mov edx, 1
mov rcx, r13
call fcn.140006a80
lea r15, [0x1400b8af4]
jmp 0x14000abee
mov r9, qword [r13 + 0xb0]
test r9, r9
je 0x14000a173
mov rdx, qword [r13 + 0x78]
lea r8, [r9 - 1]
mov rax, r12
test r8, r8
je 0x14000a138
movzx ecx, byte [rdx + rax]
cmp cl, 0xd
je 0x14000a138
cmp cl, 0xa
je 0x14000a138
inc rax
cmp rax, r8
jb 0x14000a122
cmp rax, r8
jne 0x14000a180
cmp byte [rdx + rax], 0xa
je 0x14000a180
cmp r9, qword [r13 + 0xa8]
jne 0x14000a173
mov rcx, r13
call fcn.140007360
test eax, eax
jne 0x14000a173
cmp qword [r13 + 0x60], r12
lea r8, [0x1400b9aa0]
mov edx, 0x19e
mov rcx, r13
cmovne edx, ebp
call fcn.140008330
cmp dword [r13 + 0x120], 1
jmp 0x14000a679
cmp byte [rdx + rax], 0xd
jne 0x14000a194
cmp byte [rdx + rax + 1], 0xa
jne 0x14000a194
mov byte [rdx + rax], r12b
inc rax
mov byte [rdx + rax], r12b
inc rax
add qword [r13 + 0x78], rax
sub qword [r13 + 0xa8], rax
sub qword [r13 + 0xb0], rax
test rdx, rdx
je 0x14000a173
cmp byte [rdx], r12b
jne 0x14000a1d2
sub rdx, qword [r13 + 0x78]
mov qword [r13 + 0xd0], rdx
mov dword [r13 + 0x120], 3
jmp 0x14000abee
mov rcx, r13
call fcn.1400091b0
test eax, eax
je 0x14000ac08
mov dword [r13 + 0x120], 2
jmp 0x14000abee
mov r8, qword [r13 + 0xb0]
test r8, r8
je 0x14000a261
mov rbx, qword [r13 + 0x78]
lea rdx, [r8 - 1]
mov rax, r12
test rdx, rdx
je 0x14000a226
nop
movzx ecx, byte [rbx + rax]
cmp cl, 0xd
je 0x14000a226
cmp cl, 0xa
je 0x14000a226
inc rax
cmp rax, rdx
jb 0x14000a210
cmp rax, rdx
jne 0x14000a26e
cmp byte [rbx + rax], 0xa
je 0x14000a26e
cmp r8, qword [r13 + 0xa8]
jne 0x14000a261
mov rcx, r13
call fcn.140007360
test eax, eax
jne 0x14000a261
cmp qword [r13 + 0x60], r12
lea r8, [0x1400b9aa0]
mov edx, 0x19e
mov rcx, r13
cmovne edx, ebp
call fcn.140008330
cmp dword [r13 + 0x120], 2
jmp 0x14000a679
cmp byte [rbx + rax], 0xd
jne 0x14000a282
cmp byte [rbx + rax + 1], 0xa
jne 0x14000a282
mov byte [rbx + rax], r12b
inc rax
mov byte [rbx + rax], r12b
inc rax
add qword [r13 + 0x78], rax
sub qword [r13 + 0xa8], rax
sub qword [r13 + 0xb0], rax
test rbx, rbx
je 0x14000a261
mov r8d, 1
mov rdx, rbx
mov rcx, r13
call fcn.140009290
test eax, eax
je 0x14000abee
cmp byte [rbx], r12b
jne 0x14000abee
sub rbx, qword [r13 + 0x78]
mov qword [r13 + 0xd0], rbx
mov dword [r13 + 0x120], 3
jmp 0x14000abee
mov rcx, r13
call fcn.1400093e0
cmp dword [r13 + 0x120], 0x13
je 0x14000abee
mov dword [r13 + 0x120], 4
cmp byte [r13 + 0x170], r12b
je 0x14000abee
cmp byte [r13 + 0x170], 0
jne 0x14000ae7e
mov rbx, qword [r13 + 0x100]
test rbx, rbx
je 0x14000ae7e
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rcx, rax
movabs rax, 0x624dd2f1a9fbe77
sub rcx, qword [0x1400c15c0]
mul rcx
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 9
sub rcx, qword [r13 + 0xf8]
cmp rbx, rcx
jge 0x14000ae7e
mov edx, 2
mov rcx, r13
call fcn.140006a80
jmp 0x14000ae86
mov rcx, r13
call fcn.140008cc0
cmp dword [r13 + 0x120], 0x13
je 0x14000abee
mov rcx, r13
call fcn.140006960
test eax, eax
jne 0x14000ad20
cmp qword [r13 + 0x38], r12
je 0x14000a445
mov rbx, qword [r13 + 0x58]
mov r9, r15
movzx ecx, byte [rbx]
movzx r8d, cl
movzx r11d, cl
test cl, cl
je 0x14000a3ee
mov r10, rbx
sub r10, r15
movzx edx, byte [r9]
cmp cl, dl
je 0x14000a3e1
lea eax, [rcx - 0x41]
cmp al, 0x19
ja 0x14000a3d3
add cl, 0x20
lea eax, [rdx - 0x41]
cmp al, 0x19
ja 0x14000a3dd
add dl, 0x20
cmp cl, dl
jne 0x14000a3f3
movzx ecx, byte [r10 + r9 + 1]
inc r9
test cl, cl
jne 0x14000a3c1
cmp byte [r9], r12b
je 0x14000a436
mov rdx, r14
test r11b, r11b
je 0x14000a431
sub rbx, r14
nop
movzx ecx, byte [rdx]
cmp r8b, cl
je 0x14000a423
lea eax, [r8 - 0x41]
cmp al, 0x19
ja 0x14000a414
add r8b, 0x20
lea eax, [rcx - 0x41]
cmp al, 0x19
ja 0x14000a41e
add cl, 0x20
cmp r8b, cl
jne 0x14000a445
movzx r8d, byte [rdx + rbx + 1]
inc rdx
test r8b, r8b
jne 0x14000a400
cmp byte [rdx], r12b
jne 0x14000a445
mov qword [r13 + 0xd8], r12
mov byte [r13 + 0x119], 1
cmp qword [r13 + 0xd8], r12
mov eax, 6
cmove eax, esi
mov dword [r13 + 0x120], eax
cmp byte [r13 + 0x170], r12b
jne case.0x140009eda.10
jmp 0x14000abee
cmp qword [r13 + 0xe8], 0x19
jne case.0x140009eda.10
mov dword [r13 + 0x120], 6
mov dword [rsp + 0x80], r12d
jmp 0x14000a95f
cmp qword [r13 + 0xb0], r12
je 0x14000a4b2
mov rcx, r13
call fcn.140008d40
cmp dword [r13 + 0x120], 0x13
je 0x14000abee
mov rax, qword [r13 + 0xd8]
test rax, rax
je 0x14000a4e2
cmp rax, 0xffffffffffffffff
jne case.0x140009eda.10
cmp qword [r13 + 0xb0], r12
jne case.0x140009eda.10
cmp byte [r13 + 0x119], r12b
je case.0x140009eda.10
cmp byte [r13 + 0x12c], r12b
je 0x14000a6f2
cmp byte [r13 + 0x119], r12b
jne 0x14000a6f2
mov dword [r13 + 0x120], 7
jmp 0x14000a6f9
mov r9, qword [r13 + 0xb0]
test r9, r9
je 0x14000a581
mov rdx, qword [r13 + 0x78]
lea r8, [r9 - 1]
mov rax, r12
test r8, r8
je 0x14000a546
nop dword [rax + rax]
movzx ecx, byte [rdx + rax]
cmp cl, 0xd
je 0x14000a546
cmp cl, 0xa
je 0x14000a546
inc rax
cmp rax, r8
jb 0x14000a530
cmp rax, r8
jne 0x14000a58e
cmp byte [rdx + rax], 0xa
je 0x14000a58e
cmp r9, qword [r13 + 0xa8]
jne 0x14000a581
mov rcx, r13
call fcn.140007360
test eax, eax
jne 0x14000a581
cmp qword [r13 + 0x60], r12
lea r8, [0x1400b9aa0]
mov edx, 0x19e
mov rcx, r13
cmovne edx, ebp
call fcn.140008330
cmp dword [r13 + 0x120], 7
jmp 0x14000a679
cmp byte [rdx + rax], 0xd
jne 0x14000a5a2
cmp byte [rdx + rax + 1], 0xa
jne 0x14000a5a2
mov byte [rdx + rax], r12b
inc rax
mov byte [rdx + rax], r12b
inc rax
add qword [r13 + 0x78], rax
sub qword [r13 + 0xa8], rax
sub qword [r13 + 0xb0], rax
test rdx, rdx
je 0x14000a581
cmp byte [rdx], r12b
jne 0x14000a5de
mov dword [r13 + 0x120], esi
cmp byte [r13 + 0x170], r12b
jne case.0x140009eda.10
jmp 0x14000abee
mov rcx, r13
call fcn.1400091b0
test eax, eax
je 0x14000ad61
mov dword [r13 + 0x120], 8
jmp 0x14000abee
mov r8, qword [r13 + 0xb0]
test r8, r8
je 0x14000a671
mov rbx, qword [r13 + 0x78]
lea rdx, [r8 - 1]
mov rax, r12
test rdx, rdx
je 0x14000a636
nop word [rax + rax]
movzx ecx, byte [rbx + rax]
cmp cl, 0xd
je 0x14000a636
cmp cl, 0xa
je 0x14000a636
inc rax
cmp rax, rdx
jb 0x14000a620
cmp rax, rdx
jne 0x14000a69e
cmp byte [rbx + rax], 0xa
je 0x14000a69e
cmp r8, qword [r13 + 0xa8]
jne 0x14000a671
mov rcx, r13
call fcn.140007360
test eax, eax
jne 0x14000a671
cmp qword [r13 + 0x60], r12
lea r8, [0x1400b9aa0]
mov edx, 0x19e
mov rcx, r13
cmovne edx, ebp
call fcn.140008330
cmp dword [r13 + 0x120], 8
jne 0x14000abee
cmp byte [r13 + 0x119], r12b
je case.0x140009eda.10
mov edx, 1
mov rcx, r13
call fcn.140006a80
jmp 0x14000abee
cmp byte [rbx + rax], 0xd
jne 0x14000a6b2
cmp byte [rbx + rax + 1], 0xa
jne 0x14000a6b2
mov byte [rbx + rax], r12b
inc rax
mov byte [rbx + rax], r12b
inc rax
add qword [r13 + 0x78], rax
sub qword [r13 + 0xa8], rax
sub qword [r13 + 0xb0], rax
test rbx, rbx
je 0x14000a671
mov r8d, reloc.WS2_32.dll_recv
mov rdx, rbx
mov rcx, r13
call fcn.140009290
test eax, eax
je 0x14000abee
cmp byte [rbx], r12b
jne 0x14000abee
mov dword [r13 + 0x120], esi
cmp byte [r13 + 0x170], r12b
jne case.0x140009eda.10
jmp 0x14000abee
mov rcx, r13
call fcn.140008cc0
cmp dword [r13 + 0x120], 0x13
je 0x14000abee
cmp qword [r13 + 0x38], r12
je case.0x140009eda.10
mov rcx, r13
call fcn.1400073d0
test eax, eax
jne 0x14000ae0b
lea rdx, [0x1400b8f48]
jmp 0x14000a99d
mov rax, qword [r13 + 0x38]
lea r9, [rsp + 0x80]
mov rcx, qword [r13 + 0x110]
mov edx, 6
mov dword [rsp + 0x80], r12d
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 5]
cmp qword [rax + 0x28], r12
je 0x14000a892
call qword [sym.imp.WS2_32.dll_setsockopt]
mov r11, qword [r13 + 0x20]
mov rsi, qword [r13 + 0x38]
mov dword [r13 + 0x120], reloc.WS2_32.dll_shutdown
test dword [r11 + 0x18c], 0x8000
je 0x14000a9a6
mov r10, qword [rsi]
test r10, r10
je 0x14000a7fc
nop
mov r9, qword [r10 + 8]
mov r8, rdi
movzx ecx, byte [r9]
test cl, cl
je 0x14000a7ef
sub r9, rdi
movzx edx, byte [r8]
cmp cl, dl
je 0x14000a7e2
lea eax, [rcx - 0x41]
cmp al, 0x19
ja 0x14000a7d4
add cl, 0x20
lea eax, [rdx - 0x41]
cmp al, 0x19
ja 0x14000a7de
add dl, 0x20
cmp cl, dl
jne 0x14000a7f4
movzx ecx, byte [r8 + r9 + 1]
inc r8
test cl, cl
jne 0x14000a7c2
cmp byte [r8], r12b
je 0x14000a80b
mov r10, qword [r10]
test r10, r10
jne 0x14000a7b0
lea rdx, str.Invalid_response_for_upgrade:_application_failed_to_set_the_Upgrade_header__n
mov rcx, r11
jmp 0x14000a9a1
cmp qword [r10 + 0x10], r12
je 0x14000a7fc
mov edx, reloc.WS2_32.dll_recv
lea ecx, [rdx - 0xf]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rdi, rax
test rax, rax
je 0x14000a9a6
mov qword [rax], r13
mov rcx, r13
mov rbx, qword [r13 + 0xb0]
mov qword [r13 + 0xb0], r12
mov byte [rax + 9], 1
mov qword [r13 + 0x168], rax
call fcn.140003440
mov rax, qword [r13 + 0x110]
mov rdx, r13
mov r9, qword [r13 + 0x78]
mov r8, qword [r13 + 0x48]
mov rcx, qword [rsi + 0x30]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [rsi + 0x28]
mov rcx, qword [r13 + 0x38]
test rcx, rcx
je 0x14000abee
mov qword [r13 + 0x38], r12
call fcn.14000b390
jmp 0x14000abee
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp byte [r13 + 0x12c], r12b
mov eax, reloc.WS2_32.dll_listen
mov ecx, send
cmovne eax, ecx
mov dword [r13 + 0x120], eax
jmp 0x14000abee
mov rcx, qword [r13 + 0x38]
cmp qword [rcx + 0x18], r12
je 0x14000a8cc
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [r13 + 0x38]
cmp qword [rcx + 0x60], r12
jne 0x14000ae1b
cmp qword [rcx + 0x18], r12
je 0x14000a8ea
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [r13 + 0x120], reloc.WS2_32.dll_recv
jmp 0x14000abee
mov rcx, qword [r13 + 0x38]
cmp qword [rcx + 0x18], r12
je 0x14000a90e
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [r13 + 0x38]
mov rax, qword [rcx + 0x60]
test rax, rax
je 0x14000a8da
cmp qword [r13 + 0xe0], rax
je 0x14000a8da
mov rcx, r13
call fcn.140006c50
mov rcx, qword [r13 + 0x38]
cmp eax, 1
jne 0x14000ae50
cmp qword [rcx + 0x18], r12
je 0x14000a949
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [r13 + 0x120], send
mov dword [rsp + 0x80], 1
mov rcx, qword [r13 + 0x110]
lea r9, [rsp + 0x80]
mov edx, 6
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
jmp 0x14000abee
mov rcx, r13
call fcn.1400073d0
test eax, eax
jne 0x14000a9b8
lea rdx, str.Closing_connection__failed_to_create_response_header__n
mov rcx, qword [r13 + 0x20]
call fcn.14000f5a0
mov edx, 1
mov rcx, r13
call fcn.140006a80
jmp 0x14000abee
cmp byte [r13 + 0x12c], r12b
je 0x14000a9e1
mov rax, qword [r13 + 0xc8]
cmp qword [r13 + 0xc0], rax
je 0x14000a9e1
mov dword [r13 + 0x120], send
jmp 0x14000abee
mov dword [r13 + reloc.WS2_32.dll_select0], 0x12
jmp 0x14000abee
cmp dword [r13 + 0x128], 0x66
jne 0x14000aa18
mov rcx, qword [r13 + 0x38]
mov dword [r13 + 0x120], 4
call fcn.14000b390
mov qword [r13 + 0x38], r12
jmp 0x14000abee
mov rcx, qword [r13 + 0x110]
lea r9, [rsp + 0x80]
mov edx, 6
mov dword [rsp + 0x80], r12d
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [r13 + 0x38]
call fcn.14000b390
mov qword [r13 + 0x38], r12
cmp qword [rbx + 0x70], r12
je 0x14000aa7a
cmp byte [r13 + 0x10c], r12b
je 0x14000aa7a
mov byte [r13 + 0x10c], r12b
lea r8, [r13 + 0x48]
mov rcx, qword [rbx + 0x78]
xor r9d, r9d
mov rdx, r13
call qword [rbx + reloc.WS2_32.dll_WSASetLastError]
cmp dword [r13 + 0x70], 1
jne 0x14000ab3c
cmp byte [r13 + 0x119], r12b
jne 0x14000ab3c
mov rax, qword [r13 + 0x20]
mov rdi, qword [r13 + 0x78]
mov rsi, qword [r13 + 0xb0]
mov rbx, qword [r13 + 0x40]
mov qword [r13 + 0x68], r12
mov dword [r13 + 0x120], r12d
mov qword [r13 + 0x88], r12
mov qword [r13 + 0x90], r12
mov qword [r13 + 0xd0], r12
mov dword [r13 + 0x70], r12d
mov rbp, qword [rax + 0xd8]
shr rbp, 1
test rdi, rdi
je 0x14000aaf3
mov rcx, qword [rbx]
cmp rdi, rcx
je 0x14000aaf3
test rsi, rsi
je 0x14000aaf0
mov r8, rsi
mov rdx, rdi
call sub.VCRUNTIME140.dll_memmove
mov rdi, qword [rbx]
mov r8, qword [rbx + 8]
mov qword [rbx + 0x18], r8
cmp r8, rsi
jbe 0x14000ab10
mov rcx, qword [rbx]
sub r8, rsi
add rcx, rsi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
test rdi, rdi
je 0x14000ab21
lea rax, [rbp + 0xf]
and rax, 0xfffffffffffffff0
mov qword [rbx + 0x10], rax
mov rax, qword [r13 + 0x20]
mov qword [r13 + 0x78], rdi
mov rcx, qword [rax + 0xd8]
shr rcx, 1
mov qword [r13 + 0xa8], rcx
jmp 0x14000ab8d
xor edx, edx
mov rcx, r13
call fcn.140006a80
mov rbx, qword [r13 + 0x40]
test rbx, rbx
je 0x14000ab77
mov rcx, qword [rbx]
cmp dword [rbx + 0x20], r12d
jne 0x14000ab60
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000ab6e
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [r13 + 0x40], r12
mov qword [r13 + 0x78], r12
mov qword [r13 + 0xa8], r12
mov qword [r13 + 0xb0], r12
mov byte [r13 + 0x10c], r12b
mov qword [r13 + 0x48], r12
mov qword [r13 + 0xe8], r12
mov dword [r13 + 0x128], r12d
mov qword [r13 + 0x28], r12
mov qword [r13 + 0x30], r12
mov qword [r13 + 0xe0], r12
mov byte [r13 + 0x12c], r12b
mov qword [r13 + 0x130], r12
mov qword [r13 + 0x138], r12
mov qword [r13 + 0x58], r12
mov qword [r13 + 0x60], r12
mov qword [r13 + 0x80], r12
mov qword [r13 + 0xb8], r12
mov qword [r13 + 0xc0], r12
mov qword [r13 + 0xc8], r12
cmp byte [r13 + 0x170], r12b
jne case.0x140009eda.10
mov rbx, qword [rsp + 0x90]
jmp 0x140009ea1
cmp qword [r13 + 0x68], r12
jne 0x14000ac19
lea rax, str.HTTP_1.0
mov qword [r13 + 0x68], rax
mov rcx, qword [r13 + 0x20]
lea rdx, str.Error_processing_request__HTTP_response_code_is__u____s__._Closing_connection._n
mov dword [r13 + 0x120], esi
mov r8d, 0x190
lea rsi, [0x1400ba670]
mov byte [r13 + 0x119], 1
mov r9, rsi
call fcn.14000f5a0
mov rcx, qword [r13 + 0x38]
test rcx, rcx
je 0x14000ac5a
call fcn.14000b390
mov qword [r13 + 0x38], r12
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rsi + rbx], r12b
jne 0x14000ac60
mov edx, 0x98
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rdi, rax
test rax, rax
je 0x14000acc2
lea rcx, [rax + 0x38]
mov dword [rax + 0x8c], 0xffffffff
mov edx, reloc.WS2_32.dll_recv
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x14000aca9
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000acc2
mov dword [rdi + 0x88], 1
mov r12, rdi
mov qword [rdi + 0x60], rbx
mov qword [rdi + 8], rsi
mov qword [rdi + 0x78], rbx
mov r8, r12
mov edx, 0x190
mov rcx, r13
call fcn.14000af10
mov rcx, r12
call fcn.14000b390
mov rcx, r13
mov dword [r13 + 0x70], 0xffffffff
call fcn.1400073d0
test eax, eax
jne 0x14000ad10
mov rcx, qword [r13 + 0x20]
lea rdx, [0x1400b87e8]
call fcn.14000f5a0
mov edx, 1
mov rcx, r13
call fcn.140006a80
jmp case.0x140009eda.10
mov dword [r13 + 0x120], 0xa
jmp case.0x140009eda.10
mov dword [r13 + 0x120], 5
mov rcx, qword [r13 + 0x110]
lea r9, [rsp + 0x80]
mov edx, 6
mov dword [rsp + 0x80], 1
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
jmp case.0x140009eda.10
cmp qword [r13 + 0x68], r12
jne 0x14000ad72
lea rax, str.HTTP_1.0
mov qword [r13 + 0x68], rax
mov rcx, qword [r13 + 0x20]
lea rdx, str.Error_processing_request__HTTP_response_code_is__u____s__._Closing_connection._n
mov dword [r13 + 0x120], esi
mov r8d, 0x190
lea rsi, str._html__head__title_Request_malformed__title___head__body_Your_HTTP_request_was_syntactically_incorrect.__body___html_
mov byte [r13 + 0x119], 1
mov r9, rsi
call fcn.14000f5a0
mov rcx, qword [r13 + 0x38]
test rcx, rcx
je 0x14000adb3
call fcn.14000b390
mov qword [r13 + 0x38], r12
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rsi + rbx], r12b
jne 0x14000adb7
mov edx, 0x98
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rdi, rax
test rax, rax
je 0x14000acc2
lea rcx, [rax + 0x38]
mov dword [rax + 0x8c], 0xffffffff
mov edx, reloc.WS2_32.dll_recv
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x14000aca9
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000acc2
mov dword [r13 + 0x120], 0xa
jmp 0x14000ad2b
mov rcx, r13
call fcn.140006b30
cmp eax, 1
jne case.0x140009eda.10
mov rcx, qword [r13 + 0x38]
cmp qword [rcx + 0x18], r12
je 0x14000ae40
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [r13 + 0x120], send
jmp 0x14000ad2b
cmp qword [rcx + 0x18], r12
je case.0x140009eda.10
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp case.0x140009eda.10
mov rcx, r13
call fcn.140009c70
xor eax, eax
jmp 0x14000ae93
mov byte [r13 + 0x11b], r12b
jmp 0x14000ae8e
mov rcx, r13
call fcn.140008490
mov byte [r13 + 0x11b], 0
mov eax, 1
mov rbx, qword [rsp + 0x98]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret