Function at 0x1400c8190
Capabilities:
Initialize winsock library

Disassembly:
push r12
sub rsp, 0x460
mov rax, qword [0x140209b48]
xor rax, rsp
mov qword [rsp + 0x440], rax
cmp byte [reloc.WS2_32.dll_accept], 0
mov r12, rcx
je 0x1400c8543
lea rcx, [rsp + 0x60]
call fcn.1400012c0
lea rcx, [rsp + 0x60]
call fcn.140175fb0
cmp qword [0x14020b060], 0
jne 0x1400c850c
lea rdx, [rsp + 0x2a0]
mov cx, 0x101
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400c84eb
mov ecx, 0x2a0
mov qword [rsp + 0x478], rbx
call fcn.1400ce030
xor edx, edx
mov r8d, 0x2a0
mov rcx, rax
mov rbx, rax
mov qword [0x14020b060], rax
call fcn.1401a6e60
lea r11, str.__title__r_n_link_rel_stylesheet__href__main.css__type_text_css___r_n_link_rel_shortcut_icon__href__favicon.ico__type_image_x_icon___r_n__head__r_n_body_
lea rdx, [rbx + 0x88]
mov r8d, 0x22
nop
nop
nop
mov rcx, qword [r11 - 8]
add rdx, 0x10
add r11, 0x10
sub r8, 1
mov qword [rdx - 0x18], rcx
mov rcx, qword [r11 - 0x10]
mov qword [rdx - 0x10], rcx
jne 0x1400c8240
mov rcx, qword [0x14020aea0]
cmp byte [rcx], r8b
je 0x1400c8342
mov qword [rsp + 0x480], rbp
call fcn.140173bd0
test rax, rax
mov rbp, rax
je 0x1400c8333
lea rdx, str.HTTP_SERVER_STRINGS
mov rcx, rax
mov qword [rsp + 0x488], rsi
call fcn.1400c8730
test rax, rax
mov rsi, rax
je 0x1400c831a
mov qword [rsp + 0x458], rdi
mov ebx, 0x80
mov qword [rsp + 0x450], r13
lea edi, [rbx - 0x3c]
lea r13, str.HEAD_BEGIN
nop
nop
nop
mov rdx, qword [r13 + rbx - 0x80]
xor r8d, r8d
mov rcx, rsi
call fcn.1400c86a0
test rax, rax
je 0x1400c82f8
mov rcx, rax
call fcn.14016bb20
mov rcx, qword [0x14020b060]
mov qword [rbx + rcx], rax
add rbx, 8
sub rdi, 1
jne 0x1400c82d0
mov rcx, rsi
call fcn.1400c85f0
mov r13, qword [rsp + 0x450]
mov rdi, qword [rsp + 0x458]
mov rcx, rbp
call fcn.1400ce0b0
mov rbx, qword [0x14020b060]
mov rsi, qword [rsp + 0x488]
jmp 0x1400c833a
mov rbx, qword [0x14020b060]
mov rbp, qword [rsp + 0x480]
mov eax, dword [0x1401f9cf0]
mov dword [rbx + 0x28], eax
mov rcx, qword [0x14020ae98]
call fcn.14016bb20
mov rcx, qword [0x14020b060]
mov qword [rcx + 0x30], rax
call fcn.1400f2550
lea r8, [0x1400c7d50]
xor r9d, r9d
xor edx, edx
mov rcx, rax
call fcn.140016ee0
mov rcx, qword [0x14020b060]
xor ebx, ebx
mov qword [rcx + 0x38], rax
lea r8, [0x1400c7fd0]
lea rdx, str.EVERYTHING_HTTP_SERVER
xor ecx, ecx
xor r9d, r9d
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call fcn.1400d4b90
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x58], rbx
lea r8, str.EVERYTHING_HTTP_SERVER
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
lea rdx, str.EVERYTHING_HTTP_SERVER
xor r9d, r9d
xor ecx, ecx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call fcn.1400d4cf0
mov rcx, qword [0x14020b060]
mov qword [rcx + 0x10], rax
movzx eax, word [rsp + 0x2a0]
cmp al, 1
je 0x1400c8433
shr ax, 8
cmp al, 1
je 0x1400c8433
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rdx, qword [0x1401fd5f8]
lea rcx, [rsp + 0x60]
mov rdx, qword [rdx + 0x22d8]
mov r8d, eax
call fcn.140176700
jmp 0x1400c84be
mov rax, qword [0x14020ae98]
cmp byte [rax], bl
je 0x1400c84b2
lea rcx, [rsp + 0x180]
call fcn.1400012c0
mov rdx, qword [0x14020ae98]
lea rcx, [rsp + 0x180]
call fcn.140177ec0
test rax, rax
mov rbx, rax
je 0x1400c84a3
nop
nop
nop
mov rdx, qword [rsp + 0x188]
cmp byte [rdx], 0
je 0x1400c848b
lea rcx, [rsp + 0x60]
call fcn.1400c1a50
test eax, eax
je 0x1400c84a3
lea rcx, [rsp + 0x180]
mov rdx, rbx
call fcn.140177ec0
test rax, rax
mov rbx, rax
jne 0x1400c8470
lea rcx, [rsp + 0x180]
call fcn.140175010
jmp 0x1400c84be
lea rcx, [rsp + 0x60]
xor edx, edx
call fcn.1400c1a50
mov rax, qword [0x14020b060]
mov rbx, qword [rsp + 0x478]
cmp qword [rax + 0x18], 0
je 0x1400c84e4
lea rdx, str.HTTP_server_online._r_n
xor ecx, ecx
call fcn.1400c13d0
jmp 0x1400c8539
call fcn.1400c7c20
jmp 0x1400c850c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rdx, qword [0x1401fd5f8]
lea rcx, [rsp + 0x60]
mov rdx, qword [rdx + 0x2300]
mov r8d, eax
call fcn.140176700
mov rax, qword [rsp + 0x68]
cmp byte [rax], 0
je 0x1400c8539
mov r8, qword [0x1401fd5f8]
mov edx, reloc.WS2_32.dll_recv
mov rcx, r12
mov r9, qword [r8 + 0x2268]
mov r8, qword [r8]
mov qword [rsp + 0x20], rax
call fcn.1400d47d0
lea rcx, [rsp + 0x60]
call fcn.140175010
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1401a6ae0
add rsp, 0x460
pop r12
ret