Function at 0x4256c0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff988
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x678], ecx
mov dword [ebp - 0x674], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004042b8
mov eax, dword [ebp - 8]
call fcn.004042b8
xor eax, eax
push ebp
push 0x4259a1
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
mov edx, 0x4259bc
mov eax, dword [ebp - 4]
call fcn.004110e4
test al, al
je 0x425969
lea eax, [ebp - 4]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x4259d8
call fcn.004043b0
mov edx, eax
inc edx
mov ecx, 0xff
mov eax, dword [ebp - 4]
call fcn.00404328
lea eax, [ebp - 0x10]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x4259e4
call fcn.004043b0
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404328
lea eax, [ebp - 0x674]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x4259e4
call fcn.004043b0
mov edx, eax
inc edx
mov ecx, 6
mov eax, dword [ebp - 4]
call fcn.00404328
mov eax, dword [ebp - 0x674]
call fcn.00410efc
mov ebx, eax
push 0x11
push 2
push 2
call sub.wsock32.dll_socket
mov esi, eax
mov word [ebp - 0x34], 2
xor eax, eax
mov dword [ebp - 0x30], eax
push ebx
call sub.wsock32.dll_htons
mov word [ebp - 0x32], ax
mov dword [ebp - 0x18], 1
push 4
lea eax, [ebp - 0x18]
push eax
push 4
push 0xffff
push esi
call sub.wsock32.dll_setsockopt
inc eax
je 0x425969
push 0x10
lea eax, [ebp - 0x34]
push eax
push esi
call sub.wsock32.dll_bind
inc eax
je 0x425969
mov dword [ebp - 0xc], esi
mov edx, 0x4259f0
mov eax, dword [ebp - 8]
call fcn.004110e4
test al, al
je 0x425832
mov eax, dword [ebp - 0x10]
call fcn.004042c8
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
call fcn.004042c8
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x1c], eax
push 8
lea eax, [ebp - 0x20]
push eax
push 5
push 0
push esi
call sub.wsock32.dll_setsockopt
jmp 0x425969
cmp byte [0x4782dc], 0
je 0x4258a7
xor ebx, ebx
lea ecx, [ebp - 0x14]
mov dl, 0x7c
xor eax, eax
call fcn.004254a8
mov eax, dword [ebp - 0x14]
call fcn.004040d0
dec eax
jle 0x425969
inc ebx
lea eax, [ebp - 8]
push eax
mov ecx, ebx
mov dl, 0x7c
mov eax, dword [ebp - 0x14]
call fcn.00425120
cmp dword [ebp - 8], 0
je 0x425969
mov eax, dword [ebp - 0x10]
call fcn.004042c8
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
call fcn.004042c8
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x1c], eax
push 8
lea eax, [ebp - 0x20]
push eax
push 5
push 0
push esi
call sub.wsock32.dll_setsockopt
jmp 0x425858
push 0
push 0
lea eax, [ebp - 0x24]
push eax
push 0x400
lea eax, [ebp - 0x670]
push eax
push 0
push 0
push 0x4004747f
push esi
call sub.WS2_32.DLL_WSAIoctl_1
inc eax
je 0x425969
mov eax, dword [ebp - 0x24]
mov ecx, 0x4c
cdq
idiv ecx
mov edi, eax
dec edi
test edi, edi
jl 0x425969
inc edi
lea ebx, [ebp - 0x670]
mov eax, dword [ebx]
and eax, 4
cmp eax, 4
je 0x425963
push dword [ebx + 8]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x678]
call fcn.00403fec
mov eax, dword [ebp - 0x678]
mov edx, 0x425a00
call fcn.00404214
je 0x425963
push dword [ebx + 8]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 8]
call fcn.00403fec
mov eax, dword [ebp - 0x10]
call fcn.004042c8
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
call fcn.004042c8
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x1c], eax
push 8
lea eax, [ebp - 0x20]
push eax
push 5
push 0
push esi
call sub.wsock32.dll_setsockopt
add ebx, 0x4c
dec edi
jne 0x4258ee
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4259a8
lea eax, [ebp - 0x678]
mov edx, 2
call fcn.00403e20
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00403e20
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403e20
ret