Function at 0x14003c490
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
lea rcx, str.ws2_32.dll
call fcn.140043cd0
mov qword [0x1401055f0], rax
mov qword [0x1401055f8], rax
test rax, rax
jne 0x14003c4cf
lea rcx, str.wsock32.dll
call fcn.140043cd0
mov qword [0x1401055f0], rax
test rax, rax
je 0x14003cc45
lea rdx, str.getaddrinfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14003c569
mov rcx, qword [0x1401055f0]
test rcx, rcx
je 0x14003c5d7
lea rdx, str.getaddrinfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401055f0]
mov qword [0x140105600], rax
test rcx, rcx
je 0x14003c5e2
lea rdx, str.freeaddrinfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401055f0]
mov qword [0x140105608], rax
test rcx, rcx
je 0x14003c5ed
lea rdx, str.getnameinfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401055f0]
mov qword [0x140105610], rax
test rcx, rcx
jne 0x14003c611
jmp 0x14003c5ed
lea rcx, str.wship6.dll
call fcn.140043cd0
mov qword [0x140105620], rax
test rax, rax
je 0x14003c625
lea rdx, str.getaddrinfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140105600], rax
mov rcx, qword [0x140105620]
test rcx, rcx
je 0x14003c5f1
lea rdx, str.freeaddrinfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140105620]
mov qword [0x140105608], rax
test rcx, rcx
je 0x14003c5fc
lea rdx, str.getnameinfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x14003c5fe
mov qword [0x140105600], 0
mov qword [0x140105608], 0
xor eax, eax
jmp 0x14003c61e
mov qword [0x140105608], 0
xor eax, eax
mov qword [0x140105610], rax
mov rcx, qword [0x1401055f0]
test rcx, rcx
je 0x14003c5ed
lea rdx, str.gai_strerror
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140105618], rax
mov rcx, qword [0x1401055f8]
test rcx, rcx
je 0x14003c640
lea rdx, str.WSAAddressToStringA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x14003c642
xor eax, eax
mov qword [0x140105628], rax
mov rcx, qword [0x1401055f0]
test rcx, rcx
je 0x14003ca7f
lea rdx, str.WSAAsyncSelect
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401055f0]
mov qword [0x140105630], rax
test rcx, rcx
je 0x14003ca8a
lea rdx, str.WSAEventSelect
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401055f0]
mov qword [0x140105638], rax
test rcx, rcx
je 0x14003ca95
lea rdx, [0x1400e259f]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401055f0]
mov qword [0x140105640], rax
test rcx, rcx
je 0x14003caa0
lea rdx, str.WSAGetLastError
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401055f0]
mov qword [0x140105648], rax
test rcx, rcx
je 0x14003caab
lea rdx, str.WSAEnumNetworkEvents
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401055f0]
mov qword [0x140105650], rax
test rcx, rcx
je 0x14003cab6
lea rdx, str.WSAStartup
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401055f0]
mov qword [0x140105658], rax
test rcx, rcx
je 0x14003cac1
lea rdx, str.WSACleanup
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401055f0]
mov qword [0x140105660], rax
test rcx, rcx
je 0x14003cacc
lea rdx, str.closesocket
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401055f0]
mov qword [0x140105668], rax
test rcx, rcx
je 0x14003cad7
lea rdx, str.ntohl
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401055f0]
mov qword [0x140105670], rax
test rcx, rcx
je 0x14003cae2
lea rdx, str.htonl
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401055f0]
mov qword [0x140105678], rax
test rcx, rcx
je 0x14003caed
lea rdx, str.htons
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401055f0]
mov qword [0x140105680], rax
test rcx, rcx
je 0x14003caf8
lea rdx, str.ntohs
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401055f0]
mov qword [0x140105688], rax
test rcx, rcx
je 0x14003cb03
lea rdx, str.gethostname
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401055f0]
mov qword [0x140105690], rax
test rcx, rcx
je 0x14003cb0e
lea rdx, str.gethostbyname
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401055f0]
mov qword [0x140105698], rax
test rcx, rcx
je 0x14003cb19
lea rdx, str.getservbyname
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401055f0]
mov qword [0x1401056a0], rax
test rcx, rcx
je 0x14003cb24
lea rdx, str.inet_addr
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401055f0]
mov qword [0x1401056a8], rax
test rcx, rcx
je 0x14003cb2f
lea rdx, str.inet_ntoa
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401055f0]
mov qword [0x1401056b0], rax
test rcx, rcx
je 0x14003cb3a
lea rdx, str.inet_ntop
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401055f0]
mov qword [0x1401056b8], rax
test rcx, rcx
je 0x14003cb45
lea rdx, [0x1400e258c]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401055f0]
mov qword [0x1401056c0], rax
test rcx, rcx
je 0x14003cb50
lea rdx, str.bind
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401055f0]
mov qword [0x1401056c8], rax
test rcx, rcx
je 0x14003cb5b
lea rdx, str.setsockopt
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401055f0]
mov qword [0x1401056d0], rax
test rcx, rcx
je 0x14003cb66
lea rdx, [0x1400e230d]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401055f0]
mov qword [0x1401056d8], rax
test rcx, rcx
je 0x14003cb71
lea rdx, str.listen
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401055f0]
mov qword [0x1401056e0], rax
test rcx, rcx
je 0x14003cb7c
lea rdx, str.send
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401055f0]
mov qword [0x1401056e8], rax
test rcx, rcx
je 0x14003cb87
lea rdx, [0x1400e5059]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401055f0]
mov qword [0x1401056f0], rax
test rcx, rcx
je 0x14003cb92
lea rdx, str.ioctlsocket
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401055f0]
mov qword [0x1401056f8], rax
test rcx, rcx
je 0x14003cb9d
lea rdx, str.accept
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401055f0]
mov qword [0x140105700], rax
test rcx, rcx
je 0x14003cba8
lea rdx, str.getpeername
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401055f0]
mov qword [0x140105708], rax
test rcx, rcx
je 0x14003cbb3
lea rdx, str.recv
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401055f0]
mov qword [0x140105710], rax
test rcx, rcx
je 0x14003cbbe
lea rdx, str.WSAIoctl
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x14003cbc0
mov qword [0x140105630], 0
mov qword [0x140105638], 0
mov qword [0x140105640], 0
mov qword [0x140105648], 0
mov qword [0x140105650], 0
mov qword [0x140105658], 0
mov qword [0x140105660], 0
mov qword [0x140105668], 0
mov qword [0x140105670], 0
mov qword [0x140105678], 0
mov qword [0x140105680], 0
mov qword [0x140105688], 0
mov qword [0x140105690], 0
mov qword [0x140105698], 0
mov qword [0x1401056a0], 0
mov qword [0x1401056a8], 0
mov qword [0x1401056b0], 0
mov qword [0x1401056b8], 0
mov qword [0x1401056c0], 0
mov qword [0x1401056c8], 0
mov qword [0x1401056d0], 0
mov qword [0x1401056d8], 0
mov qword [0x1401056e0], 0
mov qword [0x1401056e8], 0
mov qword [0x1401056f0], 0
mov qword [0x1401056f8], 0
mov qword [0x140105700], 0
mov qword [0x140105708], 0
mov qword [0x140105710], 0
xor eax, eax
mov qword [0x140105718], rax
lea rdx, [0x140105728]
mov cx, 0x202
call qword [0x140105658]
test eax, eax
jne 0x14003cbe9
movzx eax, byte [0x140105728]
cmp ax, 2
je 0x14003cc2d
lea rdx, [0x140105728]
mov cx, 2
call qword [0x140105658]
test eax, eax
jne 0x14003cc0b
movzx eax, byte [0x140105728]
cmp ax, 2
je 0x14003cc2d
lea rdx, [0x140105728]
mov cx, 0x101
call qword [0x140105658]
test eax, eax
jne 0x14003cc51
movzx eax, byte [0x140105728]
cmp ax, 1
jne 0x14003cc51
lea rcx, [0x14003cc60]
call fcn.140042470
mov qword [0x140105720], rax
add rsp, 0x28
ret
lea rcx, str.Unable_to_load_any_WinSock_library
call fcn.140005f70
lea rcx, str.Unable_to_initialise_WinSock
call fcn.140005f70
int3