Function at 0x428838
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x51c], 2
push 0
call fcn.0040ef0c
pop ecx
mov dword [ebx + 0x868], eax
cmp dword [ebx + 0x52c], 0
je 0x4288e0
cmp word [ebx + 0x520], 0
jne 0x4288e0
cmp dword [0x4f64cc], 0
je 0x4288c3
cmp dword [0x4f64c8], 0
je 0x4288c3
mov eax, dword [0x4f29d4]
push eax
push 0
push 0x523
call fcn.0041f178
push eax
mov edx, dword [ebx]
push edx
call fcn.004bc548
call fcn.00427024
mov esi, eax
mov dword [ebx + 0x528], esi
push esi
push 1
push 0
add ebx, 0x4b8
push ebx
call fcn.00467944
mov eax, 1
jmp 0x428ab1
push 8
push ebx
call fcn.004273a4
test eax, eax
je 0x4288d9
mov eax, 1
jmp 0x428ab1
xor eax, eax
jmp 0x428ab1
lea edx, [ebx + 0x4b8]
push edx
call sub.WSOCK32.dll_inet_addr
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x428957
cmp dword [0x4f64cc], 0
je 0x428910
cmp dword [0x4f64c8], 0
je 0x428910
cmp dword [0x4f64c4], 0
jne 0x428957
cmp dword [ebx + 0x530], 0
je 0x42893d
push 7
push 0
lea ecx, [ebx + 0x4b8]
push ecx
lea eax, [ebx + 0x3f0]
push eax
mov edx, dword [ebx]
push edx
call fcn.00455180
mov eax, 1
jmp 0x428ab1
push ebx
push 0
push 0x524
call fcn.0041f178
push eax
call fcn.004271d4
xor eax, eax
jmp 0x428ab1
cmp dword [0x4f64cc], 0
je 0x4289bc
cmp dword [0x4f64c8], 0
je 0x4289bc
cmp dword [ebx + 0x530], 0
je 0x4289bc
mov edx, dword [0x4f29d4]
push edx
push 0
push 0x523
call fcn.0041f178
push eax
mov ecx, dword [ebx]
push ecx
call fcn.004bc548
call fcn.00427024
mov esi, eax
mov dword [ebx + 0x528], esi
push esi
push 0
mov ax, word [ebx + 0x520]
push eax
add ebx, 0x4b8
push ebx
call fcn.00467944
mov eax, 1
jmp 0x428ab1
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 4]
mov dword [eax], edx
xor ecx, ecx
mov dword [eax + 4], ecx
mov word [ebp - 0x12], 4
mov word [ebp - 0x14], 2
lea esi, [ebp - 0x1c]
push 0x10
push 0
lea eax, [ebp - 0x2c]
push eax
call fcn.00401198
add esp, 0xc
mov word [ebp - 0x2c], 2
movsx edx, word [esi + 0xa]
push edx
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
push eax
lea edx, [ebp - 0x28]
push edx
call fcn.00401128
add esp, 0xc
mov cx, word [ebx + 0x520]
push ecx
call sub.WSOCK32.dll_htons
mov word [ebp - 0x2a], ax
mov eax, dword [esi + 0xc]
mov edx, dword [eax]
mov ecx, dword [edx]
mov dword [ebp - 0x28], ecx
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
mov dword [ebx + 0x86c], eax
cmp eax, 0xffffffff
jne 0x428a50
push ebx
push 0
push 0x518
call fcn.0041f178
push eax
call fcn.004271d4
xor eax, eax
jmp 0x428ab1
mov edx, dword [ebx + 0x86c]
push edx
call fcn.004ef808
push 0x10
push 0x41c
mov ecx, dword [0x4fd9ec]
push ecx
mov eax, dword [ebx + 0x86c]
push eax
call sub.WSOCK32.dll_WSAAsyncSelect
push 0x10
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebx + 0x86c]
push ecx
call sub.WSOCK32.dll_connect
test eax, eax
jge 0x428aaf
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x428aaf
push ebx
push 0
push 0x525
call fcn.0041f178
push eax
call fcn.004271d4
xor eax, eax
jmp 0x428ab1
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4