Function at 0x456c04
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x8c], 0
jne 0x456c23
mov eax, 0x14
jmp 0x456fa4
mov esi, dword [ebx + 0xc6]
xor eax, eax
mov dword [ebx + 0xc6], eax
test esi, esi
je 0x456c72
cmp dword [ebx + 0xb6], 0
jne 0x456c72
mov edi, dword [ebx + 0xae]
mov dword [ebp - 4], ebx
cmp dword [0x4bef08], 0
jne 0x456c58
push edi
call sub.WSOCK32.dll_inet_addr
jmp 0x456c62
push edi
mov edx, dword [ebp - 4]
push edx
call fcn.0045a1c4
mov dword [ebx + 0x98], eax
mov dword [ebx + 0x90], 1
cmp dword [ebx + 0x90], 0
jne 0x456c9e
xor ecx, ecx
test esi, esi
mov dword [ebx + 0x8c], ecx
je 0x456c94
push 0xf
push 4
push ebx
call fcn.00458824
add esp, 0xc
mov eax, 0xf
jmp 0x456fa4
push ebx
call fcn.00457ae8
pop ecx
mov edi, ebx
cmp dword [0x4bef08], 0
jne 0x456cbd
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
jmp 0x456cc9
push 0
push 1
push 2
push edi
call fcn.0045aa74
mov dword [ebx + 8], eax
cmp dword [ebx + 8], 0xffffffff
jne 0x456d23
xor edx, edx
mov dword [ebx + 0x8c], edx
mov edi, ebx
cmp dword [0x4bef08], 0
jne 0x456cec
call sub.WSOCK32.dll_WSAGetLastError
jmp 0x456cf2
push edi
call fcn.0045adb4
push eax
push ebx
call fcn.00458714
add esp, 8
mov dword [ebx + 0xa4], eax
test esi, esi
je 0x456d18
mov ecx, dword [ebx + 0xa4]
push ecx
push 4
push ebx
call fcn.00458824
add esp, 0xc
mov eax, dword [ebx + 0xa4]
jmp 0x456fa4
cmp word [ebx + 0xa8], 0
jne 0x456d55
mov edi, ebx
cmp dword [0x4bef08], 0
jne 0x456d41
push 0
call sub.WSOCK32.dll_htonl
jmp 0x456d49
push 0
push edi
call fcn.0045a0fc
cmp eax, dword [ebx + 0xaa]
je 0x456e4c
mov word [ebp - 0x34], 2
mov edx, dword [ebx + 0xaa]
mov dword [ebp - 0x30], edx
mov di, word [ebx + 0xa8]
mov dword [ebp - 8], ebx
cmp dword [0x4bef08], 0
jne 0x456d7f
push edi
call sub.WSOCK32.dll_htons
jmp 0x456d89
push edi
mov ecx, dword [ebp - 8]
push ecx
call fcn.0045a15c
mov word [ebp - 0x32], ax
mov dword [ebp - 0xc], 1
mov eax, dword [ebx + 8]
mov edx, ebx
cmp dword [0x4bef08], 0
jne 0x456db7
push 4
lea ecx, [ebp - 0xc]
push ecx
push 4
push 0xffff
push eax
call sub.WSOCK32.dll_setsockopt
jmp 0x456dcb
push 4
lea ecx, [ebp - 0xc]
push ecx
push 4
push 0xffff
push eax
push edx
call fcn.0045a67c
mov edi, dword [ebx + 8]
mov dword [ebp - 0x10], ebx
cmp dword [0x4bef08], 0
jne 0x456de8
push 0x10
lea eax, [ebp - 0x34]
push eax
push edi
call sub.WSOCK32.dll_bind
jmp 0x456df8
push 0x10
lea edx, [ebp - 0x34]
push edx
push edi
mov eax, dword [ebp - 0x10]
push eax
call fcn.004599f8
inc eax
jne 0x456e4c
xor edx, edx
mov dword [ebx + 0x8c], edx
mov edi, ebx
cmp dword [0x4bef08], 0
jne 0x456e15
call sub.WSOCK32.dll_WSAGetLastError
jmp 0x456e1b
push edi
call fcn.0045adb4
push eax
push ebx
call fcn.00458714
add esp, 8
mov dword [ebx + 0xa4], eax
test esi, esi
je 0x456e41
mov ecx, dword [ebx + 0xa4]
push ecx
push 4
push ebx
call fcn.00458824
add esp, 0xc
mov eax, dword [ebx + 0xa4]
jmp 0x456fa4
mov dword [ebp - 0x14], 1
mov eax, dword [ebx + 8]
mov edx, ebx
cmp dword [0x4bef08], 0
jne 0x456e72
lea ecx, [ebp - 0x14]
push ecx
push 0x8004667e
push eax
call sub.WSOCK32.dll_ioctlsocket
jmp 0x456e82
lea ecx, [ebp - 0x14]
push ecx
push 0x8004667e
push eax
push edx
call fcn.00459bb0
mov edi, dword [ebx + 0x10]
mov eax, dword [ebx + 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ebx
cmp dword [0x4bef08], 0
jne 0x456eaa
push 0x30
push 0x400
push edi
mov edx, dword [ebp - 0x18]
push edx
call sub.WSOCK32.dll_WSAAsyncSelect
jmp 0x456ebf
push 0x30
push 0x400
push edi
mov eax, dword [ebp - 0x18]
push eax
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0045b6a0
test eax, eax
je 0x456ef1
xor ecx, ecx
mov eax, 0x14
mov dword [ebx + 0x8c], ecx
mov dword [ebx + 0xa4], eax
test esi, esi
je 0x456ee6
push eax
push 4
push ebx
call fcn.00458824
add esp, 0xc
mov eax, dword [ebx + 0xa4]
jmp 0x456fa4
cmp dword [ebx + 0x44], 0
je 0x456efc
xor edx, edx
mov dword [ebx + 0x34], edx
lea edi, [ebx + 0x94]
mov eax, dword [ebx + 8]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ebx
cmp dword [0x4bef08], 0
jne 0x456f22
push 0x10
push edi
mov edx, dword [ebp - 0x20]
push edx
call sub.WSOCK32.dll_connect
jmp 0x456f32
push 0x10
push edi
mov ecx, dword [ebp - 0x20]
push ecx
mov eax, dword [ebp - 0x24]
push eax
call fcn.00459b18
inc eax
jne 0x456fa2
mov edi, ebx
cmp dword [0x4bef08], 0
jne 0x456f47
call sub.WSOCK32.dll_WSAGetLastError
jmp 0x456f4d
push edi
call fcn.0045adb4
cmp eax, 0x2733
je 0x456fa2
xor edx, edx
mov dword [ebx + 0x8c], edx
mov edi, ebx
cmp dword [0x4bef08], 0
jne 0x456f6e
call sub.WSOCK32.dll_WSAGetLastError
jmp 0x456f74
push edi
call fcn.0045adb4
push eax
push ebx
call fcn.00458714
add esp, 8
mov dword [ebx + 0xa4], eax
test esi, esi
je 0x456f9a
mov ecx, dword [ebx + 0xa4]
push ecx
push 4
push ebx
call fcn.00458824
add esp, 0xc
mov eax, dword [ebx + 0xa4]
jmp 0x456fa4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret