Function at 0x18004dfb0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x2b0
mov rax, qword [0x1801681b0]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rdx
mov ecx, dword [0x180170814]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x1801719dc], ecx
jle 0x18004e084
lea rcx, [0x1801719dc]
call fcn.1800e8598
cmp dword [0x1801719dc], 0xffffffff
jne 0x18004e084
xor edx, edx
mov r8d, 0x198
lea rcx, [rsp + 0x100]
call fcn.1800eaed0
mov ecx, 0x202
lea rdx, [rsp + 0x100]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x18004e28d
movzx eax, word [rsp + 0x100]
cmp al, 2
jne 0x18004e2b6
shr ax, 8
cmp al, 2
jne 0x18004e2b6
lea rcx, [0x180123e00]
call fcn.1800e8a10
nop
lea rcx, [0x1801719dc]
call fcn.1800e8538
mov ecx, 0x68
call fcn.1800e8390
mov qword [rsp + 0x20], rax
mov rcx, rax
call fcn.180055a90
nop
mov qword [rsi], rax
xor ebp, ebp
mov qword [rsi + 8], rbp
mov qword [rsi + 0x10], rbp
mov rax, qword [rbx]
mov qword [rsi + 8], rax
mov rax, qword [rbx + 8]
mov qword [rsi + 0x10], rax
mov qword [rbx], rbp
mov qword [rbx + 8], rbp
lea rcx, [rsi + 0x18]
lea edx, [rbp + 2]
call fcn.1800c64bc
nop
lea rdx, [rsi + 0x68]
mov qword [rsp + 0x20], rdx
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x180094f11.0]
nop
mov qword [rsi + 0x80], rbp
lea rcx, [rsi + 0x88]
lea edx, [rbp + 2]
call fcn.1800c64bc
nop
lea rdx, [rsi + 0xd8]
mov qword [rsp + 0x20], rdx
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x180094f11.0]
nop
mov qword [rsi + 0xf0], rbp
mov qword [rsi + 0xf8], rbp
mov qword [rsi + 0x100], rbp
mov qword [rsi + 0x108], rbp
mov qword [rsi + 0x110], rbp
lea r14, [rsi + 0x118]
mov qword [r14], rbp
mov qword [r14 + 8], rbp
mov qword [r14 + 0x10], rbp
lea rdi, [rsi + 0x130]
mov qword [rdi], rbp
mov qword [rdi + 8], rbp
mov qword [rdi + 0x10], rbp
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rax, qword [rax]
call qword [case.0x180094f11.0]
mov qword [rsi + 0x80], rax
lea rcx, vtable.std::_Func_impl_no_alloc_class__lambda_22887fd5efc633d6b0834b91e0a0a036___void__enum_DispatchReason_.0
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rsi
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x70], rcx
lea r8, [rsp + 0x38]
mov rdx, rax
mov rcx, qword [rsi + 8]
call fcn.180049f70
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x180094f11.0]
mov qword [rsi + 0xf0], rax
lea rcx, vtable.std::_Func_impl_no_alloc_class__lambda_4d04f936bdc297962980d7967f72b76d___void__enum_DispatchReason_.0
mov qword [rsp + 0x78], rcx
mov qword [rsp + 0x80], rsi
lea rcx, [rsp + 0x78]
mov qword [rsp + 0xb0], rcx
lea r8, [rsp + 0x78]
mov rdx, rax
mov rcx, qword [rsi + 8]
call fcn.180049f70
mov rax, qword [r14 + 0x10]
sub rax, qword [r14]
sar rax, 2
cmp rax, 5
jae 0x18004e205
mov rcx, r14
call fcn.18004fb40
mov rax, qword [rdi + 0x10]
sub rax, qword [rdi]
sar rax, 2
cmp rax, 5
jae 0x18004e21f
mov rcx, rdi
call fcn.18004fb40
nop
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x18004e262
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x18004e262
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x180094f11.0]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x18004e262
mov rdx, qword [rbx]
mov rcx, rbx
mov rax, qword [rdx + 8]
call qword [case.0x180094f11.0]
mov rax, rsi
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.1800e8370
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
or eax, 0xe0f00000
mov edx, eax
lea rcx, [rsp + 0xb8]
call fcn.180043130
lea rdx, [0x1801667d0]
lea rcx, [rsp + 0xb8]
call fcn.1800ea6b0
int3
lea rdx, str.Failed_to_initialize_required_WSA_library
lea rcx, [rsp + 0xd8]
call fcn.180054910
lea rdx, [0x1801667d0]
lea rcx, [rsp + 0xd8]
call fcn.1800ea6b0
int3