Function at 0x865ac0
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 0x865af8
mov dword [esp + 0x1c], str.netascii
mov eax, dword [esp + 0x168]
cmp eax, 7
ja case.0x865b08.1
jmp dword [eax*4 + 0x865ecc]
mov edx, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
inc edx
mov eax, edx
mov dword [esi + 0x18], edx
cmp eax, ecx
jle 0x865b39
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 0x865b86
push 2
push ebx
call fcn.00865ef0
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 0x865b91
push ecx
push eax
push ebp
call fcn.0085d080
add esp, 0xc
jmp 0x865b91
push 1
push ebx
call fcn.00865ef0
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.0085e290
add esp, 0x18
mov dword [esp + 0x14], eax
test eax, eax
jne 0x865ebf
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 0x865c0e
push str.TFTP_file_name_too_long_n
push ebp
call fcn.0084fa40
mov ecx, dword [esp + 0x20]
push ecx
call dword [0x8c1934]
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.008593c0
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 0x865dd3
mov eax, dword [ebp + 0xb90]
test eax, eax
je 0x865c9f
mov eax, dword [ebp + 0xfa0]
mov ecx, dword [ebp + 0xfa4]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
je 0x865c9f
push ecx
push eax
push str._I64d
lea eax, [esp + 0x2c]
push 0x40
push eax
call fcn.008593c0
add esp, 0x14
jmp 0x865cab
mov cx, word [0x8c4c30]
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.00865f10
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x865ceb
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.00865f10
add esp, 0x10
mov edi, eax
mov ecx, dword [esi + 0x148]
lea edx, [esp + 0x20]
push ecx
push 0x8c19ec
push 0x40
push edx
call fcn.008593c0
add esp, 0x10
test edi, edi
jne 0x865d4a
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.00865f10
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x865d4a
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.00865f10
add esp, 0x10
mov edi, eax
mov edx, dword [esi + 0x1c]
lea eax, [esp + 0x20]
push edx
push 0x8c19ec
push 0x40
push eax
call fcn.008593c0
add esp, 0x10
test edi, edi
jne 0x865daa
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.00865f10
add esp, 0x10
test eax, eax
jne 0x865daa
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.00865f10
add esp, 0x10
mov dword [esp + 0x14], eax
test eax, eax
je 0x865dd3
push str.TFTP_buffer_too_small_for_options
push ebp
call fcn.0084fa40
mov eax, dword [esp + 0x20]
push eax
call dword [0x8c1934]
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 0x865e23
lea ecx, [esp + 0x60]
push 0x100
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0087bf70
push eax
push 0x8c43b0
push ebp
call fcn.0084fa40
add esp, 0x18
mov edx, dword [esp + 0x18]
push edx
call dword [0x8c1934]
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 0x865e81
call fcn.00865f80
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.00865f80
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.00865fc0
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.0084fa40
mov eax, dword [esp + 0x1c]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x150
ret