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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x700
mov eax, dword [0x10180ac]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
cmp ebx, edi
mov esi, ecx
mov dword [ebp - 0x5f8], esi
mov dword [ebp - 0x5f4], eax
je 0x1010337
cmp eax, edi
je 0x1010337
mov edx, dword [ebx + 0x64]
cmp edx, edi
jne 0x10100ed
push 0x57
pop eax
jmp 0x101033c
cmp dword [0x1018540], edi
jne 0x101024f
cmp edx, 1
jne 0x1010137
cmp dword [ebx + 0x50], 0xa
jne 0x101011d
mov ebx, dword [ebx + 0x60]
push edi
push dword [ebx + 4]
push dword [ebx]
push dword [esi + 0xc]
call dword [sym.imp.WSOCK32.dll_send]
mov esi, eax
jmp 0x1010226
mov eax, dword [ebx + 0x60]
push 0x10
add ebx, 0x68
push ebx
push edi
push dword [eax + 4]
push dword [eax]
push dword [esi + 0xc]
call dword [sym.imp.WSOCK32.dll_sendto]
jmp 0x1010116
xor ecx, ecx
cmp edx, edi
mov dword [ebp - 0x5ec], edi
jbe 0x1010155
mov eax, dword [ebx + 0x60]
add eax, 4
add ecx, dword [eax]
add eax, 0xc
dec edx
jne 0x1010149
cmp ecx, edi
jne 0x101015f
mov eax, 0x80070057
jmp 0x101033c
push ecx
lea ecx, [ebp - 0x5e8]
call fcn.0101004c
cmp dword [ebp - 0x5e8], edi
jne 0x1010183
lea ecx, [ebp - 0x5e8]
call fcn.01002b58
jmp 0x101026e
cmp dword [ebx + 0x64], edi
mov dword [ebp - 0x5f0], edi
jbe 0x10101df
xor edx, edx
mov eax, dword [ebx + 0x60]
mov edi, dword [ebp - 0x5ec]
add eax, edx
mov ecx, dword [eax + 4]
mov esi, dword [eax]
mov eax, dword [ebp - 0x5e8]
add edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x60]
mov eax, dword [edx + eax + 4]
add dword [ebp - 0x5ec], eax
inc dword [ebp - 0x5f0]
mov eax, dword [ebp - 0x5f0]
add edx, 0xc
cmp eax, dword [ebx + 0x64]
jb 0x1010190
mov esi, dword [ebp - 0x5f8]
xor edi, edi
cmp dword [ebx + 0x50], 0xa
jne 0x10101fd
push edi
push dword [ebp - 0x5ec]
push dword [ebp - 0x5e8]
push dword [esi + 0xc]
call dword [sym.imp.WSOCK32.dll_send]
jmp 0x1010219
push 0x10
add ebx, 0x68
push ebx
push edi
push dword [ebp - 0x5ec]
push dword [ebp - 0x5e8]
push dword [esi + 0xc]
call dword [sym.imp.WSOCK32.dll_sendto]
lea ecx, [ebp - 0x5e8]
mov esi, eax
call fcn.01002b58
cmp esi, 0xffffffff
jne 0x1010240
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ebx, eax
mov eax, dword [ebp - 0x5f4]
mov dword [eax], edi
jmp 0x1010333
mov eax, dword [ebp - 0x5f4]
xor ebx, ebx
mov dword [eax], esi
jmp 0x1010333
push edx
lea ecx, [ebp - 0x700]
call fcn.01010077
cmp dword [ebp - 0x700], edi
jne 0x1010278
lea ecx, [ebp - 0x700]
call fcn.01002b58
mov eax, 0x8007000e
jmp 0x101033c
cmp dword [ebx + 0x64], edi
mov dword [ebp - 0x5f0], edi
jbe 0x10102d6
mov dword [ebp - 0x5ec], edi
mov ecx, dword [ebx + 0x60]
mov edx, dword [ebp - 0x5ec]
mov ecx, dword [edx + ecx + 4]
mov eax, dword [ebp - 0x5f0]
mov edx, dword [ebp - 0x700]
shl eax, 3
inc dword [ebp - 0x5f0]
mov dword [eax + edx], ecx
mov edx, dword [ebp - 0x5ec]
mov ecx, dword [ebx + 0x60]
mov ecx, dword [edx + ecx]
mov edx, dword [ebp - 0x700]
add dword [ebp - 0x5ec], 0xc
mov dword [eax + edx + 4], ecx
mov eax, dword [ebp - 0x5f0]
cmp eax, dword [ebx + 0x64]
jb 0x1010289
cmp dword [ebx + 0x50], 0xa
push edi
push edi
jne 0x10102f9
push edi
push dword [ebp - 0x5f4]
push dword [ebx + 0x64]
push dword [ebp - 0x700]
push dword [esi + 0xc]
call dword [0x1018540]
jmp 0x1010318
push 0x10
lea eax, [ebx + 0x68]
push eax
push edi
push dword [ebp - 0x5f4]
push dword [ebx + 0x64]
push dword [ebp - 0x700]
push dword [esi + 0xc]
call dword [0x1018544]
cmp eax, edi
jne 0x1010320
xor ebx, ebx
jmp 0x1010328
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ebx, eax
lea ecx, [ebp - 0x700]
call fcn.01002b58
mov eax, ebx
jmp 0x101033c
mov eax, 0x8000ffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01007f54
leave
ret 8