Function at 0x425300
Capabilities:
Act as tcp client
Check for time delay via gettickcount
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x552c20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push ebx
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push 0
mov ebx, 1
push ebx
push 2
mov dword [ebp - 0x20], eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42537b
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x425368
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push edi
lea ecx, [ebp - 0x1c]
push ecx
push 0x8004667e
push esi
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp + 8]
mov edx, 2
push eax
lea ecx, [ebp - 0x10]
mov word [ebp - 0x38], dx
call fcn.00404560
mov ecx, dword [ebp - 0x10]
mov edi, dword [ecx - 0xc]
mov byte [ebp - 4], bl
test edi, edi
jns 0x4253bb
push 0x80070057
call fcn.004035e0
mov eax, dword [ecx - 8]
mov edx, ebx
sub edx, dword [ecx - 4]
sub eax, edi
or eax, edx
jge 0x4253d5
push edi
lea ecx, [ebp - 0x10]
call fcn.00403d90
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [ebp + 0xc]
push ecx
mov dword [ebp - 0x34], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [ebp - 0x38]
push edx
push esi
mov word [ebp - 0x36], ax
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x28]
push eax
push 0
lea ecx, [ebp - 0x13c]
push ecx
push 0
push 0
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x18], 4
call dword [sym.imp.WS2_32.dll_select]
mov edi, dword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
jle 0x4254dd
lea edx, [ebp - 0x13c]
push edx
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4254dd
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0x1007
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
push esi
call edi
cmp dword [ebp - 0x14], 0
jne 0x4254dd
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov esi, eax
mov eax, dword [ebp - 0x10]
sub esi, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4254a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4254ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push esi
call edi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x425503
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x425529
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret