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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x78ebd8]
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.netascii
push 3
mov eax, dword [edi + 0x10]
mov ebx, dword [eax]
mov eax, str.octet
cmp byte [ebx + 0x4ec], 0
cmovne eax, ecx
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0xc]
pop ecx
sub eax, esi
je 0x5ba66a
sub eax, ecx
je 0x5ba661
sub eax, 1
je 0x5ba65c
sub eax, 1
je 0x5ba655
sub eax, 1
je 0x5ba63c
sub eax, 1
je 0x5ba66a
push str.tftp_send_first:_internal_error
push ebx
call fcn.0059b8d5
pop ecx
jmp 0x5ba8db
cmp byte [ebx + 0x4fa], 0
push 6
push edi
je 0x5ba663
call fcn.005b9f36
pop ecx
mov esi, eax
jmp 0x5ba8db
mov dword [edi], ecx
jmp 0x5ba8dc
push 4
push edi
jmp 0x5ba648
push ecx
push edi
call fcn.005b9efa
jmp 0x5ba64d
inc dword [edi + 0x18]
mov eax, dword [edi + 0x18]
cmp eax, dword [edi + 0x20]
jle 0x5ba685
mov dword [edi + 8], 0xffffff9e
xor eax, eax
mov dword [edi], ecx
jmp 0x5ba8de
cmp byte [ebx + 0x4fa], 0
je 0x5ba6d0
lea esi, [edi + 0x160]
push 2
push esi
call fcn.005b9edf
mov eax, dword [edi + 0x10]
pop ecx
pop ecx
mov ecx, dword [esi]
mov eax, dword [eax]
add ecx, 4
mov dword [eax + 0x148], ecx
mov ecx, dword [ebx + 0x4bb0]
mov eax, ecx
mov edx, dword [ebx + 0x4bb4]
and eax, edx
cmp eax, 0xffffffff
je 0x5ba6e0
push edx
push ecx
push ebx
call fcn.005b2520
add esp, 0xc
jmp 0x5ba6e0
lea eax, [edi + 0x160]
push 1
push eax
call fcn.005b9edf
pop ecx
pop ecx
xor ecx, ecx
lea eax, [ebp - 0x48]
push ecx
push ecx
push eax
mov eax, dword [edi + 0x10]
push ecx
mov eax, dword [eax]
mov eax, dword [eax + 0x4b8c]
inc eax
push eax
push ebx
call fcn.005b7896
add esp, 0x18
mov dword [ebp - 0x50], eax
test eax, eax
jne 0x5ba8de
push dword [ebp - 0x4c]
call fcn.006909d0
mov esi, dword [edi + 0x154]
push dword [ebp - 0x48]
sub esi, eax
add esi, 0xfffffffc
call fcn.006909d0
pop ecx
pop ecx
cmp eax, esi
jbe 0x5ba74a
push str.TFTP_file_name_too_long_n
push ebx
call fcn.0059b8d5
push dword [ebp - 0x48]
call dword [0x78c074]
add esp, 0xc
push 0x47
pop eax
jmp 0x5ba8de
mov esi, dword [ebp - 0x4c]
mov eax, dword [edi + 0x160]
push 0
push esi
push 0
push dword [ebp - 0x48]
add eax, 2
push str._s_c_s_c
push dword [edi + 0x154]
push eax
call fcn.0059c483
push esi
call fcn.006909d0
push dword [ebp - 0x48]
mov esi, eax
call fcn.006909d0
add esi, 4
add esp, 0x24
add esi, eax
cmp byte [ebx + 0x220], 0
jne 0x5ba88f
cmp byte [ebx + 0x4fa], 0
je 0x5ba7c9
mov ecx, dword [ebx + 0x4bb0]
mov eax, ecx
mov edx, dword [ebx + 0x4bb4]
and eax, edx
cmp eax, 0xffffffff
je 0x5ba7c9
push edx
push ecx
push str._I64d
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.0059c483
add esp, 0x14
jmp 0x5ba7d9
lea eax, [ebp - 0x44]
push 0x73a9e8
push eax
call fcn.0069a230
pop ecx
pop ecx
mov eax, dword [edi + 0x160]
push str.tsize
add eax, esi
push eax
push esi
push edi
call fcn.005b9f72
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.005b9f72
push dword [edi + 0x158]
add esi, eax
lea eax, [ebp - 0x44]
push 0x73eb9c
push 0x40
push eax
call fcn.0059c483
mov eax, dword [edi + 0x160]
push str.blksize
add eax, esi
push eax
push esi
push edi
call fcn.005b9f72
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.005b9f72
push dword [edi + 0x1c]
add esi, eax
lea eax, [ebp - 0x44]
push 0x73eb9c
push 0x40
push eax
call fcn.0059c483
mov eax, dword [edi + 0x160]
push 0x6ed9dc
add eax, esi
push eax
push esi
push edi
call fcn.005b9f72
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.005b9f72
add esp, 0x40
add esi, eax
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 0x54]
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 0x5ba8cf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [edi + 0x10]
call fcn.005aaf73
push eax
push 0x6ed168
push ebx
call fcn.0059b8d5
add esp, 0x14
push dword [ebp - 0x48]
call dword [0x78c074]
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.0068a492
mov esp, ebp
pop ebp
ret