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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x7c0ab4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov ecx, str.netascii
mov eax, dword [edi + 0x10]
mov ebx, dword [eax]
mov eax, str.octet
cmp byte [ebx + 0x35b], 0
cmovne eax, ecx
mov dword [ebp - 0x4c], eax
cmp edx, 7
ja case.0x4c0b8c.1
jmp dword [edx*4 + 0x4c0fd8]
inc dword [edi + 0x18]
mov eax, dword [edi + 0x18]
cmp eax, dword [edi + 0x20]
jle 0x4c0bbe
mov dword [edi + 8], 0xffffff9e
xor eax, eax
mov dword [edi], 3
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006d0856
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x160]
cmp byte [ebx + 0x369], 0
mov byte [eax], 0
mov eax, dword [edi + 0x160]
je 0x4c0c11
mov byte [eax + 1], 2
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x160]
add ecx, 4
mov eax, dword [eax]
mov dword [eax + 0x128], ecx
mov edx, dword [ebx + 0x48d8]
mov eax, edx
mov ecx, dword [ebx + 0x48dc]
and eax, ecx
cmp eax, 0xffffffff
je 0x4c0c15
push ecx
push edx
mov ecx, ebx
call fcn.004b4880
add esp, 8
jmp 0x4c0c15
mov byte [eax + 1], 1
push 0
push 0
lea eax, [ebp - 0x50]
push eax
mov eax, dword [edi + 0x10]
push 0
mov eax, dword [eax]
mov edx, dword [eax + 0x48b4]
inc edx
call fcn.004bbce0
add esp, 0x10
mov dword [ebp - 0x54], eax
test eax, eax
jne 0x4c0fc6
push dword [ebp - 0x4c]
call fcn.006e5360
mov esi, dword [edi + 0x154]
add esp, 4
sub esi, eax
sub esi, 4
push dword [ebp - 0x50]
call fcn.006e5360
add esp, 4
cmp eax, esi
jbe 0x4c0c87
push str.TFTP_file_name_too_long_n
push ebx
call fcn.004aef10
add esp, 8
mov eax, 0x47
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006d0856
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x4c]
mov eax, dword [edi + 0x160]
push 0
push esi
push 0
push dword [ebp - 0x50]
add eax, 2
push str._s_c_s_c
push dword [edi + 0x154]
push eax
call fcn.004ba680
add esp, 0x1c
push esi
call fcn.006e5360
add esp, 4
mov esi, eax
push dword [ebp - 0x50]
call fcn.006e5360
add esi, 4
add esp, 4
add esi, eax
cmp byte [ebx + 0x1fc], 0
jne 0x4c0ed5
cmp byte [ebx + 0x369], 0
je 0x4c0d0c
mov edx, dword [ebx + 0x48d8]
mov eax, edx
mov ecx, dword [ebx + 0x48dc]
and eax, ecx
cmp eax, 0xffffffff
je 0x4c0d0c
push ecx
push edx
push str._I64d
lea eax, [ebp - 0x48]
push 0x40
push eax
call fcn.004ba680
add esp, 0x14
jmp 0x4c0d1d
lea eax, [ebp - 0x48]
push 0x7975d4
push eax
call fcn.006e6d10
add esp, 8
mov eax, dword [edi + 0x160]
add eax, esi
push str.tsize
mov dword [ebp - 0x4c], eax
call fcn.006e5360
inc eax
add esp, 4
add eax, esi
cmp eax, dword [edi + 0x154]
jbe 0x4c0d44
xor eax, eax
jmp 0x4c0d5f
push str.tsize
push dword [ebp - 0x4c]
call fcn.006e6d10
push str.tsize
call fcn.006e5360
add esp, 0xc
inc eax
add esi, eax
mov eax, dword [edi + 0x160]
add eax, esi
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x48]
push eax
call fcn.006e5360
inc eax
add esp, 4
add eax, esi
cmp eax, dword [edi + 0x154]
jbe 0x4c0d87
xor eax, eax
jmp 0x4c0da0
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x4c]
call fcn.006e6d10
lea eax, [ebp - 0x48]
push eax
call fcn.006e5360
add esp, 0xc
inc eax
push dword [edi + 0x158]
add esi, eax
lea eax, [ebp - 0x48]
push 0x793c48
push 0x40
push eax
call fcn.004ba680
mov eax, dword [edi + 0x160]
add eax, esi
push str.blksize
mov dword [ebp - 0x4c], eax
call fcn.006e5360
inc eax
add esp, 0x14
add eax, esi
cmp eax, dword [edi + 0x154]
jbe 0x4c0ddf
xor eax, eax
jmp 0x4c0dfa
push str.blksize
push dword [ebp - 0x4c]
call fcn.006e6d10
push str.blksize
call fcn.006e5360
add esp, 0xc
inc eax
add esi, eax
mov eax, dword [edi + 0x160]
add eax, esi
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x48]
push eax
call fcn.006e5360
inc eax
add esp, 4
add eax, esi
cmp eax, dword [edi + 0x154]
jbe 0x4c0e22
xor eax, eax
jmp 0x4c0e3b
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x4c]
call fcn.006e6d10
lea eax, [ebp - 0x48]
push eax
call fcn.006e5360
add esp, 0xc
inc eax
push dword [edi + 0x1c]
add esi, eax
lea eax, [ebp - 0x48]
push 0x793c48
push 0x40
push eax
call fcn.004ba680
mov eax, dword [edi + 0x160]
add eax, esi
push str.timeout
mov dword [ebp - 0x4c], eax
call fcn.006e5360
inc eax
add esp, 0x14
add eax, esi
cmp eax, dword [edi + 0x154]
jbe 0x4c0e77
xor eax, eax
jmp 0x4c0e92
push str.timeout
push dword [ebp - 0x4c]
call fcn.006e6d10
push str.timeout
call fcn.006e5360
add esp, 0xc
inc eax
add esi, eax
mov eax, dword [edi + 0x160]
add eax, esi
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x48]
push eax
call fcn.006e5360
inc eax
add esp, 4
add eax, esi
cmp eax, dword [edi + 0x154]
jbe 0x4c0eba
xor eax, eax
jmp 0x4c0ed3
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x4c]
call fcn.006e6d10
lea eax, [ebp - 0x48]
push eax
call fcn.006e5360
add esp, 0xc
inc eax
add esi, eax
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 0x54]
push dword [eax + 0x10]
push dword [eax + 0x18]
push 0
push esi
push dword [edi + 0x160]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, esi
je 0x4c0f16
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [edi + 0x10]
mov edx, eax
call fcn.004bafa0
push eax
push 0x7964ec
push ebx
call fcn.004aef10
add esp, 0xc
push dword [ebp - 0x50]
call fcn.006d6340
mov esi, dword [ebp - 0x54]
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006d0856
mov esp, ebp
pop ebp
ret
cmp byte [ebx + 0x369], 0
mov edx, 6
mov ecx, edi
je 0x4c0f85
call fcn.004c0ad0
mov esi, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006d0856
mov esp, ebp
pop ebp
ret
mov edx, 4
mov ecx, edi
call fcn.004c0ad0
mov esi, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006d0856
mov esp, ebp
pop ebp
ret
mov edx, 3
mov ecx, edi
call fcn.004c0b10
mov esi, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006d0856
mov esp, ebp
pop ebp
ret
mov dword [edi], 3
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006d0856
mov esp, ebp
pop ebp
ret
push str.tftp_send_first:_internal_error
push ebx
call fcn.004aef10
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006d0856
mov esp, ebp
pop ebp
ret