Function at 0x101c2b60
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 0x101c2b83
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 0x101c2b9f
mov dword [eax], 0xa
mov eax, dword [eax]
lea ecx, [esp + 0x38]
push eax
push str.0000_d
push ecx
call fcn.10276403
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 0x101c2bbd
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.10276403
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.10275407
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.101c4330
add esp, 0x28
test eax, eax
push ebp
jne 0x101c2c99
call fcn.1027531e
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x174
ret
call fcn.1027531e
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 0x101c2dca
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 0x101c2de4
je 0x101c2dff
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0x80]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x101c2cbf
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 0x101c2d94
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x101c2e19
jmp 0x101c2cbf
cmp eax, edi
mov dword [esp + 0x1c], ebx
jge 0x101c2dad
mov ecx, dword [esp + 0x20]
sub edi, eax
add ecx, eax
mov dword [esp + 0x20], ecx
jmp 0x101c2cbf
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x101c2e34
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 0x101c2cbf
mov eax, dword [esp + 0x10]
push eax
call fcn.101c4450
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.101c4450
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.101c4450
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.101c4450
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.101c4450
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.101c3010
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x101c2ebf
lea esi, [esp + 0x14]
lea eax, [ebp + 0xc]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x101c2e9e
test cl, cl
je 0x101c2e9a
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x101c2e9e
add eax, 2
add esi, 2
test cl, cl
jne 0x101c2e76
xor eax, eax
jmp 0x101c2ea3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x101c2f5c
mov eax, dword [ebp + 8]
push eax
call fcn.1027531e
push ebp
call fcn.1027531e
add esp, 8
jmp 0x101c2e49
xor ecx, ecx
lea edx, [esp + 0x24]
mov dword [esp + 0x24], ecx
push edx
push esi
mov byte [esp + 0x30], cl
call fcn.101c2fc0
add esp, 8
lea esi, [esp + 0x14]
lea eax, [esp + 0x24]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x101c2f03
test cl, cl
je 0x101c2eff
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x101c2f03
add eax, 2
add esi, 2
test cl, cl
jne 0x101c2edf
xor eax, eax
jmp 0x101c2f08
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x101c2f1f
push 0x64
call fcn.10231c40
add esp, 4
mov dword [esp + 0x1c], ebx
jmp 0x101c2e49
cmp edi, dword [esp + 0x194]
jge 0x101c2f37
push 0x64
call fcn.10231c40
add esp, 4
jmp 0x101c2e49
mov eax, dword [esp + 0x188]
lea edx, [esp + 0x14]
mov ecx, dword [eax + 0xc]
push ecx
push edx
call fcn.101c41b0
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.10275407
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.1027531e
push ebp
call fcn.1027531e
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x174
ret