Function at 0x48b7a0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
push ecx
push edi
lea edi, [esp + 8]
mov eax, 0xcccccccc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop edi
pop ecx
cmp byte [0x4e4598], 0
je 0x48b7cd
mov al, byte [0x4e4599]
lea esp, [ebp - 4]
pop ebx
pop ebp
ret
mov byte [0x4e4598], 1
push str.wsock32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x4cb408], eax
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x4cb40c], eax
cmp dword [0x4cb408], 0
je 0x48b806
cmp dword [0x4cb40c], 0
jne 0x48b80e
mov al, 0
lea esp, [ebp - 4]
pop ebx
pop ebp
ret
push str.WSAGetLastError
push dword [0x4cb408]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cb3fc], eax
push str.WSAStartup
push dword [0x4cb408]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cb404], eax
push str.WSACleanup
push dword [0x4cb408]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cb400], eax
push str.__WSAFDIsSet
push dword [0x4cb408]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cb3f8], eax
cmp dword [0x4cb3fc], 0
je 0x48b88a
cmp dword [0x4cb404], 0
je 0x48b88a
cmp dword [0x4cb400], 0
je 0x48b88a
cmp dword [0x4cb3f8], 0
jne 0x48b892
mov al, 0
lea esp, [ebp - 4]
pop ebx
pop ebp
ret
push str.gethostbyname
push dword [0x4cb408]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cb38c], eax
push str.htons
push dword [0x4cb408]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cb398], eax
push str.htonl
push dword [0x4cb408]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cb39c], eax
push str.ntohs
push dword [0x4cb408]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cb3a0], eax
push str.ntohl
push dword [0x4cb408]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cb3a4], eax
push str.inet_ntoa
push dword [0x4cb408]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cb3b4], eax
push str.select
push dword [0x4cb408]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cb3b8], eax
push str.send
push dword [0x4cb408]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cb3c4], eax
push str.bind
push dword [0x4cb408]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cb3a8], eax
push str.connect
push dword [0x4cb408]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cb394], eax
push str.listen
push dword [0x4cb408]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cb3ac], eax
push str.accept
push dword [0x4cb408]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cb3cc], eax
push str.recv
push dword [0x4cb408]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cb3c8], eax
push str.socket
push dword [0x4cb408]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cb390], eax
push str.getpeername
push dword [0x4cb408]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cb3b0], eax
push str.getsockname
push dword [0x4cb408]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cb3d8], eax
push str.recvfrom
push dword [0x4cb408]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cb3d0], eax
push str.sendto
push dword [0x4cb408]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cb3d4], eax
push str.inet_addr
push dword [0x4cb408]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cb388], eax
call fcn.00490470
cmp al, 0
je 0x48ba6b
push str.getsockopt
push dword [0x4cb408]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cb3dc], eax
push str.setsockopt
push dword [0x4cb408]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cb3f4], eax
jmp 0x48ba97
push str.getsockopt
push dword [0x4cb40c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cb3dc], eax
push str.setsockopt
push dword [0x4cb40c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cb3f4], eax
push str.getaddrinfo
push dword [0x4cb40c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cb3e4], eax
push str.freeaddrinfo
push dword [0x4cb40c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cb3e8], eax
mov dword [0x4cb3ec], 0x48b780
push str.ioctlsocket
push dword [0x4cb408]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cb3c0], eax
push str.ioctlsocket
push dword [0x4cb408]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cb3f0], eax
push str.closesocket
push dword [0x4cb408]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cb3bc], eax
push 0x4cb410
push 0x101
call dword [0x4cb404]
mov byte [ebp - 5], 0
mov byte [ebp - 6], 0
mov byte [ebp - 7], 0
mov byte [ebp - 8], 0
mov byte [ebp - 9], 0
mov byte [ebp - 0xa], 0
mov byte [ebp - 0xb], 0
mov byte [ebp - 0xc], 0
mov byte [ebp - 0xd], 0
mov byte [ebp - 0xe], 0
mov byte [ebp - 0xf], 0
mov byte [ebp - 0x10], 0
mov byte [ebp - 0x11], 0
mov byte [ebp - 0x12], 0
mov byte [ebp - 0x13], 0
mov byte [ebp - 0x14], 0
mov byte [ebp - 0x15], 0
mov bl, 0
mov cl, 0
mov dl, 0
mov al, 0
cmp dword [0x4cb388], 0
je 0x48bb7f
cmp dword [0x4cb38c], 0
je 0x48bb7f
mov al, 1
cmp al, 0
je 0x48bb8e
cmp dword [0x4cb390], 0
je 0x48bb8e
mov dl, 1
cmp dl, 0
je 0x48bb9e
cmp dword [0x4cb394], 0
je 0x48bb9e
mov cl, 1
cmp cl, 0
je 0x48bbae
cmp dword [0x4cb398], 0
je 0x48bbae
mov bl, 1
cmp bl, 0
je 0x48bbc0
cmp dword [0x4cb39c], 0
je 0x48bbc0
mov byte [ebp - 0x15], 1
cmp byte [ebp - 0x15], 0
je 0x48bbd3
cmp dword [0x4cb3a8], 0
je 0x48bbd3
mov byte [ebp - 0x14], 1
cmp byte [ebp - 0x14], 0
je 0x48bbe6
cmp dword [0x4cb3ac], 0
je 0x48bbe6
mov byte [ebp - 0x13], 1
cmp byte [ebp - 0x13], 0
je 0x48bbf9
cmp dword [0x4cb3b0], 0
je 0x48bbf9
mov byte [ebp - 0x12], 1
cmp byte [ebp - 0x12], 0
je 0x48bc0c
cmp dword [0x4cb3b4], 0
je 0x48bc0c
mov byte [ebp - 0x11], 1
cmp byte [ebp - 0x11], 0
je 0x48bc1f
cmp dword [0x4cb3b8], 0
je 0x48bc1f
mov byte [ebp - 0x10], 1
cmp byte [ebp - 0x10], 0
je 0x48bc32
cmp dword [0x4cb3bc], 0
je 0x48bc32
mov byte [ebp - 0xf], 1
cmp byte [ebp - 0xf], 0
je 0x48bc45
cmp dword [0x4cb3c0], 0
je 0x48bc45
mov byte [ebp - 0xe], 1
cmp byte [ebp - 0xe], 0
je 0x48bc58
cmp dword [0x4cb3c4], 0
je 0x48bc58
mov byte [ebp - 0xd], 1
cmp byte [ebp - 0xd], 0
je 0x48bc6b
cmp dword [0x4cb3c8], 0
je 0x48bc6b
mov byte [ebp - 0xc], 1
cmp byte [ebp - 0xc], 0
je 0x48bc7e
cmp dword [0x4cb3cc], 0
je 0x48bc7e
mov byte [ebp - 0xb], 1
cmp byte [ebp - 0xb], 0
je 0x48bc91
cmp dword [0x4cb3d0], 0
je 0x48bc91
mov byte [ebp - 0xa], 1
cmp byte [ebp - 0xa], 0
je 0x48bca4
cmp dword [0x4cb3d4], 0
je 0x48bca4
mov byte [ebp - 9], 1
cmp byte [ebp - 9], 0
je 0x48bcb7
cmp dword [0x4cb3d8], 0
je 0x48bcb7
mov byte [ebp - 8], 1
cmp byte [ebp - 8], 0
je 0x48bcca
cmp dword [0x4cb3dc], 0
je 0x48bcca
mov byte [ebp - 7], 1
cmp byte [ebp - 7], 0
je 0x48bcdd
cmp dword [0x4cb3f4], 0
je 0x48bcdd
mov byte [ebp - 6], 1
cmp byte [ebp - 6], 0
je 0x48bcf0
cmp dword [0x4cb3f0], 0
je 0x48bcf0
mov byte [ebp - 5], 1
mov al, byte [ebp - 5]
mov byte [0x4e4599], al
mov al, byte [0x4e4599]
lea esp, [ebp - 4]
pop ebx
pop ebp
ret