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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x74b738]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, str.octet
mov eax, dword [esi + 0x10]
mov ebx, dword [eax]
mov eax, str.netascii
cmp byte [ebx + 0x2fb], 0
cmovne edi, eax
cmp edx, 7
ja case.0x4c8507.1
jmp dword [edx*4 + 0x4c87e8]
inc dword [esi + 0x18]
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x20]
jle 0x4c8539
mov dword [esi + 8], 0xffffff9e
mov dword [esi], 3
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00669a1e
mov esp, ebp
pop ebp
ret
cmp byte [ebx + 0x309], 0
lea ecx, [esi + 0x160]
je 0x4c8589
mov edx, 2
call fcn.004c80e0
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x160]
add ecx, 4
mov eax, dword [eax]
mov dword [eax + 0x14c], ecx
mov edx, dword [ebx + 0x8688]
mov eax, edx
mov ecx, dword [ebx + 0x868c]
and eax, ecx
cmp eax, 0xffffffff
je 0x4c8593
push ecx
push edx
mov ecx, ebx
call fcn.004bfb60
add esp, 8
jmp 0x4c8593
mov edx, 1
call fcn.004c80e0
mov eax, dword [esi + 0x10]
push 0
push 0
mov eax, dword [eax]
mov edx, dword [eax + 0x8664]
inc edx
call fcn.004c2ef0
add esp, 8
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x4c85c8
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00669a1e
mov esp, ebp
pop ebp
ret
push 0
push edi
push 0
push eax
mov eax, dword [esi + 0x160]
push str._s_c_s_c
push dword [esi + 0x154]
add eax, 2
push eax
call fcn.004c1720
mov ecx, dword [ebp - 0x4c]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c85f1
sub ecx, edx
lea edx, [edi + 1]
nop dword [eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x4c8600
sub edi, edx
add edi, 4
add edi, ecx
cmp byte [ebx + 0x309], al
je 0x4c8642
mov edx, dword [ebx + 0x8688]
mov eax, edx
mov ecx, dword [ebx + 0x868c]
and eax, ecx
cmp eax, 0xffffffff
je 0x4c8642
push ecx
push edx
push str._lld
lea eax, [ebp - 0x48]
push 0x40
push eax
call fcn.004c1720
add esp, 0x14
jmp 0x4c864b
mov eax, 0x30
mov word [ebp - 0x48], ax
mov eax, dword [esi + 0x160]
mov edx, edi
add eax, edi
mov ecx, esi
push str.tsize
push eax
call fcn.004c83f0
add edi, eax
mov ecx, esi
lea eax, [ebp - 0x48]
mov edx, edi
push eax
mov eax, dword [esi + 0x160]
add eax, edi
push eax
call fcn.004c83f0
push dword [esi + 0x158]
add edi, eax
lea eax, [ebp - 0x48]
push 0x6ec368
push 0x40
push eax
call fcn.004c1720
mov eax, dword [esi + 0x160]
mov edx, edi
add eax, edi
mov ecx, esi
push str.blksize
push eax
call fcn.004c83f0
add edi, eax
mov ecx, esi
lea eax, [ebp - 0x48]
mov edx, edi
push eax
mov eax, dword [esi + 0x160]
add eax, edi
push eax
call fcn.004c83f0
push dword [esi + 0x1c]
add edi, eax
lea eax, [ebp - 0x48]
push 0x6ec368
push 0x40
push eax
call fcn.004c1720
mov eax, dword [esi + 0x160]
add esp, 0x40
add eax, edi
mov edx, edi
mov ecx, esi
push str.timeout
push eax
call fcn.004c83f0
add edi, eax
mov ecx, esi
lea eax, [ebp - 0x48]
mov edx, edi
push eax
mov eax, dword [esi + 0x160]
add eax, edi
push eax
call fcn.004c83f0
add edi, eax
add esp, 0x10
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0x4c]
push dword [eax + 0x10]
push dword [eax + 0x18]
push 0
push edi
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, edi
je 0x4c874e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esi + 0x10]
mov edx, eax
call fcn.004c21a0
push eax
push 0x6f0620
push ebx
call fcn.004ac430
add esp, 0xc
push dword [ebp - 0x4c]
call dword [0x74b960]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00669a1e
mov esp, ebp
pop ebp
ret
cmp byte [ebx + 0x309], 0
mov edx, 6
je 0x4c87b1
call fcn.004c8450
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00669a1e
mov esp, ebp
pop ebp
ret
mov edx, 4
call fcn.004c8450
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00669a1e
mov esp, ebp
pop ebp
ret
mov edx, 3
call fcn.004c8490
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00669a1e
mov esp, ebp
pop ebp
ret
push str.tftp_send_first:_internal_error
push ebx
call fcn.004ac430
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.00669a1e
mov esp, ebp
pop ebp
ret