Function at 0x10009e50
Capabilities:
Check for time delay via gettickcount
Get socket status
Send data
Send data on socket

Disassembly:
sub esp, 0x174
push ebx
push ebp
mov ebp, dword [esp + 0x188]
push esi
test ebp, ebp
push edi
jg 0x10009e73
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x174
ret
mov eax, dword [esp + 0x188]
mov edx, dword [eax]
inc edx
mov ecx, edx
mov dword [eax], edx
cmp ecx, 0x270f
jle 0x10009e8f
mov dword [eax], 0xa
mov eax, dword [eax]
lea ecx, [esp + 0x38]
push eax
push str.0000_d
push ecx
call fcn.10010c37
lea esi, [esp + 0x44]
add esp, 0xc
xor edx, edx
sub esi, 4
lea edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, esi
inc edx
cmp edx, 4
mov al, byte [ecx + edx - 1]
mov byte [esp + edx + 0x13], al
jl 0x10009ead
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push ebp
push edx
lea eax, [esp + 0x58]
push str._Msg_s__ld__Msg_s_
push eax
mov byte [esp + 0x2c], 0
call fcn.10010c37
lea edi, [esp + 0x60]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
add ebx, ebp
push ebx
call fcn.10010fc5
mov ebp, eax
lea edi, [esp + 0x64]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [esp + 0x64]
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x2c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x64]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
mov esi, dword [esp + 0x1a4]
dec ecx
mov edi, ecx
mov ecx, dword [esp + 0x1a8]
mov eax, ecx
add edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 0
push ecx
push ebx
push ebp
push edx
call fcn.1000b630
add esp, 0x28
test eax, eax
push ebp
jne 0x10009f89
call fcn.10010edc
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x174
ret
call fcn.10010edc
mov eax, dword [esp + 0x14]
add esp, 4
mov ecx, dword [eax]
mov edx, dword [eax + 8]
mov edi, dword [eax + 4]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x194]
mov ebx, eax
sub eax, esi
cmp eax, ecx
jg 0x1000a0ba
sub ecx, eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
mov ebp, dword [esp + 0x188]
shr eax, 0x1f
add edx, eax
mov eax, ecx
mov dword [esp + 0x30], edx
mov ecx, 0x3e8
cdq
idiv ecx
mov esi, dword [ebp + 0xc]
lea ecx, [esp + 0x80]
mov dword [esp + 0x84], esi
mov dword [esp + 0x80], 1
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
lea eax, [esp + 0x30]
push eax
push 0
shl edx, 3
push ecx
inc esi
push 0
push esi
mov dword [esp + 0x48], edx
call sub.WS2_32.dll_select
test eax, eax
jl 0x1000a0d4
je 0x1000a0ef
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0x80]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10009faf
mov ecx, dword [esp + 0x20]
mov edx, ebp
push 0
push edi
mov eax, dword [edx + 0xc]
push ecx
push eax
call sub.WS2_32.dll_send
test eax, eax
jge 0x1000a084
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x1000a109
jmp 0x10009faf
cmp eax, edi
mov dword [esp + 0x1c], ebx
jge 0x1000a09d
mov ecx, dword [esp + 0x20]
sub edi, eax
add ecx, eax
mov dword [esp + 0x20], ecx
jmp 0x10009faf
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1000a124
mov ecx, dword [eax]
mov edx, dword [eax + 8]
mov edi, dword [eax + 4]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], edx
jmp 0x10009faf
mov eax, dword [esp + 0x10]
push eax
call fcn.1000b750
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x174
ret
mov ecx, dword [esp + 0x10]
push ecx
call fcn.1000b750
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x174
ret
mov edx, dword [esp + 0x10]
push edx
call fcn.1000b750
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x174
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.1000b750
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x174
ret
mov ecx, dword [esp + 0x10]
push ecx
call fcn.1000b750
add esp, 4
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [esp + 0x1c]
mov ebx, eax
mov edi, ebx
sub edi, esi
mov esi, dword [esp + 0x188]
push esi
call fcn.1000a300
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x1000a1af
lea esi, [esp + 0x14]
lea eax, [ebp + 0xc]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x1000a18e
test cl, cl
je 0x1000a18a
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x1000a18e
add eax, 2
add esi, 2
test cl, cl
jne 0x1000a166
xor eax, eax
jmp 0x1000a193
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1000a24c
mov eax, dword [ebp + 8]
push eax
call fcn.10010edc
push ebp
call fcn.10010edc
add esp, 8
jmp 0x1000a139
xor ecx, ecx
lea edx, [esp + 0x24]
mov dword [esp + 0x24], ecx
push edx
push esi
mov byte [esp + 0x30], cl
call fcn.1000a2b0
add esp, 8
lea esi, [esp + 0x14]
lea eax, [esp + 0x24]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x1000a1f3
test cl, cl
je 0x1000a1ef
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x1000a1f3
add eax, 2
add esi, 2
test cl, cl
jne 0x1000a1cf
xor eax, eax
jmp 0x1000a1f8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1000a20f
push 0x64
call fcn.1000b620
add esp, 4
mov dword [esp + 0x1c], ebx
jmp 0x1000a139
cmp edi, dword [esp + 0x194]
jge 0x1000a227
push 0x64
call fcn.1000b620
add esp, 4
jmp 0x1000a139
mov eax, dword [esp + 0x188]
lea edx, [esp + 0x14]
mov ecx, dword [eax + 0xc]
push ecx
push edx
call fcn.1000b4a0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x174
ret
mov eax, dword [ebp + 4]
push eax
call fcn.10010fc5
mov ecx, dword [esp + 0x19c]
mov edi, eax
mov dword [ecx], eax
mov ecx, dword [ebp + 4]
mov esi, dword [ebp + 8]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1a0]
mov eax, dword [ebp + 4]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
push edx
call fcn.10010edc
push ebp
call fcn.10010edc
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x174
ret