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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x590cc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x10]
push ebx
push esi
mov esi, dword [eax]
mov eax, dword [esi + 0xa8c]
mov ebx, str.octet
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x94], esi
mov dword [ebp - 0x88], 0
test eax, 0x800
je 0x4fe65d
mov ebx, str.netascii
mov dword [ebp - 0x90], ebx
cmp ecx, 7
ja case.0x4fe666.1
jmp dword [ecx*4 + 0x4fea10]
inc dword [edi + 0x18]
mov eax, dword [edi + 0x18]
cmp eax, dword [edi + 0x20]
jle 0x4fe697
pop esi
mov dword [edi + 8], 0xffffff9e
mov dword [edi], 3
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret
test dword [esi + 0xa8c], 0x2000000
je 0x4fe6ec
mov ecx, dword [edi + 0x160]
mov byte [ecx], 0
mov edx, dword [edi + 0x160]
mov byte [edx + 1], 2
mov ecx, dword [edi + 0x10]
mov eax, dword [edi + 0x160]
mov edx, dword [ecx]
add eax, 4
mov dword [edx + 0x150], eax
mov eax, dword [esi + 0xf20]
mov ecx, dword [esi + 0xf24]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
je 0x4fe6ff
push ecx
push eax
push esi
call fcn.00511370
add esp, 0xc
jmp 0x4fe6ff
mov eax, dword [edi + 0x160]
mov byte [eax], 0
mov ecx, dword [edi + 0x160]
mov byte [ecx + 1], 1
mov eax, dword [edi + 0x10]
mov ecx, dword [eax]
push 0
push 0
lea edx, [ebp - 0x8c]
push edx
mov edx, dword [ecx + 0xf58]
push 0
inc edx
push edx
push esi
call fcn.005104d0
add esp, 0x18
mov dword [ebp - 0x88], eax
test eax, eax
jne 0x4fea00
mov eax, dword [ebp - 0x8c]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4fe740
sub eax, edx
mov edx, eax
mov eax, ebx
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4fe750
mov ecx, dword [edi + 0x154]
sub eax, ebx
mov ebx, ecx
sub ebx, eax
sub ebx, 4
cmp edx, ebx
jbe 0x4fe79a
push str.TFTP_file_name_too_long_n
push esi
call fcn.004ed150
mov eax, dword [ebp - 0x8c]
push eax
call dword [0x592308]
add esp, 0xc
pop esi
mov eax, 0x47
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x90]
mov edx, dword [ebp - 0x8c]
mov eax, dword [edi + 0x160]
push 0
push ebx
push 0
push edx
push str._s_c_s_c
push ecx
add eax, 2
push eax
call fcn.004f47c0
mov eax, dword [ebp - 0x8c]
add esp, 0x1c
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4fe7d0
mov ecx, ebx
sub eax, edx
lea ebx, [ecx + 1]
mov edi, edi
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4fe7e0
sub ecx, ebx
lea ebx, [ecx + eax + 4]
mov eax, dword [esi + 0xa8c]
test al, 8
jne 0x4fe8f0
test eax, 0x2000000
je 0x4fe82e
mov eax, dword [esi + 0xf20]
mov esi, dword [esi + 0xf24]
mov ecx, eax
and ecx, esi
cmp ecx, 0xffffffff
je 0x4fe82e
push esi
push eax
push str._I64d
lea edx, [ebp - 0x44]
push 0x40
push edx
call fcn.004f47c0
add esp, 0x14
jmp 0x4fe837
mov eax, 0x30
mov word [ebp - 0x44], ax
mov ecx, dword [edi + 0x160]
add ecx, ebx
push ecx
push ebx
push edi
mov esi, str.tsize
call fcn.004fd9e0
mov edx, dword [edi + 0x160]
add ebx, eax
add edx, ebx
push edx
push ebx
push edi
lea esi, [ebp - 0x44]
call fcn.004fd9e0
add ebx, eax
mov eax, dword [edi + 0x158]
push eax
push 0x55f060
mov ecx, esi
push 0x40
push ecx
call fcn.004f47c0
mov edx, dword [edi + 0x160]
add edx, ebx
push edx
push ebx
push edi
mov esi, str.blksize
call fcn.004fd9e0
add ebx, eax
mov eax, dword [edi + 0x160]
add eax, ebx
push eax
push ebx
push edi
lea esi, [ebp - 0x44]
call fcn.004fd9e0
mov ecx, dword [edi + 0x1c]
add esp, 0x40
push ecx
push 0x55f060
mov edx, esi
push 0x40
push edx
add ebx, eax
call fcn.004f47c0
mov eax, dword [edi + 0x160]
add eax, ebx
push eax
push ebx
push edi
mov esi, str.timeout
call fcn.004fd9e0
mov ecx, dword [edi + 0x160]
add ebx, eax
add ecx, ebx
push ecx
push ebx
push edi
lea esi, [ebp - 0x44]
call fcn.004fd9e0
mov esi, dword [ebp - 0x94]
add esp, 0x28
add ebx, eax
mov edx, dword [edi + 0x10]
mov eax, dword [edx + 0x50]
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x18]
mov eax, dword [edi + 0x160]
push ecx
mov ecx, dword [edi + 0x14]
push edx
push 0
push ebx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, ebx
je 0x4fe93d
push 0x80
lea edx, [ebp - 0x84]
push edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00514fd0
push eax
push 0x55f270
push esi
call fcn.004ed150
add esp, 0x18
mov eax, dword [ebp - 0x8c]
push eax
call dword [0x592308]
mov eax, dword [ebp - 0x88]
add esp, 4
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret
push 6
test eax, 0x2000000
je 0x4fe9b0
mov eax, edi
call fcn.004fe590
add esp, 4
pop esi
mov dword [ebp - 0x88], eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret
push 4
mov eax, edi
call fcn.004fe590
add esp, 4
pop esi
mov dword [ebp - 0x88], eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret
push 3
mov esi, edi
call fcn.004fe5d0
add esp, 4
pop esi
mov dword [ebp - 0x88], eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x88]
pop esi
mov dword [edi], 3
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret
push str.tftp_send_first:_internal_error
push esi
call fcn.004ed150
mov eax, dword [ebp - 0x88]
add esp, 8
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret