Function at 0x86d9b0
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 0x86d9e8
mov dword [esp + 0x1c], str.netascii
mov eax, dword [esp + 0x168]
cmp eax, 7
ja case.0x86d9f8.1
jmp dword [eax*4 + 0x86ddbc]
mov edx, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
inc edx
mov eax, edx
mov dword [esi + 0x18], edx
cmp eax, ecx
jle 0x86da29
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 0x86da76
push 2
push ebx
call fcn.0086dde0
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 0x86da81
push ecx
push eax
push ebp
call fcn.00864f70
add esp, 0xc
jmp 0x86da81
push 1
push ebx
call fcn.0086dde0
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.00866180
add esp, 0x18
mov dword [esp + 0x14], eax
test eax, eax
jne 0x86ddaf
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 0x86dafe
push str.TFTP_file_name_too_long_n
push ebp
call fcn.00857930
mov ecx, dword [esp + 0x20]
push ecx
call dword [0x8c9934]
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.008612b0
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 0x86dcc3
mov eax, dword [ebp + 0xb90]
test eax, eax
je 0x86db8f
mov eax, dword [ebp + 0xfa0]
mov ecx, dword [ebp + 0xfa4]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
je 0x86db8f
push ecx
push eax
push str._I64d
lea eax, [esp + 0x2c]
push 0x40
push eax
call fcn.008612b0
add esp, 0x14
jmp 0x86db9b
mov cx, word [0x8ccc30]
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.0086de00
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x86dbdb
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.0086de00
add esp, 0x10
mov edi, eax
mov ecx, dword [esi + 0x148]
lea edx, [esp + 0x20]
push ecx
push 0x8c99ec
push 0x40
push edx
call fcn.008612b0
add esp, 0x10
test edi, edi
jne 0x86dc3a
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.0086de00
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x86dc3a
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.0086de00
add esp, 0x10
mov edi, eax
mov edx, dword [esi + 0x1c]
lea eax, [esp + 0x20]
push edx
push 0x8c99ec
push 0x40
push eax
call fcn.008612b0
add esp, 0x10
test edi, edi
jne 0x86dc9a
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.0086de00
add esp, 0x10
test eax, eax
jne 0x86dc9a
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.0086de00
add esp, 0x10
mov dword [esp + 0x14], eax
test eax, eax
je 0x86dcc3
push str.TFTP_buffer_too_small_for_options
push ebp
call fcn.00857930
mov eax, dword [esp + 0x20]
push eax
call dword [0x8c9934]
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 0x86dd13
lea ecx, [esp + 0x60]
push 0x100
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00883e60
push eax
push 0x8cc3b0
push ebp
call fcn.00857930
add esp, 0x18
mov edx, dword [esp + 0x18]
push edx
call dword [0x8c9934]
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 0x86dd71
call fcn.0086de70
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.0086de70
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.0086deb0
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.00857930
mov eax, dword [esp + 0x1c]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x150
ret