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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
push esi
push edi
lea edi, [ebp - 0x188]
mov ecx, 0x62
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x7a3104]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], str.octet
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], 0
mov edx, dword [ebp - 0x28]
movzx eax, byte [edx + 0x6ef]
test eax, eax
je 0x5eafc3
mov dword [ebp - 0x18], str.netascii
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x180], ecx
cmp dword [ebp - 0x180], 7
ja case.0x5eafdf.1
mov edx, dword [ebp - 0x180]
jmp dword [edx*4 + 0x5eb524]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
add ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x18]
cmp edx, dword [ecx + 0x20]
jle 0x5eb01e
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0xffffff9e
mov ecx, dword [ebp + 8]
mov dword [ecx], 3
mov eax, dword [ebp - 0x2c]
jmp 0x5eb49f
mov edx, dword [ebp - 0x28]
movzx eax, byte [edx + 0x701]
test eax, eax
je 0x5eb09d
push 2
mov ecx, dword [ebp + 8]
add ecx, 0x15c
push ecx
call fcn.005ea970
add esp, 8
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x15c]
add eax, 4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
mov dword [edx + 0x138], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x184], eax
mov ecx, dword [ebp - 0x184]
mov edx, dword [ebp - 0x184]
mov eax, dword [ecx + 0xc40]
and eax, dword [edx + 0xc44]
cmp eax, 0xffffffff
je 0x5eb09b
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0xc44]
push edx
mov eax, dword [ecx + 0xc40]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00519fa8
add esp, 0xc
jmp 0x5eb0b1
push 1
mov edx, dword [ebp + 8]
add edx, 0x15c
push edx
call fcn.005ea970
add esp, 8
push 4
push 0
lea eax, [ebp - 0x20]
push eax
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
mov eax, 1
shl eax, 0
add eax, dword [edx + 0xc78]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00517b63
add esp, 0x18
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x5eb0ed
mov eax, dword [ebp - 0x2c]
jmp 0x5eb49f
mov edx, dword [ebp - 0x20]
push edx
call fcn.00519bbb
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.00519bbb
add esp, 4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14c]
sub edx, eax
sub edx, 4
cmp esi, edx
jbe 0x5eb14a
push str.TFTP_file_name_too_long
mov eax, dword [ebp - 0x28]
push eax
call fcn.00518f9a
add esp, 8
mov esi, esp
mov ecx, dword [ebp - 0x20]
push ecx
call dword [0x794030]
add esp, 4
cmp esi, esp
call fcn.00516fe7
mov eax, 0x47
jmp 0x5eb49f
push 0
mov edx, dword [ebp - 0x18]
push edx
push 0
mov eax, dword [ebp - 0x20]
push eax
push str._s_c_s_c
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14c]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x15c]
add ecx, 2
push ecx
call fcn.00517cda
add esp, 0x1c
mov edx, dword [ebp - 0x20]
push edx
call fcn.00519bbb
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.00519bbb
add esp, 4
lea ecx, [esi + eax + 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x28]
movzx eax, byte [edx + 0x6e7]
test eax, eax
jne 0x5eb37f
mov ecx, dword [ebp - 0x28]
movzx edx, byte [ecx + 0x701]
test edx, edx
je 0x5eb207
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x188], eax
mov ecx, dword [ebp - 0x188]
mov edx, dword [ebp - 0x188]
mov eax, dword [ecx + 0xc40]
and eax, dword [edx + 0xc44]
cmp eax, 0xffffffff
je 0x5eb207
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0xc44]
push edx
mov eax, dword [ecx + 0xc40]
push eax
push str._I64d
push 0x40
lea ecx, [ebp - 0x70]
push ecx
call fcn.00517cda
add esp, 0x14
jmp 0x5eb218
push 0x79fbfc
lea edx, [ebp - 0x70]
push edx
call fcn.0051685d
add esp, 8
push str.tsize
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x15c]
add ecx, dword [ebp - 0xc]
push ecx
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.005eae10
add esp, 0x10
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x5eb267
lea ecx, [ebp - 0x70]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x15c]
add eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.005eae10
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x150]
push ecx
push 0x79fc08
push 0x40
lea edx, [ebp - 0x70]
push edx
call fcn.00517cda
add esp, 0x10
cmp dword [ebp - 0x2c], 0
jne 0x5eb2af
push str.blksize
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x15c]
add ecx, dword [ebp - 0xc]
push ecx
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.005eae10
add esp, 0x10
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x5eb2d9
lea ecx, [ebp - 0x70]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x15c]
add eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.005eae10
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
push ecx
push 0x79fc14
push 0x40
lea edx, [ebp - 0x70]
push edx
call fcn.00517cda
add esp, 0x10
cmp dword [ebp - 0x2c], 0
jne 0x5eb31e
push str.timeout
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x15c]
add ecx, dword [ebp - 0xc]
push ecx
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.005eae10
add esp, 0x10
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x5eb348
lea ecx, [ebp - 0x70]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x15c]
add eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.005eae10
add esp, 0x10
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x5eb37f
push str.TFTP_buffer_too_small_for_options
mov eax, dword [ebp - 0x28]
push eax
call fcn.00518f9a
add esp, 8
mov esi, esp
mov ecx, dword [ebp - 0x20]
push ecx
call dword [0x794030]
add esp, 4
cmp esi, esp
call fcn.00516fe7
mov eax, 0x47
jmp 0x5eb49f
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + 0x50]
mov esi, esp
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 0x50]
mov eax, dword [edx + 0x18]
push eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x15c]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.WS2_32.dll_sendto]
cmp esi, esp
call fcn.00516fe7
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0xc]
je 0x5eb400
push 0x100
lea ecx, [ebp - 0x178]
push ecx
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.00516fe7
push eax
call fcn.00514f4e
add esp, 0xc
push eax
push 0x79fc44
mov edx, dword [ebp - 0x28]
push edx
call fcn.00518f9a
add esp, 0xc
mov esi, esp
mov eax, dword [ebp - 0x20]
push eax
call dword [0x794030]
add esp, 4
cmp esi, esp
call fcn.00516fe7
jmp 0x5eb49c
mov ecx, dword [ebp - 0x28]
movzx edx, byte [ecx + 0x701]
test edx, edx
je 0x5eb43e
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.005eae70
add esp, 8
mov dword [ebp - 0x2c], eax
jmp 0x5eb451
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.005eaef0
add esp, 8
mov dword [ebp - 0x2c], eax
jmp 0x5eb49c
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.005eae70
add esp, 8
mov dword [ebp - 0x2c], eax
jmp 0x5eb49c
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.005eaef0
add esp, 8
mov dword [ebp - 0x2c], eax
jmp 0x5eb49c
mov edx, dword [ebp + 8]
mov dword [edx], 3
jmp 0x5eb49c
push str.tftp_send_first:_internal_error
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.00518f9a
add esp, 8
mov eax, dword [ebp - 0x2c]
push edx
mov ecx, ebp
push eax
lea edx, [0x5eb4d0]
call fcn.005163b2
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005150f7
add esp, 0x188
cmp ebp, esp
call fcn.00516fe7
mov esp, ebp
pop ebp
ret