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

Disassembly:
sub esp, 0x14c
push ebx
push ebp
mov ebp, dword [esp + 0x158]
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ecx]
cmp dword [ebx + 0xbb0], 0
push esi
push edi
mov dword [esp + 0x10], str.octet
mov dword [esp + 0x14], 0
je 0x4aefc7
mov dword [esp + 0x10], str.netascii
cmp eax, 7
ja case.0x4aefd0.1
jmp dword [eax*4 + 0x4af388]
inc dword [ebp + 0x18]
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebp + 0x20]
jle 0x4aeffd
pop edi
pop esi
mov dword [ebp + 8], 0xffffff9e
mov dword [ebp], 3
pop ebp
xor eax, eax
pop ebx
add esp, 0x14c
ret
cmp dword [ebx + 0xbf8], 0
je 0x4af04f
mov edx, dword [ebp + 0x160]
mov byte [edx], 0
mov eax, dword [ebp + 0x160]
mov byte [eax + 1], 2
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x160]
mov eax, dword [edx]
add ecx, 4
mov dword [eax + 0x13c], ecx
mov eax, dword [ebx + 0x11a0]
mov ecx, dword [ebx + 0x11a4]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
je 0x4af062
push ecx
push eax
push ebx
call fcn.004a8c90
add esp, 0xc
jmp 0x4af062
mov eax, dword [ebp + 0x160]
mov byte [eax], 0
mov ecx, dword [ebp + 0x160]
mov byte [ecx + 1], 1
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push 4
push 0
lea edx, [esp + 0x20]
push edx
mov edx, dword [ecx + 0x11d8]
push 0
inc edx
push edx
push ebx
call fcn.004a9d50
add esp, 0x18
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4af37d
mov edi, dword [esp + 0x18]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4af098
sub eax, edx
mov edx, eax
mov eax, dword [esp + 0x10]
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4af0b0
mov ecx, dword [ebp + 0x154]
sub eax, esi
mov esi, ecx
sub esi, eax
sub esi, 4
cmp edx, esi
jbe 0x4af0f3
push str.TFTP_file_name_too_long
push ebx
call fcn.00499e30
mov eax, dword [esp + 0x20]
push eax
call dword [0x54ae6c]
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 0x47
pop ebx
add esp, 0x14c
ret
mov esi, dword [esp + 0x10]
push 0
push esi
push 0
push edi
push str._s_c_s_c
push ecx
mov ecx, dword [ebp + 0x160]
add ecx, 2
push ecx
call fcn.004a3760
mov eax, dword [esp + 0x34]
add esp, 0x1c
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4af120
mov ecx, esi
sub eax, edx
lea esi, [ecx + 1]
mov edi, edi
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4af130
sub ecx, esi
cmp dword [ebx + 0xb90], 0
lea esi, [ecx + eax + 4]
mov dword [esp + 0x10], esi
jne 0x4af290
cmp dword [ebx + 0xbf8], 0
je 0x4af184
mov eax, dword [ebx + 0x11a0]
mov ecx, dword [ebx + 0x11a4]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
je 0x4af184
push ecx
push eax
push str._I64d
lea eax, [esp + 0x28]
push 0x40
push eax
call fcn.004a3760
add esp, 0x14
jmp 0x4af18e
mov ecx, 0x30
mov word [esp + 0x1c], cx
mov edx, dword [ebp + 0x160]
add edx, esi
push edx
push ebp
mov esi, str.tsize
lea edi, [esp + 0x18]
call fcn.004ae3e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4af1c9
mov eax, dword [ebp + 0x160]
add eax, dword [esp + 0x10]
lea esi, [esp + 0x1c]
push eax
push ebp
call fcn.004ae3e0
add esp, 8
mov esi, eax
mov ecx, dword [ebp + 0x158]
push ecx
push 0x5161ac
lea edx, [esp + 0x24]
push 0x40
push edx
call fcn.004a3760
add esp, 0x10
test esi, esi
jne 0x4af225
mov eax, dword [ebp + 0x160]
add eax, dword [esp + 0x10]
mov esi, str.blksize
push eax
push ebp
lea edi, [esp + 0x18]
call fcn.004ae3e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4af225
mov ecx, dword [ebp + 0x160]
add ecx, dword [esp + 0x10]
lea esi, [esp + 0x1c]
push ecx
push ebp
call fcn.004ae3e0
add esp, 8
mov esi, eax
mov edx, dword [ebp + 0x1c]
push edx
push 0x5161ac
lea eax, [esp + 0x24]
push 0x40
push eax
call fcn.004a3760
add esp, 0x10
test esi, esi
jne 0x4af282
mov ecx, dword [ebp + 0x160]
add ecx, dword [esp + 0x10]
mov esi, str.timeout
push ecx
push ebp
lea edi, [esp + 0x18]
call fcn.004ae3e0
add esp, 8
test eax, eax
jne 0x4af282
mov edx, dword [ebp + 0x160]
add edx, dword [esp + 0x10]
lea esi, [esp + 0x1c]
push edx
push ebp
call fcn.004ae3e0
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
je 0x4af28c
push str.TFTP_buffer_too_small_for_options
jmp 0x4af0cf
mov esi, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 0x2b8]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x18]
mov ecx, dword [ebp + 0x160]
push edx
mov edx, dword [ebp + 0x14]
push eax
push 0
push esi
push ecx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, esi
je 0x4af2de
push 0x100
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0048f4e0
push eax
push 0x51c264
push ebx
call fcn.00499e30
add esp, 0x18
mov ecx, dword [esp + 0x18]
push ecx
call dword [0x54ae6c]
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14c
ret
cmp dword [ebx + 0xbf8], 0
push 6
je 0x4af33c
mov eax, ebp
call fcn.004aef10
add esp, 4
pop edi
pop esi
pop ebp
mov dword [esp + 8], eax
pop ebx
add esp, 0x14c
ret
push 4
mov eax, ebp
call fcn.004aef10
add esp, 4
pop edi
pop esi
pop ebp
mov dword [esp + 8], eax
pop ebx
add esp, 0x14c
ret
push 3
mov esi, ebp
call fcn.004aef50
add esp, 4
pop edi
pop esi
pop ebp
mov dword [esp + 8], eax
pop ebx
add esp, 0x14c
ret
mov eax, dword [esp + 0x14]
pop edi
pop esi
mov dword [ebp], 3
pop ebp
pop ebx
add esp, 0x14c
ret
push str.tftp_send_first:_internal_error
push ebx
call fcn.00499e30
mov eax, dword [esp + 0x1c]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14c
ret