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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6f8
mov eax, dword [0x10140b8]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp ebx, edi
mov esi, ecx
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esi
je 0x1010f8c
cmp dword [ebp + 0xc], edi
je 0x1010f8c
mov edx, dword [ebx + 0x64]
cmp edx, edi
jne 0x1010d81
push 0x57
pop eax
jmp 0x1010f91
cmp dword [0x10154c0], edi
jne 0x1010ec2
cmp edx, 1
jne 0x1010dcb
cmp dword [ebx + 0x50], 0xa
jne 0x1010db1
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 0x1010e9f
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 0x1010daa
xor ecx, ecx
cmp edx, edi
mov dword [ebp + 8], edi
jbe 0x1010de6
mov eax, dword [ebx + 0x60]
add eax, 4
add ecx, dword [eax]
add eax, 0xc
dec edx
jne 0x1010dda
cmp ecx, edi
jne 0x1010df0
mov eax, 0x80070057
jmp 0x1010f91
push ecx
lea ecx, [ebp - 0x6f8]
call fcn.01010cfe
cmp dword [ebp - 0x6f8], edi
jne 0x1010e14
lea ecx, [ebp - 0x6f8]
call fcn.01010b3f
jmp 0x1010ee1
cmp dword [ebx + 0x64], edi
mov dword [ebp - 8], edi
jbe 0x1010e5e
xor edx, edx
mov eax, dword [ebx + 0x60]
mov edi, dword [ebp + 8]
add eax, edx
mov ecx, dword [eax + 4]
mov esi, dword [eax]
mov eax, dword [ebp - 0x6f8]
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 + 8], eax
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add edx, 0xc
cmp eax, dword [ebx + 0x64]
jb 0x1010e1e
mov esi, dword [ebp - 0xc]
xor edi, edi
cmp dword [ebx + 0x50], 0xa
jne 0x1010e79
push edi
push dword [ebp + 8]
push dword [ebp - 0x6f8]
push dword [esi + 0xc]
call dword [sym.imp.WSOCK32.dll_send]
jmp 0x1010e92
push 0x10
add ebx, 0x68
push ebx
push edi
push dword [ebp + 8]
push dword [ebp - 0x6f8]
push dword [esi + 0xc]
call dword [sym.imp.WSOCK32.dll_sendto]
lea ecx, [ebp - 0x6f8]
mov esi, eax
call fcn.01010b3f
cmp esi, 0xffffffff
jne 0x1010eb6
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
jmp 0x1010f88
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [eax], esi
jmp 0x1010f88
push edx
lea ecx, [ebp - 0x114]
call fcn.01010d1f
cmp dword [ebp - 0x114], edi
jne 0x1010eeb
lea ecx, [ebp - 0x114]
call fcn.01010b3f
mov eax, 0x8007000e
jmp 0x1010f91
cmp dword [ebx + 0x64], edi
mov dword [ebp - 8], edi
jbe 0x1010f31
mov dword [ebp + 8], edi
mov ecx, dword [ebx + 0x60]
mov edx, dword [ebp + 8]
mov ecx, dword [edx + ecx + 4]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x114]
shl eax, 3
inc dword [ebp - 8]
mov dword [eax + edx], ecx
mov edx, dword [ebp + 8]
mov ecx, dword [ebx + 0x60]
mov ecx, dword [edx + ecx]
mov edx, dword [ebp - 0x114]
add dword [ebp + 8], 0xc
mov dword [eax + edx + 4], ecx
mov eax, dword [ebp - 8]
cmp eax, dword [ebx + 0x64]
jb 0x1010ef6
cmp dword [ebx + 0x50], 0xa
push edi
push edi
jne 0x1010f51
push edi
push dword [ebp + 0xc]
push dword [ebx + 0x64]
push dword [ebp - 0x114]
push dword [esi + 0xc]
call dword [0x10154c0]
jmp 0x1010f6d
push 0x10
lea eax, [ebx + 0x68]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebx + 0x64]
push dword [ebp - 0x114]
push dword [esi + 0xc]
call dword [0x10154c4]
cmp eax, edi
jne 0x1010f75
xor ebx, ebx
jmp 0x1010f7d
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ebx, eax
lea ecx, [ebp - 0x114]
call fcn.01010b3f
mov eax, ebx
jmp 0x1010f91
mov eax, 0x8000ffff
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.0100701d
leave
ret 8