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

Disassembly:
sub esp, 0x44
push ebx
mov ebx, dword [esp + 0x4c]
push ebp
push esi
mov eax, dword [ebx + 0xc]
push edi
mov esi, str.octet
mov dword [esp + 0x58], 0
mov edi, dword [eax]
mov dword [esp + 0x10], edi
mov al, byte [edi + 0x24b]
test al, al
je 0x416c70
mov esi, str.netascii
mov eax, dword [esp + 0x5c]
cmp eax, 7
ja case.0x416c7d.1
jmp dword [eax*4 + 0x416f38]
mov edx, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x1c]
inc edx
mov eax, edx
mov dword [ebx + 0x14], edx
cmp eax, ecx
jle 0x416cab
pop edi
pop esi
mov dword [ebx + 8], 0xffffff9e
mov dword [ebx], 3
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret
mov al, byte [edi + 0x258]
lea ebp, [ebx + 0x148]
test al, al
je 0x416cf9
push 2
push ebp
call fcn.00416f60
mov edx, dword [ebx + 0xc]
mov ecx, dword [ebp]
add ecx, 4
add esp, 8
mov eax, dword [edx]
mov dword [eax + 0xcc], ecx
mov eax, dword [edi + 0x178]
mov ecx, dword [edi + 0x17c]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
je 0x416d04
push ecx
push eax
push edi
call fcn.00424260
add esp, 0xc
jmp 0x416d04
push 1
push ebp
call fcn.00416f60
add esp, 8
mov eax, dword [ebx + 0xc]
push 0
push 0
mov ecx, dword [eax]
mov edx, dword [ecx + 0x8534]
inc edx
push edx
push edi
call fcn.00425240
mov edi, eax
add esp, 0x10
test edi, edi
mov dword [esp + 0x5c], edi
jne 0x416d35
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x44
ret
mov ecx, dword [ebp]
mov eax, dword [ebx + 0x13c]
push 0
push esi
push 0
push edi
push str._s_c_s_c
add ecx, 2
push eax
push ecx
call fcn.00415400
or ecx, 0xffffffff
xor eax, eax
add esp, 0x1c
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, esi
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x10]
not ecx
mov al, byte [edi + 0x258]
dec ecx
test al, al
lea esi, [edx + ecx + 4]
je 0x416dab
mov eax, dword [edi + 0x178]
mov ecx, dword [edi + 0x17c]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
je 0x416dab
push ecx
push eax
push str._lld
lea eax, [esp + 0x20]
push 0x40
push eax
call fcn.00415400
add esp, 0x14
jmp 0x416db7
mov cx, word [0x431a20]
mov word [esp + 0x14], cx
mov edx, dword [ebp]
push str.tsize
add edx, esi
push edx
push esi
push ebx
call fcn.00416f80
mov ecx, dword [ebp]
add esi, eax
lea eax, [esp + 0x24]
add ecx, esi
push eax
push ecx
push esi
push ebx
call fcn.00416f80
mov edx, dword [ebx + 0x140]
add esi, eax
push edx
push 0x42f7d8
lea eax, [esp + 0x3c]
push 0x40
push eax
call fcn.00415400
mov ecx, dword [ebp]
push str.blksize
add ecx, esi
push ecx
push esi
push ebx
call fcn.00416f80
add esi, eax
mov eax, dword [ebp]
add esp, 0x40
lea edx, [esp + 0x14]
add eax, esi
push edx
push eax
push esi
push ebx
call fcn.00416f80
mov ecx, dword [ebx + 0x18]
lea edx, [esp + 0x24]
push ecx
push 0x42f7d8
push 0x40
push edx
add esi, eax
call fcn.00415400
mov eax, dword [ebp]
push str.interval
add eax, esi
push eax
push esi
push ebx
call fcn.00416f80
mov edx, dword [ebp]
add esi, eax
lea ecx, [esp + 0x44]
add edx, esi
push ecx
push edx
push esi
push ebx
call fcn.00416f80
add esi, eax
mov eax, dword [ebx + 0xc]
add esp, 0x40
mov eax, dword [eax + 0x38]
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x18]
mov eax, dword [ebp]
push ecx
mov ecx, dword [ebx + 0x10]
push edx
push 0
push esi
push eax
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jge 0x416ea4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [ebx + 0xc]
push eax
push edx
call fcn.00426750
push eax
push 0x42fae8
push edi
call fcn.00413050
add esp, 0x14
mov eax, dword [esp + 0x5c]
push eax
call fcn.0040a440
mov eax, dword [esp + 0x5c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
mov al, byte [edi + 0x258]
push 6
test al, al
push ebx
je 0x416ef8
call fcn.00416fe0
add esp, 8
mov dword [esp + 0x58], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
push 4
push ebx
call fcn.00416fe0
add esp, 8
mov dword [esp + 0x58], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
push 3
push ebx
call fcn.00417020
add esp, 8
mov dword [esp + 0x58], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
mov eax, dword [esp + 0x58]
pop edi
pop esi
mov dword [ebx], 3
pop ebp
pop ebx
add esp, 0x44
ret
push str.tftp_send_first:_internal_error
push edi
call fcn.00413050
mov eax, dword [esp + 0x60]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret