Function at 0x1001cb5c0
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
mov rbp, rsp
lea rsp, [rsp - 0x30]
mov qword [rbp - 8], rcx
call fcn.100009140
nop
mov byte [rbp - 0xc], 0
cmp qword [rbp - 8], 0
jne 0x1001cb5f4
lea rax, [rbp - 8]
lea rdx, str.ws2_32.dll
mov rcx, rax
call fcn.100009170
nop dword [rax]
mov rcx, qword [0x1003f2630]
call fcn.1000f80d0
nop
cmp dword [0x1001f4890], 0
jne 0x1001cbaf6
mov byte [0x1003f2640], 0
mov byte [0x1003f2650], 0
mov rcx, qword [rbp - 8]
test rcx, rcx
jne 0x1001cb62c
lea rcx, [0x1002e3460]
call sub.kernel32.dll_LoadLibraryA
mov qword [0x1001f48a0], rax
test rax, rax
je 0x1001cbafa
mov rcx, qword [0x1001f48a0]
lea rdx, str.WSAIoctl
call sub.kernel32.dll_GetProcAddress
mov qword [0x1001f4880], rax
mov rcx, qword [0x1001f48a0]
lea rdx, str.__WSAFDIsSet
call sub.kernel32.dll_GetProcAddress
mov qword [0x1001f4870], rax
mov rcx, qword [0x1001f48a0]
lea rdx, str.closesocket
call sub.kernel32.dll_GetProcAddress
mov qword [0x1001f47f0], rax
mov rcx, qword [0x1001f48a0]
lea rdx, str.ioctlsocket
call sub.kernel32.dll_GetProcAddress
mov qword [0x1001f4770], rax
mov rcx, qword [0x1001f48a0]
lea rdx, str.WSAGetLastError
call sub.kernel32.dll_GetProcAddress
mov qword [0x1001f4650], rax
mov rcx, qword [0x1001f48a0]
lea rdx, str.WSAStartup
call sub.kernel32.dll_GetProcAddress
mov qword [0x1001f4630], rax
mov rcx, qword [0x1001f48a0]
lea rdx, str.WSACleanup
call sub.kernel32.dll_GetProcAddress
mov qword [0x1001f4640], rax
mov rcx, qword [0x1001f48a0]
lea rdx, str.accept
call sub.kernel32.dll_GetProcAddress
mov qword [0x1001f4810], rax
mov rcx, qword [0x1001f48a0]
lea rdx, str.bind
call sub.kernel32.dll_GetProcAddress
mov qword [0x1001f4800], rax
mov rcx, qword [0x1001f48a0]
lea rdx, str.connect
call sub.kernel32.dll_GetProcAddress
mov qword [0x1001f47e0], rax
mov rcx, qword [0x1001f48a0]
lea rdx, str.getpeername
call sub.kernel32.dll_GetProcAddress
mov qword [0x1001f47d0], rax
mov rcx, qword [0x1001f48a0]
lea rdx, str.getsockname
call sub.kernel32.dll_GetProcAddress
mov qword [0x1001f47c0], rax
mov rcx, qword [0x1001f48a0]
lea rdx, str.getsockopt
call sub.kernel32.dll_GetProcAddress
mov qword [0x1001f46f0], rax
mov rcx, qword [0x1001f48a0]
lea rdx, str.htonl
call sub.kernel32.dll_GetProcAddress
mov qword [0x1001f47b0], rax
mov rcx, qword [0x1001f48a0]
lea rdx, str.htons
call sub.kernel32.dll_GetProcAddress
mov qword [0x1001f47a0], rax
mov rcx, qword [0x1001f48a0]
lea rdx, str.inet_addr
call sub.kernel32.dll_GetProcAddress
mov qword [0x1001f4790], rax
mov rcx, qword [0x1001f48a0]
lea rdx, str.inet_ntoa
call sub.kernel32.dll_GetProcAddress
mov qword [0x1001f4780], rax
mov rcx, qword [0x1001f48a0]
lea rdx, str.listen
call sub.kernel32.dll_GetProcAddress
mov qword [0x1001f4760], rax
mov rcx, qword [0x1001f48a0]
lea rdx, str.ntohl
call sub.kernel32.dll_GetProcAddress
mov qword [0x1001f4750], rax
mov rcx, qword [0x1001f48a0]
lea rdx, str.ntohs
call sub.kernel32.dll_GetProcAddress
mov qword [0x1001f4740], rax
mov rcx, qword [0x1001f48a0]
lea rdx, str.recv
call sub.kernel32.dll_GetProcAddress
mov qword [0x1001f4720], rax
mov rcx, qword [0x1001f48a0]
lea rdx, str.recvfrom
call sub.kernel32.dll_GetProcAddress
mov qword [0x1001f4730], rax
mov rcx, qword [0x1001f48a0]
lea rdx, str.select
call sub.kernel32.dll_GetProcAddress
mov qword [0x1001f4830], rax
mov rcx, qword [0x1001f48a0]
lea rdx, str.send
call sub.kernel32.dll_GetProcAddress
mov qword [0x1001f4710], rax
mov rcx, qword [0x1001f48a0]
lea rdx, str.sendto
call sub.kernel32.dll_GetProcAddress
mov qword [0x1001f4700], rax
mov rcx, qword [0x1001f48a0]
lea rdx, str.setsockopt
call sub.kernel32.dll_GetProcAddress
mov qword [0x1001f46e0], rax
mov rcx, qword [0x1001f48a0]
lea rdx, str.shutdown
call sub.kernel32.dll_GetProcAddress
mov qword [0x1001f46d0], rax
mov rcx, qword [0x1001f48a0]
lea rdx, str.socket
call sub.kernel32.dll_GetProcAddress
mov qword [0x1001f4820], rax
mov rcx, qword [0x1001f48a0]
lea rdx, str.gethostbyaddr
call sub.kernel32.dll_GetProcAddress
mov qword [0x1001f46b0], rax
mov rcx, qword [0x1001f48a0]
lea rdx, str.gethostbyname
call sub.kernel32.dll_GetProcAddress
mov qword [0x1001f46a0], rax
mov rcx, qword [0x1001f48a0]
lea rdx, str.getprotobyname
call sub.kernel32.dll_GetProcAddress
mov qword [0x1001f4680], rax
mov rcx, qword [0x1001f48a0]
lea rdx, str.getprotobynumber
call sub.kernel32.dll_GetProcAddress
mov qword [0x1001f4690], rax
mov rcx, qword [0x1001f48a0]
lea rdx, str.getservbyname
call sub.kernel32.dll_GetProcAddress
mov qword [0x1001f4660], rax
mov rcx, qword [0x1001f48a0]
lea rdx, str.getservbyport
call sub.kernel32.dll_GetProcAddress
mov qword [0x1001f4670], rax
mov rcx, qword [0x1001f48a0]
lea rdx, str.gethostname
call sub.kernel32.dll_GetProcAddress
mov qword [0x1001f46c0], rax
mov rcx, qword [0x1001f48a0]
lea rdx, str.getaddrinfo
call sub.kernel32.dll_GetProcAddress
mov qword [0x1001f4840], rax
mov rcx, qword [0x1001f48a0]
lea rdx, str.freeaddrinfo
call sub.kernel32.dll_GetProcAddress
mov qword [0x1001f4850], rax
mov rcx, qword [0x1001f48a0]
lea rdx, str.getnameinfo
call sub.kernel32.dll_GetProcAddress
mov qword [0x1001f4860], rax
cmp qword [0x1001f4840], 0
je 0x1001cba44
cmp qword [0x1001f4850], 0
je 0x1001cba44
cmp qword [0x1001f4860], 0
je 0x1001cba44
mov byte [0x1003f2640], 1
jmp 0x1001cba4b
mov byte [0x1003f2640], 0
cmp byte [0x1003f2640], 0
jne 0x1001cbaf0
lea rcx, str.wship6.dll
call sub.kernel32.dll_LoadLibraryA
mov qword [0x1001f48b0], rax
test rax, rax
je 0x1001cbaf0
mov rcx, qword [0x1001f48b0]
lea rdx, str.getaddrinfo
call sub.kernel32.dll_GetProcAddress
mov qword [0x1001f4840], rax
mov rcx, qword [0x1001f48b0]
lea rdx, str.freeaddrinfo
call sub.kernel32.dll_GetProcAddress
mov qword [0x1001f4850], rax
mov rcx, qword [0x1001f48b0]
lea rdx, str.getnameinfo
call sub.kernel32.dll_GetProcAddress
mov qword [0x1001f4860], rax
cmp qword [0x1001f4840], 0
je 0x1001cbae9
cmp qword [0x1001f4850], 0
je 0x1001cbae9
cmp qword [0x1001f4860], 0
je 0x1001cbae9
mov byte [0x1003f2650], 1
jmp 0x1001cbaf0
mov byte [0x1003f2650], 0
mov byte [rbp - 0xc], 1
jmp 0x1001cbafa
mov byte [rbp - 0xc], 1
cmp byte [rbp - 0xc], 0
je 0x1001cbb08
add dword [0x1001f4890], 1
nop
nop
mov rcx, rbp
call fcn.1001cb580
nop
mov rcx, rbp
call fcn.1001cb5a0
mov al, byte [rbp - 0xc]
nop
lea rsp, [rbp]
pop rbp
ret