Function at 0x1000e060
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 0x1000e083
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 0x1000e09f
mov dword [eax], 0xa
mov eax, dword [eax]
lea ecx, [esp + 0x38]
push eax
push str.0000_d
push ecx
call fcn.10012e77
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 0x1000e0bd
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.10012e77
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.1001322f
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.1000f840
add esp, 0x28
test eax, eax
push ebp
jne 0x1000e199
call fcn.10013146
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x174
ret
call fcn.10013146
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 0x1000e2ca
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 0x1000e2e4
je 0x1000e2ff
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0x80]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1000e1bf
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 0x1000e294
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x1000e319
jmp 0x1000e1bf
cmp eax, edi
mov dword [esp + 0x1c], ebx
jge 0x1000e2ad
mov ecx, dword [esp + 0x20]
sub edi, eax
add ecx, eax
mov dword [esp + 0x20], ecx
jmp 0x1000e1bf
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1000e334
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 0x1000e1bf
mov eax, dword [esp + 0x10]
push eax
call fcn.1000f960
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.1000f960
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.1000f960
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.1000f960
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.1000f960
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.1000e510
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x1000e3bf
lea esi, [esp + 0x14]
lea eax, [ebp + 0xc]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x1000e39e
test cl, cl
je 0x1000e39a
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x1000e39e
add eax, 2
add esi, 2
test cl, cl
jne 0x1000e376
xor eax, eax
jmp 0x1000e3a3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1000e45c
mov eax, dword [ebp + 8]
push eax
call fcn.10013146
push ebp
call fcn.10013146
add esp, 8
jmp 0x1000e349
xor ecx, ecx
lea edx, [esp + 0x24]
mov dword [esp + 0x24], ecx
push edx
push esi
mov byte [esp + 0x30], cl
call fcn.1000e4c0
add esp, 8
lea esi, [esp + 0x14]
lea eax, [esp + 0x24]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x1000e403
test cl, cl
je 0x1000e3ff
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x1000e403
add eax, 2
add esi, 2
test cl, cl
jne 0x1000e3df
xor eax, eax
jmp 0x1000e408
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1000e41f
push 0x64
call fcn.1000f830
add esp, 4
mov dword [esp + 0x1c], ebx
jmp 0x1000e349
cmp edi, dword [esp + 0x194]
jge 0x1000e437
push 0x64
call fcn.1000f830
add esp, 4
jmp 0x1000e349
mov eax, dword [esp + 0x188]
lea edx, [esp + 0x14]
mov ecx, dword [eax + 0xc]
push ecx
push edx
call fcn.1000f6b0
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.1001322f
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.10013146
push ebp
call fcn.10013146
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x174
ret