Function at 0x85c1a0
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 0x85c1d8
mov dword [esp + 0x1c], str.netascii
mov eax, dword [esp + 0x168]
cmp eax, 7
ja case.0x85c1e8.1
jmp dword [eax*4 + 0x85c5ac]
mov edx, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
inc edx
mov eax, edx
mov dword [esi + 0x18], edx
cmp eax, ecx
jle 0x85c219
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 0x85c266
push 2
push ebx
call fcn.0085c5d0
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 0x85c271
push ecx
push eax
push ebp
call fcn.00853760
add esp, 0xc
jmp 0x85c271
push 1
push ebx
call fcn.0085c5d0
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.00854970
add esp, 0x18
mov dword [esp + 0x14], eax
test eax, eax
jne 0x85c59f
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 0x85c2ee
push str.TFTP_file_name_too_long_n
push ebp
call fcn.00846120
mov ecx, dword [esp + 0x20]
push ecx
call dword [0x8b8934]
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.0084faa0
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 0x85c4b3
mov eax, dword [ebp + 0xb90]
test eax, eax
je 0x85c37f
mov eax, dword [ebp + 0xfa0]
mov ecx, dword [ebp + 0xfa4]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
je 0x85c37f
push ecx
push eax
push str._I64d
lea eax, [esp + 0x2c]
push 0x40
push eax
call fcn.0084faa0
add esp, 0x14
jmp 0x85c38b
mov cx, word [0x8bbc30]
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.0085c5f0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x85c3cb
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.0085c5f0
add esp, 0x10
mov edi, eax
mov ecx, dword [esi + 0x148]
lea edx, [esp + 0x20]
push ecx
push 0x8b89ec
push 0x40
push edx
call fcn.0084faa0
add esp, 0x10
test edi, edi
jne 0x85c42a
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.0085c5f0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x85c42a
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.0085c5f0
add esp, 0x10
mov edi, eax
mov edx, dword [esi + 0x1c]
lea eax, [esp + 0x20]
push edx
push 0x8b89ec
push 0x40
push eax
call fcn.0084faa0
add esp, 0x10
test edi, edi
jne 0x85c48a
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.0085c5f0
add esp, 0x10
test eax, eax
jne 0x85c48a
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.0085c5f0
add esp, 0x10
mov dword [esp + 0x14], eax
test eax, eax
je 0x85c4b3
push str.TFTP_buffer_too_small_for_options
push ebp
call fcn.00846120
mov eax, dword [esp + 0x20]
push eax
call dword [0x8b8934]
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 0x85c503
lea ecx, [esp + 0x60]
push 0x100
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00872650
push eax
push 0x8bb3b0
push ebp
call fcn.00846120
add esp, 0x18
mov edx, dword [esp + 0x18]
push edx
call dword [0x8b8934]
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 0x85c561
call fcn.0085c660
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.0085c660
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.0085c6a0
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.00846120
mov eax, dword [esp + 0x1c]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x150
ret