Function at 0x100032b0
Capabilities:
Check for time delay via gettickcount
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
sub esp, 0x270
push ebx
push ebp
push esi
mov esi, dword [esp + 0x280]
push edi
mov edi, ecx
push esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x40], 0x82020476
mov word [esp + 0x44], 0x65
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push esi
mov word [esp + 0x46], ax
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, dword [edi + 0x2a8]
mov esi, dword [esp + 0x42]
lea ecx, [esp + 0x18]
xor edi, edi
push ecx
lea edx, [esp + 0x180]
push edi
push edx
and esi, 0xffff
mov eax, 1
push edi
push edi
add esi, 8
mov dword [esp + 0x194], ebx
mov dword [esp + 0x190], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edi
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x100033d3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x10], eax
push edi
lea eax, [esp + 0x40]
push esi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x100033d3
mov ebp, dword [sym.imp.USER32.dll_PeekMessageA]
add edi, eax
cmp edi, esi
jge 0x100033d3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x10]
cmp eax, 0x1388
jae 0x100033d3
push 1
push 0
push 0
lea ecx, [esp + 0x2c]
push 0
push ecx
call ebp
test eax, eax
je 0x100033b3
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
lea ecx, [esp + 0x2c]
push 0
push ecx
call ebp
test eax, eax
jne 0x1000338a
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, esi
push 0
sub edx, edi
lea eax, [esp + edi + 0x40]
push edx
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x10003360
mov ecx, dword [esp + 0x42]
and ecx, 0xffff
add ecx, 8
cmp edi, ecx
je 0x100033f6
pop edi
pop esi
pop ebp
mov eax, 0x18
pop ebx
add esp, 0x270
ret 4
mov edx, dword [esp + 0x14]
mov ebx, dword [sym.imp.WS2_32.dll_ioctlsocket]
xor esi, esi
mov edi, dword [edx + 0x2a8]
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, eax
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push 0x4004667f
push edi
call ebx
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x10003448
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebp
cmp eax, 0xfa0
jb 0x10003414
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10003470
mov ecx, 0x140
push 0
sub ecx, esi
lea edx, [esp + esi + 0x40]
push ecx
push edx
push edi
call dword [sym.imp.WS2_32.dll_recv]
add esi, eax
mov eax, dword [esp + 0x42]
and eax, 0xffff
add eax, 8
cmp esi, eax
jb 0x1000340c
cmp esi, 1
jge 0x10003487
pop edi
pop esi
pop ebp
mov eax, 0x18
pop ebx
add esp, 0x270
ret 4
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x14]
test eax, eax
mov dword [esi + 0x7d2c8], eax
jne 0x100034c2
mov ecx, dword [esi + 0x2a8]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x2a8], 0xffffffff
pop edi
pop esi
pop ebp
mov eax, 0x18
pop ebx
add esp, 0x270
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x270
ret 4