Function at 0x87fa60
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xbc
mov ebx, dword [ebp + 8]
lea edi, [ebx + 0x38]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
lea edx, [ebx + 0x3c]
mov dword [ebp - 0x78], edx
mov edx, eax
mov eax, dword [ebx + 0x54]
sub eax, dword [ebx + 0x50]
mov ecx, eax
sar ecx, 3
mov eax, edx
mov edx, 0
div ecx
mov eax, dword [ebx + 0x50]
mov ecx, dword [eax + edx*8]
lea eax, [ebx + 0x40]
cmp ecx, eax
je 0x87fad1
jmp 0x87faa7
mov eax, edx
jmp 0x87fad1
mov esi, dword [ebp - 0x78]
mov eax, dword [esi + 0x14]
mov eax, dword [eax + edx*8 + 4]
mov esi, dword [eax]
mov eax, ecx
cmp ecx, esi
je 0x87facb
mov edx, eax
mov eax, dword [eax + 8]
cmp eax, dword [ebp - 0x14]
je 0x87faa3
mov ecx, dword [ecx]
mov eax, ecx
cmp ecx, esi
jne 0x87fab9
mov eax, dword [ebp - 0x78]
add eax, 4
mov edx, eax
lea eax, [edi + 8]
mov ecx, 0
cmp edx, eax
je 0x87fbe1
mov esi, dword [edx + 0xc]
cmp dword [esi + 0x1c], 0
je 0x87faf5
mov esi, dword [esi + 0x1c]
cmp dword [esi + 0x1c], 0
jne 0x87faec
mov eax, dword [edi + 0x24]
mov dword [esi + 0x1c], eax
mov eax, dword [edx + 0xc]
mov dword [edi + 0x24], eax
lea esi, [edi + 4]
mov dword [ebp - 0x7c], edx
lea eax, [edi + 8]
cmp edx, eax
jne 0x87fb2a
mov dword [esp + 8], 0xa6
mov dword [esp + 4], 0x9b0ac0
mov dword [esp], 0x9b0b1e
call sub.msvcrt.dll__assert
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0xa0], eax
mov ecx, dword [eax + 8]
mov eax, dword [esi + 0x18]
sub eax, dword [esi + 0x14]
mov edi, eax
sar edi, 3
mov eax, ecx
mov edx, 0
div edi
mov edi, edx
mov eax, dword [esi + 0x14]
mov edx, dword [ebp - 0xa0]
cmp edx, dword [eax + edi*8]
sete cl
cmp edx, dword [eax + edi*8 + 4]
sete al
test cl, cl
je 0x87fb8b
test al, al
je 0x87fb79
mov ecx, dword [esi + 0x14]
lea eax, [esi + 4]
mov dword [ecx + edi*8 + 4], eax
mov dword [ecx + edi*8], eax
jmp 0x87fb9e
test cl, cl
je 0x87fb8b
mov eax, dword [esi + 0x14]
lea edx, [eax + edi*8]
mov eax, dword [edx]
mov eax, dword [eax]
mov dword [edx], eax
jmp 0x87fb9e
test al, al
je 0x87fb9e
mov eax, dword [esi + 0x14]
lea edx, [eax + edi*8]
mov eax, dword [edx + 4]
mov eax, dword [eax + 4]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
mov eax, ecx
mov ecx, dword [ecx]
mov edx, dword [esi + 0xc]
cmp edx, eax
je 0x87fbda
cmp edx, ecx
je 0x87fbda
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.00815e84
dec dword [esi]
mov ecx, 1
mov byte [ebp - 0x71], cl
mov byte [ebp - 0x7d], 0
lea edi, [ebx + 0x64]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x24], esi
lea eax, [ebx + 0x68]
mov dword [ebp - 0x84], eax
mov eax, dword [ebx + 0x80]
sub eax, dword [ebx + 0x7c]
mov ecx, eax
sar ecx, 3
mov eax, esi
mov edx, 0
div ecx
mov eax, dword [ebx + 0x7c]
mov ecx, dword [eax + edx*8]
lea eax, [ebx + 0x6c]
cmp ecx, eax
je 0x87fc54
jmp 0x87fc24
mov eax, edx
jmp 0x87fc54
mov esi, dword [ebp - 0x84]
mov eax, dword [esi + 0x14]
mov eax, dword [eax + edx*8 + 4]
mov esi, dword [eax]
mov eax, ecx
cmp ecx, esi
je 0x87fc4b
mov edx, eax
mov eax, dword [eax + 8]
cmp eax, dword [ebp - 0x24]
je 0x87fc20
mov ecx, dword [ecx]
mov eax, ecx
cmp ecx, esi
jne 0x87fc39
mov eax, dword [ebp - 0x84]
add eax, 4
mov edx, eax
lea eax, [edi + 8]
mov ecx, 0
cmp edx, eax
je 0x87fd6d
mov esi, dword [edx + 0xc]
cmp dword [esi + 0x1c], 0
je 0x87fc78
mov esi, dword [esi + 0x1c]
cmp dword [esi + 0x1c], 0
jne 0x87fc6f
mov eax, dword [edi + 0x24]
mov dword [esi + 0x1c], eax
mov eax, dword [edx + 0xc]
mov dword [edi + 0x24], eax
lea esi, [edi + 4]
mov dword [ebp - 0x88], edx
lea eax, [edi + 8]
cmp edx, eax
jne 0x87fcb0
mov dword [esp + 8], 0xa6
mov dword [esp + 4], 0x9b0ac0
mov dword [esp], 0x9b0b1e
call sub.msvcrt.dll__assert
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0xa0], eax
mov ecx, dword [eax + 8]
mov eax, dword [esi + 0x18]
sub eax, dword [esi + 0x14]
mov edi, eax
sar edi, 3
mov eax, ecx
mov edx, 0
div edi
mov edi, edx
mov eax, dword [esi + 0x14]
mov edx, dword [ebp - 0xa0]
cmp edx, dword [eax + edi*8]
sete cl
cmp edx, dword [eax + edi*8 + 4]
sete al
test cl, cl
je 0x87fd14
test al, al
je 0x87fd02
mov ecx, dword [esi + 0x14]
lea eax, [esi + 4]
mov dword [ecx + edi*8 + 4], eax
mov dword [ecx + edi*8], eax
jmp 0x87fd27
test cl, cl
je 0x87fd14
mov eax, dword [esi + 0x14]
lea edx, [eax + edi*8]
mov eax, dword [edx]
mov eax, dword [eax]
mov dword [edx], eax
jmp 0x87fd27
test al, al
je 0x87fd27
mov eax, dword [esi + 0x14]
lea edx, [eax + edi*8]
mov eax, dword [edx + 4]
mov eax, dword [eax + 4]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
mov eax, ecx
mov ecx, dword [ecx]
mov edx, dword [esi + 0xc]
cmp edx, eax
je 0x87fd66
cmp edx, ecx
je 0x87fd66
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.00815e84
dec dword [esi]
mov ecx, 1
test cl, cl
jne 0x87fd77
cmp byte [ebp - 0x71], 0
je 0x87fd7b
mov byte [ebp - 0x7d], 1
movzx eax, byte [ebp - 0x7d]
mov byte [ebp - 0x71], al
mov byte [ebp - 0x89], 0
lea edi, [ebx + 0x90]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x34], edx
lea esi, [ebx + 0x94]
mov dword [ebp - 0x90], esi
mov eax, dword [ebx + 0xac]
sub eax, dword [ebx + 0xa8]
mov ecx, eax
sar ecx, 3
mov eax, edx
mov edx, 0
div ecx
mov eax, dword [ebx + 0xa8]
mov ecx, dword [eax + edx*8]
lea eax, [ebx + 0x98]
cmp ecx, eax
je 0x87fe04
jmp 0x87fdd4
mov eax, edx
jmp 0x87fe04
mov esi, dword [ebp - 0x90]
mov eax, dword [esi + 0x14]
mov eax, dword [eax + edx*8 + 4]
mov esi, dword [eax]
mov eax, ecx
cmp ecx, esi
je 0x87fdfb
mov edx, eax
mov eax, dword [eax + 8]
cmp eax, dword [ebp - 0x34]
je 0x87fdd0
mov ecx, dword [ecx]
mov eax, ecx
cmp ecx, esi
jne 0x87fde9
mov eax, dword [ebp - 0x90]
add eax, 4
mov edx, eax
lea eax, [edi + 8]
mov ecx, 0
cmp edx, eax
je 0x87ff1d
mov esi, dword [edx + 0xc]
cmp dword [esi + 0x1c], 0
je 0x87fe28
mov esi, dword [esi + 0x1c]
cmp dword [esi + 0x1c], 0
jne 0x87fe1f
mov eax, dword [edi + 0x24]
mov dword [esi + 0x1c], eax
mov eax, dword [edx + 0xc]
mov dword [edi + 0x24], eax
lea esi, [edi + 4]
mov dword [ebp - 0x94], edx
lea eax, [edi + 8]
cmp edx, eax
jne 0x87fe60
mov dword [esp + 8], 0xa6
mov dword [esp + 4], 0x9b0ac0
mov dword [esp], 0x9b0b1e
call sub.msvcrt.dll__assert
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0xa0], eax
mov ecx, dword [eax + 8]
mov eax, dword [esi + 0x18]
sub eax, dword [esi + 0x14]
mov edi, eax
sar edi, 3
mov eax, ecx
mov edx, 0
div edi
mov edi, edx
mov eax, dword [esi + 0x14]
mov edx, dword [ebp - 0xa0]
cmp edx, dword [eax + edi*8]
sete cl
cmp edx, dword [eax + edi*8 + 4]
sete al
test cl, cl
je 0x87fec4
test al, al
je 0x87feb2
mov ecx, dword [esi + 0x14]
lea eax, [esi + 4]
mov dword [ecx + edi*8 + 4], eax
mov dword [ecx + edi*8], eax
jmp 0x87fed7
test cl, cl
je 0x87fec4
mov eax, dword [esi + 0x14]
lea edx, [eax + edi*8]
mov eax, dword [edx]
mov eax, dword [eax]
mov dword [edx], eax
jmp 0x87fed7
test al, al
je 0x87fed7
mov eax, dword [esi + 0x14]
lea edx, [eax + edi*8]
mov eax, dword [edx + 4]
mov eax, dword [eax + 4]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
mov eax, ecx
mov ecx, dword [ecx]
mov edx, dword [esi + 0xc]
cmp edx, eax
je 0x87ff16
cmp edx, ecx
je 0x87ff16
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.00815e84
dec dword [esi]
mov ecx, 1
test cl, cl
jne 0x87ff27
cmp byte [ebp - 0x71], 0
je 0x87ff2e
mov byte [ebp - 0x89], 1
cmp byte [ebp - 0x89], 0
je 0x88000e
add ebx, 0x30
mov byte [ebp - 0x49], 0
lea esi, [ebp - 0x48]
lea eax, [ebp - 0x49]
mov dword [esi + 4], eax
mov dword [ebp - 0x48], 1
lea edi, [ebp - 0x58]
mov dword [ebp - 0x58], 0
call fcn.007b0de4
mov dword [edi + 4], eax
mov ebx, dword [ebx + 4]
mov dword [esp], 0
call sub.WSOCK32.DLL_WSASetLastError
sub esp, 4
mov dword [ebp - 0x60], 0
call fcn.007b0de4
lea edx, [ebp - 0x60]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x64], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x64]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.WS2_32.DLL_WSASend
sub esp, 0x1c
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.00874a6c
test eax, eax
jne 0x88000e
mov dword [esp], 0
call sub.WSOCK32.DLL_WSASetLastError
sub esp, 4
mov dword [ebp - 0x70], 0
call fcn.007b0de4
lea edx, [ebp - 0x70]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x70]
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret