Function at 0x426337
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x30], ecx
push 0x10
push 0
lea eax, [ebp - 0x28]
push eax
call fcn.005998e0
add esp, 0xc
push 0x10
push 0
lea ecx, [ebp - 0x14]
push ecx
call fcn.005998e0
add esp, 0xc
mov edx, dword [ebp - 0x30]
mov dword [edx + 0xc], 0
mov eax, dword [ebp - 0x30]
mov dword [eax + 0x18], 0
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x14], 0
mov eax, dword [ebp - 0x30]
cmp dword [eax], 0
je 0x426398
mov ecx, dword [ebp - 0x30]
call fcn.0042617a
mov ecx, dword [ebp + 8]
push ecx
call sub.WSOCK32.dll_inet_addr
mov dword [ebp - 0x24], eax
mov word [ebp - 0x28], 2
mov dx, word [ebp + 0xc]
push edx
call sub.WSOCK32.dll_htons
mov word [ebp - 0x26], ax
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4263e7
push 0
push 0x5bbf0c
push str.Initialize_socket_fai
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x426540
mov word [ebp - 0x14], 2
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov word [ebp - 0x12], 0
push 0x10
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
jne 0x4264a5
mov eax, dword [0x5d4bfc]
add eax, 0xa
mov dword [0x5d4bfc], eax
mov ecx, dword [0x5d4bfc]
add ecx, 0x1388
push ecx
call sub.WSOCK32.dll_htons
mov word [ebp - 0x12], ax
push 0x10
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
jne 0x4264a5
mov ecx, dword [0x5d4bfc]
add ecx, 0xa
mov dword [0x5d4bfc], ecx
mov edx, dword [0x5d4bfc]
add edx, 0x1388
push edx
call sub.WSOCK32.dll_htons
mov word [ebp - 0x12], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
jne 0x4264a5
push 0
push 0x5bbf2c
push 0x5bbf34
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [ebp - 4]
push edx
call sub.WSOCK32.dll_closesocket
xor eax, eax
jmp 0x426540
cmp dword [ebp - 4], 0xffffffff
jne 0x4264b2
xor eax, eax
jmp 0x426540
push 0x10
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.WSOCK32.dll_connect
test eax, eax
jge 0x4264e3
call sub.WSOCK32.dll_WSAGetLastError
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 4]
push edx
call sub.WSOCK32.dll_closesocket
mov eax, dword [ebp - 0x30]
mov dword [eax], 0
xor eax, eax
jmp 0x426540
push 0x21
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [0x13c1ad4]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.WSOCK32.dll_WSAAsyncSelect
test eax, eax
jle 0x426513
mov ecx, dword [ebp - 4]
push ecx
call sub.WSOCK32.dll_closesocket
mov edx, dword [ebp - 0x30]
mov dword [edx], 0
xor eax, eax
jmp 0x426540
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov dword [ebp - 0x18], 0x1f11f311
push 0
push 4
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.WSOCK32.dll_send
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x1c], 1
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x10