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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x5b31c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, str.netascii
push 3
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
mov eax, str.octet
mov dword [ebp - 0x50], ecx
cmp dword [ecx + 0x2a4], ebx
cmove edi, eax
pop eax
sub edx, ebx
je 0x50dd04
sub edx, eax
je 0x50dcfe
dec edx
je 0x50dcf2
dec edx
je 0x50dceb
dec edx
je 0x50dcd2
dec edx
je 0x50dd04
push str.tftp_send_first:_internal_error
push ecx
call fcn.00500d35
pop ecx
jmp 0x50dfae
cmp dword [ecx + 0x2dc], ebx
mov ecx, esi
push 6
pop edx
jne 0x50dcf7
call fcn.0050dc3c
mov ebx, eax
jmp 0x50dfaf
mov dword [esi], eax
jmp 0x50dfaf
push 4
pop edx
mov ecx, esi
call fcn.0050dc00
jmp 0x50dce4
mov edx, eax
mov ecx, esi
jmp 0x50dcdf
inc dword [esi + 0x18]
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x20]
jle 0x50dd23
mov dword [esi + 8], 0xffffff9e
xor eax, eax
mov dword [esi], 3
jmp 0x50dfb1
mov eax, dword [esi + 0x160]
cmp dword [ecx + 0x2dc], ebx
mov byte [eax], bl
mov eax, dword [esi + 0x160]
je 0x50dd78
mov byte [eax + 1], 2
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x160]
add ecx, 4
mov eax, dword [eax]
mov dword [eax + 0xdc], ecx
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0x1b0]
mov eax, edx
and eax, dword [ecx + 0x1b4]
cmp eax, 0xffffffff
je 0x50dd7c
push dword [ecx + 0x1b4]
push edx
call fcn.0050862e
add esp, 8
jmp 0x50dd7c
mov byte [eax + 1], 1
mov eax, dword [esi + 0x10]
push ebx
push ebx
mov eax, dword [eax]
mov edx, dword [eax + 0x8658]
inc edx
call fcn.00510c46
mov dword [ebp - 0x54], eax
pop ecx
pop ecx
test eax, eax
jne 0x50dda0
push 0x1b
pop eax
jmp 0x50dfb1
push ebx
push edi
push ebx
push eax
mov eax, dword [esi + 0x160]
push str._s_c_s_c
push dword [esi + 0x154]
add eax, 2
push eax
call fcn.0050af08
mov ecx, dword [ebp - 0x54]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50ddc7
sub ecx, edx
lea edx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x50ddd3
mov eax, dword [ebp - 0x50]
sub edi, edx
add edi, 4
add edi, ecx
cmp dword [eax + 0x2dc], ebx
je 0x50de18
mov ecx, dword [eax + 0x1b0]
mov edx, dword [eax + 0x1b4]
mov eax, ecx
and eax, edx
cmp eax, 0xffffffff
je 0x50de18
push edx
push ecx
push str._lld
lea eax, [ebp - 0x48]
push 0x40
push eax
call fcn.0050af08
add esp, 0x14
jmp 0x50de22
mov ax, word [0x5833e8]
mov word [ebp - 0x48], ax
mov ecx, dword [esi + 0x160]
lea eax, [edi + 6]
add ecx, edi
cmp eax, dword [esi + 0x154]
jbe 0x50de39
mov eax, ebx
jmp 0x50de43
mov edx, str.tsize
call fcn.0050dbe0
add edi, eax
lea ecx, [ebp - 0x48]
mov eax, dword [esi + 0x160]
lea edx, [ecx + 1]
add eax, edi
mov dword [ebp - 0x4c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50de56
sub ecx, edx
lea eax, [edi + 1]
add eax, ecx
cmp eax, dword [esi + 0x154]
jbe 0x50de70
mov eax, ebx
jmp 0x50de7b
mov ecx, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.0050dbe0
push dword [esi + 0x158]
add edi, eax
lea eax, [ebp - 0x48]
push 0x57efd0
push 0x40
push eax
call fcn.0050af08
mov ecx, dword [esi + 0x160]
lea eax, [edi + 8]
add esp, 0x10
add ecx, edi
cmp eax, dword [esi + 0x154]
jbe 0x50dead
mov eax, ebx
jmp 0x50deb7
mov edx, str.blksize
call fcn.0050dbe0
add edi, eax
lea ecx, [ebp - 0x48]
mov eax, dword [esi + 0x160]
lea edx, [ecx + 1]
add eax, edi
mov dword [ebp - 0x4c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50deca
sub ecx, edx
lea eax, [edi + 1]
add eax, ecx
cmp eax, dword [esi + 0x154]
jbe 0x50dee4
mov eax, ebx
jmp 0x50deef
mov ecx, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.0050dbe0
push dword [esi + 0x1c]
add edi, eax
lea eax, [ebp - 0x48]
push 0x57efd0
push 0x40
push eax
call fcn.0050af08
mov ecx, dword [esi + 0x160]
lea eax, [edi + 8]
add esp, 0x10
add ecx, edi
cmp eax, dword [esi + 0x154]
jbe 0x50df1e
mov eax, ebx
jmp 0x50df28
mov edx, str.timeout
call fcn.0050dbe0
add edi, eax
lea ecx, [ebp - 0x48]
mov eax, dword [esi + 0x160]
lea edx, [ecx + 1]
add eax, edi
mov dword [ebp - 0x4c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50df3b
sub ecx, edx
lea eax, [edi + 1]
add eax, ecx
cmp eax, dword [esi + 0x154]
jbe 0x50df55
mov eax, ebx
jmp 0x50df60
mov ecx, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.0050dbe0
add edi, eax
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0x3c]
push dword [eax + 0x10]
push dword [eax + 0x18]
push ebx
push edi
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, edi
je 0x50dfa5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esi + 0x10]
mov edx, eax
call fcn.005188fe
mov ecx, dword [ebp - 0x50]
push eax
push 0x583be0
push ecx
call fcn.00500d35
add esp, 0xc
push dword [ebp - 0x54]
call dword [0x5b6c48]
pop ecx
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054e63c
mov esp, ebp
pop ebp
ret