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

Disassembly:
sub esp, 0x150
push ebx
push ebp
push esi
mov esi, dword [esp + 0x160]
push edi
mov dword [esp + 0x1c], str.octet
mov eax, dword [esi + 0x10]
mov dword [esp + 0x14], 0
mov ebp, dword [eax]
mov eax, dword [ebp + 0xb48]
test eax, eax
je 0x869fe8
mov dword [esp + 0x1c], str.netascii
mov eax, dword [esp + 0x168]
cmp eax, 7
ja case.0x869ff8.1
jmp dword [eax*4 + 0x86a3bc]
mov edx, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
inc edx
mov eax, edx
mov dword [esi + 0x18], edx
cmp eax, ecx
jle 0x86a029
mov dword [esi + 8], 0xffffff9e
mov dword [esi], 3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x150
ret
mov eax, dword [ebp + 0xb90]
lea ebx, [esi + 0x150]
test eax, eax
je 0x86a076
push 2
push ebx
call fcn.0086a3e0
mov edx, dword [esi + 0x10]
mov ecx, dword [ebx]
add ecx, 4
add esp, 8
mov eax, dword [edx]
mov dword [eax + 0x124], ecx
mov eax, dword [ebp + 0xfa0]
mov ecx, dword [ebp + 0xfa4]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
je 0x86a081
push ecx
push eax
push ebp
call fcn.00861570
add esp, 0xc
jmp 0x86a081
push 1
push ebx
call fcn.0086a3e0
add esp, 8
mov ecx, dword [esi + 0x10]
push 0
lea eax, [esp + 0x1c]
push 0
mov edx, dword [ecx]
push eax
push 0
mov eax, dword [edx + 0xfd8]
inc eax
push eax
push ebp
call fcn.00862780
add esp, 0x18
mov dword [esp + 0x14], eax
test eax, eax
jne 0x86a3af
mov edi, dword [esp + 0x1c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x144]
mov edi, dword [esp + 0x18]
not ecx
dec ecx
sub edx, ecx
or ecx, 0xffffffff
sub edx, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, edx
jbe 0x86a0fe
push str.TFTP_file_name_too_long_n
push ebp
call fcn.00853f30
mov ecx, dword [esp + 0x20]
push ecx
call dword [0x8c5934]
add esp, 0xc
mov eax, 0x47
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x150
ret
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx]
push 0
push edx
push 0
push eax
mov eax, dword [esi + 0x144]
push str._s_c_s_c
add ecx, 2
push eax
push ecx
call fcn.0085d8b0
mov edi, dword [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x1c
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x1c]
not ecx
dec ecx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 4]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xb28]
test eax, eax
jne 0x86a2c3
mov eax, dword [ebp + 0xb90]
test eax, eax
je 0x86a18f
mov eax, dword [ebp + 0xfa0]
mov ecx, dword [ebp + 0xfa4]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
je 0x86a18f
push ecx
push eax
push str._I64d
lea eax, [esp + 0x2c]
push 0x40
push eax
call fcn.0085d8b0
add esp, 0x14
jmp 0x86a19b
mov cx, word [0x8c8c30]
mov word [esp + 0x20], cx
mov edx, dword [ebx]
mov ecx, dword [esp + 0x10]
add edx, ecx
push str.tsize
lea eax, [esp + 0x14]
push edx
push eax
push esi
call fcn.0086a400
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x86a1db
mov edx, dword [ebx]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
add edx, ecx
lea eax, [esp + 0x14]
push edx
push eax
push esi
call fcn.0086a400
add esp, 0x10
mov edi, eax
mov ecx, dword [esi + 0x148]
lea edx, [esp + 0x20]
push ecx
push 0x8c59ec
push 0x40
push edx
call fcn.0085d8b0
add esp, 0x10
test edi, edi
jne 0x86a23a
mov eax, dword [ebx]
mov edx, dword [esp + 0x10]
add eax, edx
push str.blksize
lea ecx, [esp + 0x14]
push eax
push ecx
push esi
call fcn.0086a400
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x86a23a
mov eax, dword [ebx]
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x14]
add eax, edx
lea ecx, [esp + 0x14]
push eax
push ecx
push esi
call fcn.0086a400
add esp, 0x10
mov edi, eax
mov edx, dword [esi + 0x1c]
lea eax, [esp + 0x20]
push edx
push 0x8c59ec
push 0x40
push eax
call fcn.0085d8b0
add esp, 0x10
test edi, edi
jne 0x86a29a
mov ecx, dword [ebx]
mov edi, dword [esp + 0x10]
add ecx, edi
push str.timeout
lea edx, [esp + 0x14]
push ecx
push edx
push esi
call fcn.0086a400
add esp, 0x10
test eax, eax
jne 0x86a29a
mov ecx, dword [ebx]
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x20]
add ecx, edi
push eax
lea edx, [esp + 0x14]
push ecx
push edx
push esi
call fcn.0086a400
add esp, 0x10
mov dword [esp + 0x14], eax
test eax, eax
je 0x86a2c3
push str.TFTP_buffer_too_small_for_options
push ebp
call fcn.00853f30
mov eax, dword [esp + 0x20]
push eax
call dword [0x8c5934]
add esp, 0xc
mov eax, 0x47
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x150
ret
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx + 0x2b8]
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x18]
push edx
mov edx, dword [ebx]
push eax
mov eax, dword [esi + 0x14]
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, dword [esp + 0x10]
je 0x86a313
lea ecx, [esp + 0x60]
push 0x100
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00880460
push eax
push 0x8c83b0
push ebp
call fcn.00853f30
add esp, 0x18
mov edx, dword [esp + 0x18]
push edx
call dword [0x8c5934]
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x150
ret
mov eax, dword [ebp + 0xb90]
push 6
test eax, eax
push esi
je 0x86a371
call fcn.0086a470
add esp, 8
mov dword [esp + 0x14], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x150
ret
push 4
push esi
call fcn.0086a470
add esp, 8
mov dword [esp + 0x14], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x150
ret
push 3
push esi
call fcn.0086a4b0
add esp, 8
mov dword [esp + 0x14], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x150
ret
mov eax, dword [esp + 0x14]
mov dword [esi], 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x150
ret
push str.tftp_send_first:_internal_error
push ebp
call fcn.00853f30
mov eax, dword [esp + 0x1c]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x150
ret