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

Disassembly:
test eax, eax
je 0x10027d9b
test bl, bl
jne 0x10028029
mov byte [edi + 0x2c], 1
jmp 0x1004f3a8
add byte [ecx + 0x100bd044], ah
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov eax, str.netascii
mov edi, str.octet
mov edx, dword [esi + 0x10]
mov dword [ebp - 0x14c], edx
cmp byte [edx + 0xd0b], bl
cmovne edi, eax
mov eax, dword [ebp + 0xc]
cmp eax, 7
ja case.0x1004f3e3.1
jmp dword [eax*4 + 0x1004f88c]
inc dword [esi + 0x18]
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x20]
jle 0x1004f415
pop edi
mov dword [esi + 8], 0xffffff9e
xor eax, eax
mov dword [esi], 3
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call 0x100c17e0
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14c]
cmp byte [edx + 0x6f8], bl
mov byte [eax], bl
mov eax, dword [esi + 0x14c]
je 0x1004f463
mov byte [eax + 1], 2
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14c]
add ecx, 4
mov dword [eax + 0x130], ecx
mov ebx, dword [edx + 0xc38]
mov eax, ebx
mov ecx, dword [edx + 0xc3c]
and eax, ecx
cmp eax, 0xffffffff
je 0x1004f467
push ecx
push ebx
push edx
call fcn.1009083e
add esp, 0xc
jmp 0x1004f467
mov byte [eax + 1], 1
push 4
push 0
lea eax, [ebp - 0x148]
push eax
mov eax, dword [esi + 0x10]
push 0
mov eax, dword [eax + 0xc64]
inc eax
push eax
call 0x100ae114
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x1004f878
mov ecx, dword [ebp - 0x148]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004f4a0
sub ecx, edx
mov edx, edi
lea eax, [edx + 1]
mov dword [ebp - 0x150], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x1004f4b4
sub edx, dword [ebp - 0x150]
mov eax, dword [esi + 0x13c]
sub eax, edx
sub eax, 4
cmp ecx, eax
jbe 0x1004f505
push str.TFTP_file_name_too_long
push dword [ebp - 0x14c]
call fcn.10082050
push dword [ebp - 0x148]
call dword [0x100bd004]
add esp, 0xc
mov eax, 0x47
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call 0x100c18d0
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14c]
push 0
push edi
push 0
push dword [ebp - 0x148]
add eax, 2
push str._s_c_s_c
push dword [esi + 0x13c]
push eax
call fcn.100944da
mov ecx, dword [ebp - 0x148]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004f536
sub ecx, edx
lea edx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x1004f542
mov eax, dword [ebp - 0x14c]
sub edi, edx
add edi, 4
add edi, ecx
cmp byte [eax + 0x6de], 0
jne 0x1004f7b8
cmp byte [eax + 0x6f8], 0
je 0x1004f598
mov edx, dword [eax + 0xc38]
mov ecx, dword [eax + 0xc3c]
mov eax, edx
and eax, ecx
cmp eax, 0xffffffff
je 0x1004f598
push ecx
push edx
push str._I64d
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.10094543
add esp, 0x14
jmp 0x1004f5a1
mov eax, 0x30
mov word [ebp - 0x44], ax
lea ebx, [edi + 6]
cmp ebx, dword [esi + 0x13c]
ja 0x1004f5ea
mov ecx, dword [esi + 0x14c]
mov edx, str.tsize
add ecx, edi
nop dword [eax]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x1004f5c0
lea ecx, [ebp - 0x44]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004f5d4
sub ecx, edx
lea eax, [ecx + 1]
add eax, ebx
cmp eax, dword [esi + 0x13c]
jbe 0x1004f64b
push dword [esi + 0x140]
lea eax, [ebp - 0x44]
push 0x1009f788
push 0x40
push eax
call fcn.100945b0
push dword [esi + 0x1c]
lea eax, [ebp - 0x44]
push 0x1009f788
push 0x40
mov ecx, dword [esi + 0x14c]
lea edx, [ebp - 0x44]
add ecx, ebx
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x1004f656
lea ecx, [ebp - 0x44]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004f670
push dword [esi + 0x140]
sub ecx, edx
lea eax, [ebp - 0x44]
push 0x1009f788
push 0x40
push eax
lea edi, [ecx + 1]
add edi, ebx
call fcn.10094644
lea ebx, [edi + 8]
add esp, 0x10
cmp ebx, dword [esi + 0x13c]
ja 0x1004f6da
mov ecx, dword [esi + 0x14c]
mov edx, str.blksize
add ecx, edi
nop
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x1004f6b0
lea ecx, [ebp - 0x44]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004f6c4
sub ecx, edx
lea eax, [ecx + 1]
add eax, ebx
cmp eax, dword [esi + 0x13c]
jbe 0x1004f6f5
push dword [esi + 0x1c]
lea eax, [ebp - 0x44]
push 0x1009f788
test dword [ecx], 0x50406a10
call fcn.1009469d
add esp, 0x10
jmp 0x1009e10b
mov ecx, dword [esi + 0x14c]
lea edx, [ebp - 0x44]
add ecx, ebx
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x1004f700
lea ecx, [ebp - 0x44]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004f714
push dword [esi + 0x1c]
sub ecx, edx
lea eax, [ebp - 0x44]
push 0x1009f788
inc ecx
push 0x40
push eax
add ebx, ecx
call fcn.100946e3
lea edi, [ebx + 8]
add esp, 0x10
cmp edi, dword [esi + 0x13c]
ja 0x1004f616
mov ecx, dword [esi + 0x14c]
mov edx, str.timeout
add ecx, ebx
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x1004f752
invalid
lea ecx, [ebp - 0x44]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004f766
sub ecx, edx
lea eax, [edi + 1]
add eax, ecx
cmp eax, dword [esi + 0x13c]
ja 0x1004f616
mov ecx, dword [esi + 0x14c]
lea edx, [ebp - 0x44]
add ecx, edi
nop dword [eax + eax]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x1004f790
lea ecx, [ebp - 0x44]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004f7a4
mov eax, dword [ebp - 0x14c]
sub ecx, edx
inc edi
add edi, ecx
xor ebx, ebx
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x48]
push dword [eax + 0x10]
push dword [eax + 0x18]
push 0
push edi
push dword [esi + 0x14c]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, edi
je 0x1004f806
push 0x100
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call 0x100af302
push eax
push 0x100b68e0
push dword [ebp - 0x14c]
call fcn.10082373
add esp, 0x18
push dword [ebp - 0x148]
call dword [0x100bd004]
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call 0x100c1bf3
mov esp, ebp
pop ebp
ret
push eax
push esi
cmp byte [edx + 0x6f8], bl
je 0x1004f848
call fcn.1009d8e7
mov ebx, eax
jmp 0x1004f875
push eax
push esi
call fcn.1009d8f2
mov ebx, eax
jmp 0x1004f875
push eax
push esi
call fcn.1009d8cd
mov ebx, eax
jmp 0x1004f875
pop edi
mov dword [esi], 3
mov eax, ebx
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call 0x100c1c35
mov esp, ebp
pop ebp
ret
push str.tftp_send_first:_internal_error
push edx
call fcn.100823e5
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call 0x100c1c56
mov esp, ebp
pop ebp
ret
jmp 0x100ac505