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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x700
mov eax, dword [0x101a0bc]
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 0x1012fc0
cmp eax, edi
je 0x1012fc0
mov edx, dword [ebx + 0x64]
cmp edx, edi
jne 0x1012d76
push 0x57
pop eax
jmp 0x1012fc5
cmp dword [0x101b4b0], edi
jne 0x1012ed8
cmp edx, 1
jne 0x1012dc0
cmp dword [ebx + 0x50], 0xa
jne 0x1012da6
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 0x1012eaf
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 0x1012d9f
xor ecx, ecx
cmp edx, edi
mov dword [ebp - 0x5ec], edi
jbe 0x1012dde
mov eax, dword [ebx + 0x60]
add eax, 4
add ecx, dword [eax]
add eax, 0xc
dec edx
jne 0x1012dd2
cmp ecx, edi
jne 0x1012de8
mov eax, 0x80070057
jmp 0x1012fc5
push ecx
lea ecx, [ebp - 0x5e8]
call fcn.01012cd5
cmp dword [ebp - 0x5e8], edi
jne 0x1012e0c
lea ecx, [ebp - 0x5e8]
call fcn.01012aaf
jmp 0x1012ef7
cmp dword [ebx + 0x64], edi
mov dword [ebp - 0x5f0], edi
jbe 0x1012e68
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 0x1012e19
mov esi, dword [ebp - 0x5f8]
xor edi, edi
cmp dword [ebx + 0x50], 0xa
jne 0x1012e86
push edi
push dword [ebp - 0x5ec]
push dword [ebp - 0x5e8]
push dword [esi + 0xc]
call dword [sym.imp.WSOCK32.dll_send]
jmp 0x1012ea2
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.01012aaf
cmp esi, 0xffffffff
jne 0x1012ec9
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ebx, eax
mov eax, dword [ebp - 0x5f4]
mov dword [eax], edi
jmp 0x1012fbc
mov eax, dword [ebp - 0x5f4]
xor ebx, ebx
mov dword [eax], esi
jmp 0x1012fbc
push edx
lea ecx, [ebp - 0x700]
call fcn.01012d00
cmp dword [ebp - 0x700], edi
jne 0x1012f01
lea ecx, [ebp - 0x700]
call fcn.01012aaf
mov eax, 0x8007000e
jmp 0x1012fc5
cmp dword [ebx + 0x64], edi
mov dword [ebp - 0x5f0], edi
jbe 0x1012f5f
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 0x1012f12
cmp dword [ebx + 0x50], 0xa
push edi
push edi
jne 0x1012f82
push edi
push dword [ebp - 0x5f4]
push dword [ebx + 0x64]
push dword [ebp - 0x700]
push dword [esi + 0xc]
call dword [0x101b4b0]
jmp 0x1012fa1
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 [0x101b4b4]
cmp eax, edi
jne 0x1012fa9
xor ebx, ebx
jmp 0x1012fb1
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ebx, eax
lea ecx, [ebp - 0x700]
call fcn.01012aaf
mov eax, ebx
jmp 0x1012fc5
mov eax, 0x8000ffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01007613
leave
ret 8