Function at 0x424844
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.005c5b80
add esp, 0xc
push 0x10
push 0
lea ecx, [ebp - 0x14]
push ecx
call fcn.005c5b80
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 0x4248a5
mov ecx, dword [ebp - 0x30]
call fcn.0042465e
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 0x4248f4
push 0
push 0x61023c
push str.Initialize_socket_fai
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x424a4d
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 0x4249b2
mov eax, dword [0x6366dc]
add eax, 0xa
mov dword [0x6366dc], eax
mov ecx, dword [0x6366dc]
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 0x4249b2
mov ecx, dword [0x6366dc]
add ecx, 0xa
mov dword [0x6366dc], ecx
mov edx, dword [0x6366dc]
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 0x4249b2
push 0
push 0x61025c
push 0x610264
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 0x424a4d
cmp dword [ebp - 4], 0xffffffff
jne 0x4249bf
xor eax, eax
jmp 0x424a4d
push 0x10
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.WSOCK32.dll_connect
test eax, eax
jge 0x4249f0
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 0x424a4d
push 0x21
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [0x277c04c]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.WSOCK32.dll_WSAAsyncSelect
test eax, eax
jle 0x424a20
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 0x424a4d
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