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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0xa0d230]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebx + 0x10]
cmp dword [esi + 0xea4], 0
push edi
mov dword [ebp - 0x148], str.octet
mov dword [ebp - 0x154], esi
mov dword [ebp - 0x14c], 0
je 0x9a46e8
mov dword [ebp - 0x148], str.netascii
cmp eax, 7
ja case.0x9a46f1.1
jmp dword [eax*4 + 0x9a4af0]
inc dword [ebx + 0x18]
mov eax, dword [ebx + 0x18]
cmp eax, dword [ebx + 0x20]
jle 0x9a4722
pop edi
mov dword [ebx + 8], 0xffffff9e
mov dword [ebx], 3
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00971b90
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x7dc], 0
lea ecx, [ebx + 0x14c]
je 0x9a476f
mov eax, 2
call fcn.009a37c0
mov eax, dword [ebx + 0x14c]
mov ecx, dword [ebx + 0x10]
add eax, 4
mov dword [ecx + 0x130], eax
mov eax, dword [esi + 0xd98]
mov ecx, dword [esi + 0xd9c]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
je 0x9a4779
push ecx
push eax
push esi
call fcn.0099df60
add esp, 0xc
jmp 0x9a4779
mov eax, 1
call fcn.009a37c0
mov ecx, dword [ebx + 0x10]
mov edx, dword [ecx + 0xdd0]
push 4
push 0
lea eax, [ebp - 0x150]
push eax
inc edx
push 0
push edx
call fcn.009b7840
add esp, 0x14
mov dword [ebp - 0x14c], eax
test eax, eax
jne 0x9a4ade
mov eax, dword [ebp - 0x150]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x9a47b0
sub eax, edx
mov edx, eax
mov eax, dword [ebp - 0x148]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x9a47c4
mov ecx, dword [ebx + 0x13c]
sub eax, edi
mov edi, ecx
sub edi, eax
sub edi, 4
cmp edx, edi
jbe 0x9a480e
push str.TFTP_file_name_too_long
push esi
call fcn.0098e040
mov eax, dword [ebp - 0x150]
push eax
call dword [0xa0e340]
add esp, 0xc
pop edi
mov eax, 0x47
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00971b90
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x148]
mov edx, dword [ebp - 0x150]
mov eax, dword [ebx + 0x14c]
push 0
push edi
push 0
push edx
push str._s_c_s_c
push ecx
add eax, 2
push eax
call fcn.00997ad0
mov eax, dword [ebp - 0x150]
add esp, 0x1c
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x9a4841
mov ecx, edi
sub eax, edx
lea edi, [ecx + 1]
nop
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x9a4850
sub ecx, edi
cmp dword [esi + 0x774], 0
lea edi, [ecx + eax + 4]
mov dword [ebp - 0x148], edi
jne 0x9a49cc
cmp dword [esi + 0x7dc], 0
je 0x9a48a5
mov eax, dword [esi + 0xd98]
mov esi, dword [esi + 0xd9c]
mov ecx, eax
and ecx, esi
cmp ecx, 0xffffffff
je 0x9a48a5
push esi
push eax
push str._I64d
lea edx, [ebp - 0x44]
push 0x40
push edx
call fcn.00997ad0
add esp, 0x14
jmp 0x9a48ae
mov eax, 0x30
mov word [ebp - 0x44], ax
mov ecx, dword [ebx + 0x14c]
add ecx, edi
push ecx
push ebx
mov esi, str.tsize
lea edi, [ebp - 0x148]
call fcn.009a3a70
mov esi, eax
add esp, 8
test esi, esi
jne 0x9a48ec
mov edx, dword [ebx + 0x14c]
add edx, dword [ebp - 0x148]
lea esi, [ebp - 0x44]
push edx
push ebx
call fcn.009a3a70
add esp, 8
mov esi, eax
mov eax, dword [ebx + 0x140]
push eax
push 0x9f5fbc
lea ecx, [ebp - 0x44]
push 0x40
push ecx
call fcn.00997ad0
add esp, 0x10
test esi, esi
jne 0x9a494c
mov edx, dword [ebx + 0x14c]
add edx, dword [ebp - 0x148]
mov esi, str.blksize
push edx
push ebx
lea edi, [ebp - 0x148]
call fcn.009a3a70
mov esi, eax
add esp, 8
test esi, esi
jne 0x9a494c
mov eax, dword [ebx + 0x14c]
add eax, dword [ebp - 0x148]
lea esi, [ebp - 0x44]
push eax
push ebx
call fcn.009a3a70
add esp, 8
mov esi, eax
mov ecx, dword [ebx + 0x1c]
push ecx
push 0x9f5fbc
lea edx, [ebp - 0x44]
push 0x40
push edx
call fcn.00997ad0
add esp, 0x10
test esi, esi
jne 0x9a49af
mov eax, dword [ebx + 0x14c]
add eax, dword [ebp - 0x148]
mov esi, str.timeout
push eax
push ebx
lea edi, [ebp - 0x148]
call fcn.009a3a70
add esp, 8
test eax, eax
jne 0x9a49af
mov ecx, dword [ebx + 0x14c]
add ecx, dword [ebp - 0x148]
lea esi, [ebp - 0x44]
push ecx
push ebx
call fcn.009a3a70
add esp, 8
mov dword [ebp - 0x14c], eax
test eax, eax
je 0x9a49c0
mov edx, dword [ebp - 0x154]
push str.TFTP_buffer_too_small_for_options
push edx
jmp 0x9a47e4
mov edi, dword [ebp - 0x148]
mov esi, dword [ebp - 0x154]
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 0x48]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x18]
mov ecx, dword [ebx + 0x14c]
push edx
mov edx, dword [ebx + 0x14]
push eax
push 0
push edi
push ecx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, edi
je 0x9a4a19
push 0x100
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.009be250
push eax
push 0x9f6a90
push esi
call fcn.0098e040
add esp, 0x18
mov ecx, dword [ebp - 0x150]
push ecx
call dword [0xa0e340]
mov eax, dword [ebp - 0x14c]
add esp, 4
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00971b90
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x7dc], 0
push 6
je 0x9a4a8e
mov eax, ebx
call fcn.009a4620
add esp, 4
pop edi
mov dword [ebp - 0x14c], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00971b90
mov esp, ebp
pop ebp
ret
push 4
mov eax, ebx
call fcn.009a4620
add esp, 4
pop edi
mov dword [ebp - 0x14c], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00971b90
mov esp, ebp
pop ebp
ret
push 3
mov esi, ebx
call fcn.009a4660
add esp, 4
pop edi
mov dword [ebp - 0x14c], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00971b90
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14c]
pop edi
mov dword [ebx], 3
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00971b90
mov esp, ebp
pop ebp
ret
push str.tftp_send_first:_internal_error
push esi
call fcn.0098e040
mov eax, dword [ebp - 0x14c]
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00971b90
mov esp, ebp
pop ebp
ret