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

Disassembly:
sub esp, 0x150
mov eax, dword [0x1027e110]
xor eax, esp
mov dword [esp + 0x14c], eax
mov eax, dword [esp + 0x158]
push ebx
push ebp
mov ebp, dword [esp + 0x15c]
mov ebx, dword [ebp + 0x10]
cmp dword [ebx + 0xec0], 0
push esi
push edi
mov edi, str.octet
mov dword [esp + 0x14], 0
je 0x10069144
mov edi, str.netascii
cmp eax, 7
ja case.0x1006914d.1
jmp dword [eax*4 + 0x100694c0]
add dword [ebp + 0x18], 1
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebp + 0x20]
jle 0x10069175
mov dword [ebp + 8], 0xffffff9e
mov dword [ebp], 3
xor eax, eax
jmp 0x100694a4
mov eax, dword [ebp + 0x14c]
cmp dword [ebx + 0x78c], 0
mov byte [eax], 0
mov ecx, dword [ebp + 0x14c]
je 0x100691c5
mov byte [ecx + 1], 2
mov edx, dword [ebp + 0x14c]
mov eax, dword [ebp + 0x10]
add edx, 4
mov dword [eax + 0x120], edx
mov eax, dword [ebx + 0xdb0]
mov ecx, dword [ebx + 0xdb4]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
je 0x100691c9
push ecx
push eax
push ebx
call fcn.10080e90
add esp, 0xc
jmp 0x100691c9
mov byte [ecx + 1], 1
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0xddc]
push 4
push 0
lea edx, [esp + 0x20]
push edx
add ecx, 1
push 0
push ecx
call fcn.10049570
add esp, 0x14
test eax, eax
mov dword [esp + 0x14], eax
jne 0x100694a4
mov eax, dword [esp + 0x18]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10069200
sub eax, edx
mov edx, eax
mov eax, edi
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10069212
mov ecx, dword [ebp + 0x13c]
sub eax, esi
mov esi, ecx
sub esi, eax
sub esi, 4
cmp edx, esi
jbe 0x10069251
push str.TFTP_file_name_too_long
push ebx
call fcn.1005aa90
mov edx, dword [esp + 0x20]
push edx
call dword [0x10279004]
add esp, 0xc
mov eax, 0x47
jmp 0x100694a4
mov eax, dword [esp + 0x18]
push 0
push edi
push 0
push eax
push str._s_c_s_c
push ecx
mov ecx, dword [ebp + 0x14c]
add ecx, 2
push ecx
call fcn.10062b10
mov eax, dword [esp + 0x34]
add esp, 0x1c
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10069280
mov ecx, edi
sub eax, edx
lea esi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x10069290
sub ecx, esi
cmp dword [ebx + 0x720], 0
lea esi, [ecx + eax + 4]
mov dword [esp + 0x10], esi
jne 0x100693ef
cmp dword [ebx + 0x78c], 0
je 0x100692e6
mov eax, dword [ebx + 0xdb0]
mov ecx, dword [ebx + 0xdb4]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
je 0x100692e6
push ecx
push eax
push str._I64d
lea eax, [esp + 0x28]
push 0x40
push eax
call fcn.10062b10
add esp, 0x14
jmp 0x100692ed
mov word [esp + 0x1c], 0x30
mov ecx, dword [ebp + 0x14c]
add ecx, esi
push ecx
push ebp
mov esi, str.tsize
lea edi, [esp + 0x18]
call fcn.100684a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x10069328
mov edx, dword [ebp + 0x14c]
add edx, dword [esp + 0x10]
lea esi, [esp + 0x1c]
push edx
push ebp
call fcn.100684a0
add esp, 8
mov esi, eax
mov eax, dword [ebp + 0x140]
push eax
push 0x101eca90
lea ecx, [esp + 0x24]
push 0x40
push ecx
call fcn.10062b10
add esp, 0x10
test esi, esi
jne 0x10069384
mov edx, dword [ebp + 0x14c]
add edx, dword [esp + 0x10]
mov esi, str.blksize
push edx
push ebp
lea edi, [esp + 0x18]
call fcn.100684a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x10069384
mov eax, dword [ebp + 0x14c]
add eax, dword [esp + 0x10]
lea esi, [esp + 0x1c]
push eax
push ebp
call fcn.100684a0
add esp, 8
mov esi, eax
mov ecx, dword [ebp + 0x1c]
push ecx
push 0x101eca90
lea edx, [esp + 0x24]
push 0x40
push edx
call fcn.10062b10
add esp, 0x10
test esi, esi
jne 0x100693e1
mov eax, dword [ebp + 0x14c]
add eax, dword [esp + 0x10]
mov esi, str.timeout
push eax
push ebp
lea edi, [esp + 0x18]
call fcn.100684a0
add esp, 8
test eax, eax
jne 0x100693e1
mov ecx, dword [ebp + 0x14c]
add ecx, dword [esp + 0x10]
lea esi, [esp + 0x1c]
push ecx
push ebp
call fcn.100684a0
add esp, 8
test eax, eax
mov dword [esp + 0x14], eax
je 0x100693eb
push str.TFTP_buffer_too_small_for_options
jmp 0x10069233
mov esi, dword [esp + 0x10]
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x40]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp + 0x14c]
push ecx
add eax, 0x10
push eax
mov eax, dword [ebp + 0x14]
push 0
push esi
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, esi
je 0x1006943a
push 0x100
lea ecx, [esp + 0x60]
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.1008a4f0
push eax
push 0x101edee4
push ebx
call fcn.1005aa90
add esp, 0x18
mov edx, dword [esp + 0x18]
push edx
call dword [0x10279004]
add esp, 4
jmp 0x100694a0
cmp dword [ebx + 0x78c], 0
push 6
je 0x10069479
mov eax, ebp
call fcn.10069090
add esp, 4
mov dword [esp + 0x14], eax
jmp 0x100694a0
push 4
mov eax, ebp
call fcn.10069090
add esp, 4
mov dword [esp + 0x14], eax
jmp 0x100694a0
push 3
mov esi, ebp
call fcn.100690d0
add esp, 4
mov dword [esp + 0x14], eax
jmp 0x100694a0
mov dword [ebp], 3
jmp 0x100694a0
push str.tftp_send_first:_internal_error
push ebx
call fcn.1005aa90
add esp, 8
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.101b40e2
add esp, 0x150
ret