Function at 0x14008fd20
Capabilities:
Initialize winsock library

Disassembly:
push rbp
lea rbp, [rsp - 0x130]
sub rsp, 0x230
mov rax, qword [0x14016f8a0]
xor rax, rsp
mov qword [rbp + 0x120], rax
cmp byte [0x140177cf8], 0
jne 0x14008ffbc
mov qword [rsp + 0x240], rbx
call fcn.1400a3910
mov rbx, rax
test rax, rax
je 0x14008fd93
mov r8, qword [rax]
mov edx, 0x402
mov rcx, rax
call qword [rhtons + 8]
cmp eax, 4
jl 0x14008fd93
mov r10, qword [rbx]
lea r9, str.static:_initializing_WinSock
mov edx, 4
mov r8d, 0x402
mov rcx, rbx
call qword [r10]
mov qword [rsp + 0x248], rsi
lea rdx, [rbp - 0x80]
mov ecx, 0x202
mov qword [rsp + 0x250], rdi
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14008fdf9
call fcn.1400a3910
mov rdi, rax
test rax, rax
je 0x140090019
mov r9, qword [rax]
mov edx, 0x402
mov rcx, rax
call qword [r9 + htons]
cmp eax, 1
jl 0x140090019
mov rbx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.static:_WinSock_initialization_failed_with_error__d
mov edx, 1
jmp 0x14009000a
xor r8d, r8d
lea edx, [r8 + 1]
lea ecx, [rdx + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
call fcn.1400a3910
mov rbx, rax
test rax, rax
je 0x14008fe48
mov r8, qword [rax]
mov edx, 0x402
mov rcx, rax
call qword [rhtons + 8]
cmp eax, 4
jl 0x14008fe48
mov r10, qword [rbx]
lea r9, str.static:_loading_WSAID_CONNECTEX_function
mov edx, 4
mov r8d, 0x402
mov rcx, rbx
call qword [r10]
xor esi, esi
mov dword [rsp + 0x58], 0x25a207b9
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rsi
lea r8, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov edx, 0xc8000006
lea rax, [0x140177ce8]
mov dword [rsp + 0x28], 8
lea r9d, [rsi + 0x10]
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov dword [rsp + 0x5c], 0x4660ddf3
mov dword [rsp + 0x60], 0xe576e98e
mov dword [rsp + 0x64], 0x3e06748c
mov dword [rsp + 0x50], esi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x14008feef
call fcn.1400a3910
mov rdi, rax
test rax, rax
je 0x140090019
mov r8, qword [rax]
mov edx, 0x402
mov rcx, rax
call qword [rhtons + 8]
cmp eax, 2
jl 0x140090019
mov rbx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.static:_failed_to_load_WSAID_CONNECTEX_function_with_error__d
jmp 0x140090005
call fcn.1400a3910
mov rbx, rax
test rax, rax
je 0x14008ff2b
mov r8, qword [rax]
mov edx, 0x402
mov rcx, rax
call qword [rhtons + 8]
cmp eax, 4
jl 0x14008ff2b
mov r10, qword [rbx]
lea r9, str.static:_loading_WSAID_ACCEPTEX_function
mov edx, 4
mov r8d, 0x402
mov rcx, rbx
call qword [r10]
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rsi
lea r8, [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov r9d, reloc.WS2_32.dll_recv
lea rax, [0x140177cf0]
mov dword [rsp + 0x28], 8
mov edx, 0xc8000006
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov dword [rsp + 0x68], 0xb5367df1
mov dword [rsp + 0x6c], 0x11cfcbac
mov dword [rsp + 0x70], 0x8000ca95
mov dword [rsp + 0x74], 0x92a1485f
mov dword [rsp + 0x50], esi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x14008ffd4
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rsi, qword [rsp + 0x248]
mov rdi, qword [rsp + 0x250]
mov rbx, qword [rsp + 0x240]
mov byte [0x140177cf8], 1
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.1400b91a0
add rsp, 0x230
pop rbp
ret
call fcn.1400a3910
mov rdi, rax
test rax, rax
je 0x140090019
mov r8, qword [rax]
mov edx, 0x402
mov rcx, rax
call qword [rhtons + 8]
cmp eax, 2
jl 0x140090019
mov rbx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.static:_failed_to_load_WSAID_ACCEPTEX_function_with_error__d
mov edx, 2
mov r8d, 0x402
mov dword [rsp + 0x20], eax
mov rcx, rdi
call qword [rbx]
mov ecx, 0xffffffff
call fcn.1400d10c0
int3