Function at 0x5788af
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 0x578944
sub eax, ecx
je 0x57893b
sub eax, 1
je 0x578936
sub eax, 1
je 0x57892f
sub eax, 1
je 0x578916
sub eax, 1
je 0x578944
push str.tftp_send_first:_internal_error
push ebx
call fcn.0055e94b
pop ecx
jmp 0x578b72
cmp byte [ebx + 0x339], 0
push 6
push edi
je 0x57893d
call fcn.00578218
pop ecx
mov esi, eax
jmp 0x578b72
mov dword [edi], ecx
jmp 0x578b73
push 4
push edi
jmp 0x578922
push ecx
push edi
call fcn.005781dc
jmp 0x578927
inc dword [edi + 0x18]
mov eax, dword [edi + 0x18]
cmp eax, dword [edi + 0x20]
jle 0x57895f
mov dword [edi + 8], 0xffffff9e
xor eax, eax
mov dword [edi], ecx
jmp 0x578b75
cmp byte [ebx + 0x339], 0
lea eax, [edi + 0x160]
je 0x5789ae
push 2
push eax
call fcn.005781c1
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 0x5789b8
push edx
push ecx
push ebx
call fcn.00566842
add esp, 0xc
jmp 0x5789b8
push 1
push eax
call fcn.005781c1
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.00579d25
add esp, 0x18
mov dword [ebp - 0x50], eax
test eax, eax
jne 0x578b75
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.005686e9
push dword [ebp - 0x48]
call fcn.00596970
push dword [ebp - 0x4c]
mov esi, eax
call fcn.00596970
add esi, 4
add esp, 0x24
add esi, eax
cmp byte [ebx + 0x1dc], 0
jne 0x578b26
cmp byte [ebx + 0x339], 0
je 0x578a60
mov ecx, dword [ebx + 0x4790]
mov eax, ecx
mov edx, dword [ebx + 0x4794]
and eax, edx
cmp eax, 0xffffffff
je 0x578a60
push edx
push ecx
push str._lld
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.005686e9
add esp, 0x14
jmp 0x578a70
lea eax, [ebp - 0x44]
push 0x602a68
push eax
call fcn.0059d560
pop ecx
pop ecx
mov eax, dword [edi + 0x160]
push str.tsize
add eax, esi
push eax
push esi
push edi
call fcn.00578254
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.00578254
push dword [edi + 0x158]
add esi, eax
lea eax, [ebp - 0x44]
push 0x602a6c
push 0x40
push eax
call fcn.005686e9
mov eax, dword [edi + 0x160]
push str.blksize
add eax, esi
push eax
push esi
push edi
call fcn.00578254
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.00578254
push dword [edi + 0x1c]
add esi, eax
lea eax, [ebp - 0x44]
push 0x602a6c
push 0x40
push eax
call fcn.005686e9
mov eax, dword [edi + 0x160]
push str.timeout
add eax, esi
push eax
push esi
push edi
call fcn.00578254
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.00578254
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 0x578b66
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [edi + 0x10]
call fcn.0056a638
push eax
push 0x5ed7a4
push ebx
call fcn.0055e94b
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.0054f3d2
leave
ret