Function at 0x101d1c70
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 0x101d1c93
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 0x101d1caf
mov dword [eax], 0xa
mov eax, dword [eax]
lea ecx, [esp + 0x38]
push eax
push str.0000_d
push ecx
call fcn.10285353
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 0x101d1ccd
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.10285353
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.10284357
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.101d3440
add esp, 0x28
test eax, eax
push ebp
jne 0x101d1da9
call fcn.1028426e
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x174
ret
call fcn.1028426e
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 0x101d1eda
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 0x101d1ef4
je 0x101d1f0f
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0x80]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x101d1dcf
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 0x101d1ea4
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x101d1f29
jmp 0x101d1dcf
cmp eax, edi
mov dword [esp + 0x1c], ebx
jge 0x101d1ebd
mov ecx, dword [esp + 0x20]
sub edi, eax
add ecx, eax
mov dword [esp + 0x20], ecx
jmp 0x101d1dcf
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x101d1f44
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 0x101d1dcf
mov eax, dword [esp + 0x10]
push eax
call fcn.101d3560
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.101d3560
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.101d3560
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.101d3560
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.101d3560
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.101d2120
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x101d1fcf
lea esi, [esp + 0x14]
lea eax, [ebp + 0xc]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x101d1fae
test cl, cl
je 0x101d1faa
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x101d1fae
add eax, 2
add esi, 2
test cl, cl
jne 0x101d1f86
xor eax, eax
jmp 0x101d1fb3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x101d206c
mov eax, dword [ebp + 8]
push eax
call fcn.1028426e
push ebp
call fcn.1028426e
add esp, 8
jmp 0x101d1f59
xor ecx, ecx
lea edx, [esp + 0x24]
mov dword [esp + 0x24], ecx
push edx
push esi
mov byte [esp + 0x30], cl
call fcn.101d20d0
add esp, 8
lea esi, [esp + 0x14]
lea eax, [esp + 0x24]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x101d2013
test cl, cl
je 0x101d200f
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x101d2013
add eax, 2
add esi, 2
test cl, cl
jne 0x101d1fef
xor eax, eax
jmp 0x101d2018
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x101d202f
push 0x64
call fcn.10240d50
add esp, 4
mov dword [esp + 0x1c], ebx
jmp 0x101d1f59
cmp edi, dword [esp + 0x194]
jge 0x101d2047
push 0x64
call fcn.10240d50
add esp, 4
jmp 0x101d1f59
mov eax, dword [esp + 0x188]
lea edx, [esp + 0x14]
mov ecx, dword [eax + 0xc]
push ecx
push edx
call fcn.101d32c0
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.10284357
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.1028426e
push ebp
call fcn.1028426e
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x174
ret