Function at 0x1400bd210
Capabilities:
Initialize winsock library

Disassembly:
push rdi
sub rsp, 0x450
mov rax, qword [0x14020cc58]
xor rax, rsp
mov qword [rsp + 0x440], rax
cmp byte [reloc.WS2_32.dll_accept], 0
mov rdi, rcx
je 0x1400bd4a8
lea rcx, [rsp + 0x60]
call fcn.14017d460
lea rcx, [rsp + 0x60]
call fcn.140178170
cmp qword [0x14020e120], 0
jne 0x1400bd471
lea rdx, [rsp + 0x2a0]
mov cx, 0x101
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400bd456
lea ecx, [rax + 0x38]
mov qword [rsp + 0x468], rbx
call fcn.1400cf700
xor ecx, ecx
mov qword [0x14020e120], rax
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rcx
mov qword [rax + 0x20], rcx
mov qword [rax + 0x28], rcx
mov qword [rax + 0x30], rcx
mov rcx, qword [0x14020df60]
call fcn.14016dcc0
mov rcx, qword [0x14020e120]
xor ebx, ebx
mov qword [rcx + 0x30], rax
mov rcx, qword [0x14020e120]
mov eax, dword [reloc.WS2_32.dll_setsockopt]
mov dword [rcx + 0x28], eax
lea r8, [0x1400bcd30]
lea rdx, str.EVERYTHING_ETP_SERVER
xor ecx, ecx
xor r9d, r9d
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call fcn.1400d5f10
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x58], rbx
lea r8, str.EVERYTHING_ETP_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_ETP_SERVER
xor r9d, r9d
xor ecx, ecx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call fcn.1400d6070
mov rcx, qword [0x14020e120]
mov qword [rcx + 0x20], rax
movzx ecx, word [rsp + 0x2a0]
cmp cl, 1
je 0x1400bd382
movzx eax, cx
shr ax, 8
cmp al, 1
je 0x1400bd382
mov rdx, qword [0x140200708]
movzx r8d, cl
lea rcx, [rsp + 0x60]
mov rdx, qword [rdx + 0x2308]
movzx r9d, al
call fcn.1401788c0
jmp 0x1400bd40e
mov rax, qword [0x14020df60]
cmp byte [rax], bl
je 0x1400bd402
lea rcx, [rsp + 0x180]
call fcn.14017d460
mov rdx, qword [0x14020df60]
lea rcx, [rsp + 0x180]
call fcn.14017a080
test rax, rax
mov rbx, rax
je 0x1400bd3f3
nop
nop
nop
mov rdx, qword [rsp + 0x188]
cmp byte [rdx], 0
je 0x1400bd3db
lea rcx, [rsp + 0x60]
call fcn.1400b7f90
test eax, eax
je 0x1400bd3f3
lea rcx, [rsp + 0x180]
mov rdx, rbx
call fcn.14017a080
test rax, rax
mov rbx, rax
jne 0x1400bd3c0
lea rcx, [rsp + 0x180]
call fcn.1400012c0
jmp 0x1400bd40e
lea rcx, [rsp + 0x60]
xor edx, edx
call fcn.1400b7f90
mov rax, qword [0x14020e120]
mov rbx, qword [rsp + 0x468]
cmp qword [rax], 0
je 0x1400bd44f
mov r8, qword [rsp + 0x68]
cmp byte [r8], 0
je 0x1400bd43f
lea rdx, str.ETP_server_started__but_with_errors:__s_n
mov ecx, 0xffff0000
call fcn.1400b4010
lea rdx, str.ETP_server_online._r_n
xor ecx, ecx
call fcn.1400b8210
jmp 0x1400bd49e
call fcn.1400bb620
jmp 0x1400bd471
mov rdx, qword [0x140200708]
lea rcx, [rsp + 0x60]
mov r8d, eax
mov rdx, qword [rdx + 0x2300]
call fcn.1401788c0
mov rax, qword [rsp + 0x68]
cmp byte [rax], 0
je 0x1400bd49e
mov r8, qword [0x140200708]
mov edx, reloc.WS2_32.dll_recv
mov rcx, rdi
mov r9, qword [r8 + 0x2260]
mov r8, qword [r8]
mov qword [rsp + 0x20], rax
call fcn.1400d5b50
lea rcx, [rsp + 0x60]
call fcn.1400012c0
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1401a8ec0
add rsp, 0x450
pop rdi
ret