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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x623fcc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov ecx, str.octet
push 3
mov eax, dword [edi + 0x10]
mov ebx, dword [eax]
mov eax, str.netascii
cmp byte [ebx + 0x32b], 0
cmove eax, ecx
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0xc]
pop ecx
sub eax, esi
je 0x578ac7
sub eax, ecx
je 0x578abe
sub eax, 1
je 0x578ab9
sub eax, 1
je 0x578ab2
sub eax, 1
je 0x578a99
sub eax, 1
je 0x578ac7
push str.tftp_send_first:_internal_error
push ebx
call fcn.0055eacb
pop ecx
jmp 0x578cf5
cmp byte [ebx + 0x339], 0
push 6
push edi
je 0x578ac0
call fcn.0057839b
pop ecx
mov esi, eax
jmp 0x578cf5
mov dword [edi], ecx
jmp 0x578cf6
push 4
push edi
jmp 0x578aa5
push ecx
push edi
call fcn.0057835f
jmp 0x578aaa
inc dword [edi + 0x18]
mov eax, dword [edi + 0x18]
cmp eax, dword [edi + 0x20]
jle 0x578ae2
mov dword [edi + 8], 0xffffff9e
xor eax, eax
mov dword [edi], ecx
jmp 0x578cf8
cmp byte [ebx + 0x339], 0
lea eax, [edi + 0x160]
je 0x578b31
push 2
push eax
call fcn.00578344
mov eax, dword [edi + 0x10]
pop ecx
pop ecx
mov ecx, dword [edi + 0x160]
mov eax, dword [eax]
add ecx, 4
mov dword [eax + 0x10c], ecx
mov ecx, dword [ebx + 0x4790]
mov eax, ecx
mov edx, dword [ebx + 0x4794]
and eax, edx
cmp eax, 0xffffffff
je 0x578b3b
push edx
push ecx
push ebx
call fcn.005669c2
add esp, 0xc
jmp 0x578b3b
push 1
push eax
call fcn.00578344
pop ecx
pop ecx
xor esi, esi
lea eax, [ebp - 0x48]
push esi
push esi
push eax
mov eax, dword [edi + 0x10]
push esi
mov eax, dword [eax]
mov eax, dword [eax + 0x4768]
inc eax
push eax
push ebx
call fcn.00579ea8
add esp, 0x18
mov dword [ebp - 0x50], eax
test eax, eax
jne 0x578cf8
mov eax, dword [edi + 0x160]
push esi
push dword [ebp - 0x4c]
add eax, 2
push esi
push dword [ebp - 0x48]
push str._s_c_s_c
push dword [edi + 0x154]
push eax
call fcn.00568869
push dword [ebp - 0x48]
call fcn.00596af0
push dword [ebp - 0x4c]
mov esi, eax
call fcn.00596af0
add esi, 4
add esp, 0x24
add esi, eax
cmp byte [ebx + 0x1dc], 0
jne 0x578ca9
cmp byte [ebx + 0x339], 0
je 0x578be3
mov ecx, dword [ebx + 0x4790]
mov eax, ecx
mov edx, dword [ebx + 0x4794]
and eax, edx
cmp eax, 0xffffffff
je 0x578be3
push edx
push ecx
push str._lld
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.00568869
add esp, 0x14
jmp 0x578bf3
lea eax, [ebp - 0x44]
push 0x602a68
push eax
call fcn.0059d6e0
pop ecx
pop ecx
mov eax, dword [edi + 0x160]
push str.tsize
add eax, esi
push eax
push esi
push edi
call fcn.005783d7
add esi, eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [edi + 0x160]
add eax, esi
push eax
push esi
push edi
call fcn.005783d7
push dword [edi + 0x158]
add esi, eax
lea eax, [ebp - 0x44]
push 0x602a6c
push 0x40
push eax
call fcn.00568869
mov eax, dword [edi + 0x160]
push str.blksize
add eax, esi
push eax
push esi
push edi
call fcn.005783d7
add esp, 0x40
add esi, eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [edi + 0x160]
add eax, esi
push eax
push esi
push edi
call fcn.005783d7
push dword [edi + 0x1c]
add esi, eax
lea eax, [ebp - 0x44]
push 0x602a6c
push 0x40
push eax
call fcn.00568869
mov eax, dword [edi + 0x160]
push str.timeout
add eax, esi
push eax
push esi
push edi
call fcn.005783d7
add esi, eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [edi + 0x160]
add eax, esi
push eax
push esi
push edi
call fcn.005783d7
add esp, 0x40
add esi, eax
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 0x4c]
push dword [eax + 0x10]
push dword [eax + 0x18]
push 0
push esi
push dword [edi + 0x160]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, esi
je 0x578ce9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [edi + 0x10]
call fcn.0056a7b8
push eax
push 0x5ed7a4
push ebx
call fcn.0055eacb
add esp, 0x14
push dword [ebp - 0x48]
call dword [0x624064]
mov esi, dword [ebp - 0x50]
pop ecx
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054f54f
leave
ret