Function at 0x14006c800
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
lea rcx, str.ws2_32.dll
call fcn.1400a4240
mov qword [0x14013dd20], rax
mov qword [0x14013dd28], rax
test rax, rax
jne 0x14006c83f
lea rcx, str.wsock32.dll
call fcn.1400a4240
mov qword [0x14013dd20], rax
test rax, rax
je 0x14006ce67
lea rdx, str.getaddrinfo
mov qword [rsp + 0x20], rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebx, ebx
test rax, rax
je 0x14006c8e4
mov rcx, qword [0x14013dd20]
test rcx, rcx
je 0x14006c881
lea rdx, str.getaddrinfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013dd20]
jmp 0x14006c884
mov rax, rbx
mov qword [0x14013dd00], rax
test rcx, rcx
je 0x14006c8a6
lea rdx, str.freeaddrinfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013dd20]
jmp 0x14006c8a9
mov rax, rbx
mov qword [0x14013dd08], rax
test rcx, rcx
je 0x14006c8d5
lea rdx, str.getnameinfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013dd20]
mov qword [0x14013dd10], rax
jmp 0x14006c964
mov rax, rbx
mov qword [0x14013dd10], rbx
jmp 0x14006c964
lea rcx, str.wship6.dll
call fcn.1400a4240
mov qword [0x14013dec8], rax
test rax, rax
je 0x14006c95d
lea rdx, str.getaddrinfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013dec8]
mov qword [0x14013dd00], rax
test rcx, rcx
je 0x14006c935
lea rdx, str.freeaddrinfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013dec8]
jmp 0x14006c938
mov rax, rbx
mov qword [0x14013dd08], rax
test rcx, rcx
je 0x14006c953
lea rdx, str.getnameinfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x14006c956
mov rax, rbx
mov qword [0x14013dd10], rax
mov rcx, qword [0x14013dd20]
mov rax, qword [0x14013dd28]
test rax, rax
je 0x14006c989
lea rdx, str.WSAAddressToStringA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013dd20]
jmp 0x14006c98c
mov rax, rbx
mov qword [0x14013dd18], rax
test rcx, rcx
je 0x14006c9ae
lea rdx, str.WSAAsyncSelect
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013dd20]
jmp 0x14006c9b1
mov rax, rbx
mov qword [0x14013ed48], rax
test rcx, rcx
je 0x14006c9d3
lea rdx, str.WSAEventSelect
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013dd20]
jmp 0x14006c9d6
mov rax, rbx
mov qword [0x14013ed40], rax
test rcx, rcx
je 0x14006c9f8
lea rdx, str.select
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013dd20]
jmp 0x14006c9fb
mov rax, rbx
mov qword [0x14013ed28], rax
test rcx, rcx
je 0x14006ca1d
lea rdx, str.WSAGetLastError
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013dd20]
jmp 0x14006ca20
mov rax, rbx
mov qword [0x14013ed38], rax
test rcx, rcx
je 0x14006ca42
lea rdx, str.WSAEnumNetworkEvents
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013dd20]
jmp 0x14006ca45
mov rax, rbx
mov qword [0x14013ed30], rax
test rcx, rcx
je 0x14006ca67
lea rdx, str.WSAStartup
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013dd20]
jmp 0x14006ca6a
mov rax, rbx
mov qword [0x14013dc68], rax
test rcx, rcx
je 0x14006ca8c
lea rdx, str.WSACleanup
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013dd20]
jmp 0x14006ca8f
mov rax, rbx
mov qword [0x14013dc70], rax
test rcx, rcx
je 0x14006cab1
lea rdx, str.closesocket
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013dd20]
jmp 0x14006cab4
mov rax, rbx
mov qword [0x14013dc38], rax
test rcx, rcx
je 0x14006cad6
lea rdx, str.ntohl
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013dd20]
jmp 0x14006cad9
mov rax, rbx
mov qword [0x14013dc78], rax
test rcx, rcx
je 0x14006cafb
lea rdx, str.htonl
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013dd20]
jmp 0x14006cafe
mov rax, rbx
mov qword [0x14013dc80], rax
test rcx, rcx
je 0x14006cb20
lea rdx, str.htons
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013dd20]
jmp 0x14006cb23
mov rax, rbx
mov qword [0x14013dc88], rax
test rcx, rcx
je 0x14006cb45
lea rdx, str.ntohs
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013dd20]
jmp 0x14006cb48
mov rax, rbx
mov qword [0x14013dc40], rax
test rcx, rcx
je 0x14006cb6a
lea rdx, str.gethostname
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013dd20]
jmp 0x14006cb6d
mov rax, rbx
mov qword [0x14013dc90], rax
test rcx, rcx
je 0x14006cb8f
lea rdx, str.gethostbyname
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013dd20]
jmp 0x14006cb92
mov rax, rbx
mov qword [0x14013dc98], rax
test rcx, rcx
je 0x14006cbb4
lea rdx, str.getservbyname
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013dd20]
jmp 0x14006cbb7
mov rax, rbx
mov qword [0x14013dca0], rax
test rcx, rcx
je 0x14006cbd9
lea rdx, str.inet_addr
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013dd20]
jmp 0x14006cbdc
mov rax, rbx
mov qword [0x14013dca8], rax
test rcx, rcx
je 0x14006cbfe
lea rdx, str.inet_ntoa
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013dd20]
jmp 0x14006cc01
mov rax, rbx
mov qword [0x14013dc48], rax
test rcx, rcx
je 0x14006cc23
lea rdx, str.inet_ntop
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013dd20]
jmp 0x14006cc26
mov rax, rbx
mov qword [0x14013dc50], rax
test rcx, rcx
je 0x14006cc48
lea rdx, str.connect
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013dd20]
jmp 0x14006cc4b
mov rax, rbx
mov qword [0x14013dcb0], rax
test rcx, rcx
je 0x14006cc6d
lea rdx, str.bind
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013dd20]
jmp 0x14006cc70
mov rax, rbx
mov qword [0x14013dcb8], rax
test rcx, rcx
je 0x14006cc92
lea rdx, str.setsockopt
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013dd20]
jmp 0x14006cc95
mov rax, rbx
mov qword [0x14013dcc0], rax
test rcx, rcx
je 0x14006ccb7
lea rdx, str.socket
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013dd20]
jmp 0x14006ccba
mov rax, rbx
mov qword [0x14013dcc8], rax
test rcx, rcx
je 0x14006ccdc
lea rdx, str.listen
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013dd20]
jmp 0x14006ccdf
mov rax, rbx
mov qword [0x14013dcd0], rax
test rcx, rcx
je 0x14006cd01
lea rdx, str.send
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013dd20]
jmp 0x14006cd04
mov rax, rbx
mov qword [0x14013dcd8], rax
test rcx, rcx
je 0x14006cd26
lea rdx, str.shutdown
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013dd20]
jmp 0x14006cd29
mov rax, rbx
mov qword [0x14013dce0], rax
test rcx, rcx
je 0x14006cd4b
lea rdx, str.ioctlsocket
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013dd20]
jmp 0x14006cd4e
mov rax, rbx
mov qword [0x14013dce8], rax
test rcx, rcx
je 0x14006cd70
lea rdx, str.accept
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013dd20]
jmp 0x14006cd73
mov rax, rbx
mov qword [0x14013dcf0], rax
test rcx, rcx
je 0x14006cd95
lea rdx, str.getpeername
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013dd20]
jmp 0x14006cd98
mov rax, rbx
mov qword [0x14013dc58], rax
test rcx, rcx
je 0x14006cdba
lea rdx, str.recv
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013dd20]
jmp 0x14006cdbd
mov rax, rbx
mov qword [0x14013dc60], rax
test rcx, rcx
je 0x14006cdd9
lea rdx, str.WSAIoctl
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov ecx, 0x202
mov qword [0x14013dcf8], rbx
lea rdx, [0x14013dd30]
call qword [0x14013dc68]
mov rbx, qword [rsp + 0x20]
test eax, eax
jne 0x14006ce04
cmp byte [0x14013dd30], 2
je 0x14006ce42
mov ecx, 2
lea rdx, [0x14013dd30]
call qword [0x14013dc68]
test eax, eax
jne 0x14006ce23
cmp byte [0x14013dd30], 2
je 0x14006ce42
mov ecx, 0x101
lea rdx, [0x14013dd30]
call qword [0x14013dc68]
test eax, eax
jne 0x14006ce5a
cmp byte [0x14013dd30], 1
jne 0x14006ce5a
lea rcx, [0x14006ba50]
call fcn.1400a3fb0
mov qword [0x14013dc30], rax
add rsp, 0x28
ret
lea rcx, str.Unable_to_initialise_WinSock
call fcn.14000a3b0
int3
lea rcx, str.Unable_to_load_any_WinSock_library
call fcn.14000a3b0
int3