Function at 0x18000e71c
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
lea rcx, str.WS2_32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor ebx, ebx
mov qword [0x18009b7e8], rax
cmp rax, rbx
je 0x18000ecb6
lea rdx, str.WSACleanup
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18009b7e8]
lea rdx, str.closesocket
mov qword [0x1800849c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18009b7e8]
lea rdx, str.shutdown
mov qword [0x180099c60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18009b7e8]
lea rdx, str.WSAAsyncSelect
mov qword [0x18009adb0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18009b7e8]
lea rdx, str.WSAGetLastError
mov qword [0x18009aec8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18009b7e8]
lea rdx, str.connect
mov qword [0x18009ad70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18009b7e8]
lea rdx, str.socket
mov qword [0x18009adb8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18009b7e8]
lea rdx, str.ntohs
mov qword [0x18009ad68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18009b7e8]
lea rdx, str.ntohl
mov qword [0x18009ada0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18009b7e8]
lea rdx, str.htons
mov qword [0x18009ade0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18009b7e8]
lea rdx, str.WSASend
mov qword [0x18009ad20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18009b7e8]
lea rdx, str.recv
mov qword [0x180099ce8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18009b7e8]
lea rdx, str.getsockopt
mov qword [0x180099c98], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18009b7e8]
lea rdx, str.WSAAsyncGetHostByName
mov qword [0x180097620], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18009b7e8]
lea rdx, str.inet_addr
mov qword [0x18009ae40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18009b7e8]
lea rdx, str.WSARecv
mov qword [0x18009af40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18009b7e8]
lea rdx, str.WSASendTo
mov qword [0x180099c50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18009b7e8]
lea rdx, str.WSARecvFrom
mov qword [0x18009aef0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18009b7e8]
lea rdx, str.getpeername
mov qword [0x18009ada8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18009b7e8]
lea rdx, str.inet_ntoa
mov qword [0x180099c58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WSAAccept
mov qword [0x18009ace0], rax
mov rcx, qword [0x18009b7e8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18009b7e8]
lea rdx, str.send
mov qword [0x18009b3d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18009b7e8]
lea rdx, str.WSAStartup
mov qword [0x18009b3c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18009b7e8]
lea rdx, str.getsockname
mov qword [0x18009aef8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18009b7e8]
lea rdx, str.listen
mov qword [0x18009adc8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18009b7e8]
lea rdx, str.bind
mov qword [0x180099ca0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18009b7e8]
lea rdx, str.setsockopt
mov qword [0x18009ad30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18009b7e8]
lea rdx, str.htonl
mov qword [0x18009aee0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18009b7e8]
lea rdx, str.WSASocketA
mov qword [0x18009ad18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18009b7e8]
lea rdx, str.gethostbyname
mov qword [0x18009acd0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18009b7e8]
lea rdx, str.select
mov qword [0x180099ca8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18009b7e8]
lea rdx, str.ioctlsocket
mov qword [0x18009ad60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18009b7e8]
lea rdx, str.gethostname
mov qword [0x18009add8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18009b7e8]
lea rdx, str.recvfrom
mov qword [0x18009ace8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18009b7e8]
lea rdx, str.sendto
mov qword [0x18009af70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18009b7e8]
lea rdx, str.__WSAFDIsSet
mov qword [0x18009af10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180097628], rax
cmp qword [0x1800849c8], rbx
je 0x18000eca2
cmp qword [0x180099c60], rbx
je 0x18000eca2
cmp qword [0x18009adb0], rbx
je 0x18000eca2
cmp qword [0x18009aec8], rbx
je 0x18000eca2
cmp qword [0x18009ad70], rbx
je 0x18000eca2
cmp qword [0x18009adb8], rbx
je 0x18000eca2
cmp qword [0x18009ad68], rbx
je 0x18000eca2
cmp qword [0x18009ada0], rbx
je 0x18000eca2
cmp qword [0x18009ade0], rbx
je 0x18000eca2
cmp qword [0x18009ad20], rbx
je 0x18000eca2
cmp qword [0x180099ce8], rbx
je 0x18000eca2
cmp qword [0x180099c98], rbx
je 0x18000eca2
cmp qword [0x180097620], rbx
je 0x18000eca2
cmp qword [0x18009ae40], rbx
je 0x18000eca2
cmp qword [0x18009af40], rbx
je 0x18000eca2
cmp qword [0x180099c50], rbx
je 0x18000eca2
cmp qword [0x18009aef0], rbx
je 0x18000eca2
cmp qword [0x18009ada8], rbx
je 0x18000eca2
cmp qword [0x180099c58], rbx
je 0x18000eca2
cmp qword [0x18009ace0], rbx
je 0x18000eca2
cmp qword [0x18009b3d8], rbx
je 0x18000eca2
cmp qword [0x18009b3c8], rbx
je 0x18000eca2
cmp qword [0x18009aef8], rbx
je 0x18000eca2
cmp qword [0x18009adc8], rbx
je 0x18000eca2
cmp qword [0x180099ca0], rbx
je 0x18000eca2
cmp qword [0x18009ad30], rbx
je 0x18000eca2
cmp qword [0x18009aee0], rbx
je 0x18000eca2
cmp qword [0x18009ad18], rbx
je 0x18000eca2
cmp qword [0x18009acd0], rbx
je 0x18000eca2
cmp qword [0x180099ca8], rbx
je 0x18000eca2
cmp qword [0x18009ad60], rbx
je 0x18000eca2
cmp qword [0x18009add8], rbx
je 0x18000eca2
cmp qword [0x18009ace8], rbx
je 0x18000eca2
cmp qword [0x18009af70], rbx
je 0x18000eca2
cmp qword [0x18009af10], rbx
je 0x18000eca2
cmp rax, rbx
je 0x18000eca2
lea eax, [rbx + 1]
jmp 0x18000ecb8
mov rcx, qword [0x18009b7e8]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x18009b7e8], rbx
xor eax, eax
add rsp, 0x20
pop rbx
ret