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

Disassembly:
sub esp, 0x88
mov edx, str.octet
push ebx
push ebp
push esi
mov esi, dword [esp + 0x98]
push edi
mov eax, dword [esi + 0x10]
xor ebx, ebx
mov edi, dword [eax]
mov eax, dword [esp + 0xa0]
mov ecx, dword [edi + 0xa8c]
test ecx, 0x800
mov ebp, str.netascii
cmove ebp, edx
push 3
pop edx
sub eax, ebx
je 0x1004189e
sub eax, edx
je 0x10041895
dec eax
je 0x10041890
dec eax
je 0x10041889
dec eax
je 0x10041871
dec eax
je 0x1004189e
push str.tftp_send_first:_internal_error
push edi
call fcn.100293e3
pop ecx
jmp 0x10041b2f
push 6
push esi
test ecx, 0x2000000
je 0x10041897
call fcn.10041108
pop ecx
mov ebx, eax
jmp 0x10041b2f
mov dword [esi], edx
jmp 0x10041b30
push 4
push esi
jmp 0x1004187c
push edx
push esi
call fcn.100410ce
jmp 0x10041881
inc dword [esi + 0x18]
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x20]
jle 0x100418b9
mov dword [esi + 8], 0xffffff9e
mov dword [esi], edx
xor eax, eax
jmp 0x10041b32
mov eax, dword [esi + 0x160]
xor ebx, ebx
test dword [edi + 0xa8c], 0x2000000
mov byte [eax], bl
mov eax, dword [esi + 0x160]
je 0x1004190f
mov byte [eax + 1], 2
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x160]
mov eax, dword [eax]
add ecx, 4
mov dword [eax + 0x150], ecx
mov ecx, dword [edi + 0xf00]
mov edx, dword [edi + 0xf04]
mov eax, ecx
and eax, edx
cmp eax, 0xffffffff
je 0x10041913
push edx
push ecx
push edi
call fcn.10046f7c
add esp, 0xc
jmp 0x10041913
mov byte [eax + 1], 1
push ebx
push ebx
lea eax, [esp + 0x18]
push eax
mov eax, dword [esi + 0x10]
push ebx
mov eax, dword [eax]
mov eax, dword [eax + 0xf38]
inc eax
push eax
push edi
call fcn.10042c8b
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x10041b30
mov ecx, dword [esp + 0x10]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10041942
sub ecx, edx
mov edx, ebp
lea eax, [edx + 1]
mov dword [esp + 0x14], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x10041954
sub edx, dword [esp + 0x14]
mov eax, dword [esi + 0x154]
sub eax, edx
sub eax, 4
cmp ecx, eax
jbe 0x1004198e
push str.TFTP_file_name_too_long_n
push edi
call fcn.100293e3
push dword [esp + 0x18]
call dword [0x1008d09c]
add esp, 0xc
push 0x47
pop eax
jmp 0x10041b32
mov eax, dword [esi + 0x160]
push 0
push ebp
push 0
push dword [esp + 0x1c]
add eax, 2
push str._s_c_s_c
push dword [esi + 0x154]
push eax
call fcn.1002f9d1
mov ecx, dword [esp + 0x2c]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100419bb
sub ecx, edx
lea edx, [ebp + 1]
mov al, byte [ebp]
inc ebp
test al, al
jne 0x100419c7
mov eax, dword [edi + 0xa8c]
sub ebp, edx
add ebp, 4
add ebp, ecx
test al, 8
jne 0x10041ade
test eax, 0x2000000
je 0x10041a18
mov ecx, dword [edi + 0xf00]
mov edx, dword [edi + 0xf04]
mov eax, ecx
and eax, edx
cmp eax, 0xffffffff
je 0x10041a18
push edx
push ecx
push str._I64d
lea eax, [esp + 0x24]
push 0x40
push eax
call fcn.1002f9d1
add esp, 0x14
jmp 0x10041a23
mov ax, word [0x1009252c]
mov word [esp + 0x18], ax
mov eax, dword [esi + 0x160]
push str.tsize
add eax, ebp
push eax
push ebp
push esi
call fcn.10041142
add ebp, eax
lea eax, [esp + 0x28]
push eax
mov eax, dword [esi + 0x160]
add eax, ebp
push eax
push ebp
push esi
call fcn.10041142
push dword [esi + 0x158]
add ebp, eax
push 0x10092538
lea eax, [esp + 0x40]
push 0x40
push eax
call fcn.1002f9d1
mov eax, dword [esi + 0x160]
push str.blksize
add eax, ebp
push eax
push ebp
push esi
call fcn.10041142
add ebp, eax
add esp, 0x40
lea eax, [esp + 0x18]
push eax
mov eax, dword [esi + 0x160]
add eax, ebp
push eax
push ebp
push esi
call fcn.10041142
push dword [esi + 0x1c]
add ebp, eax
push 0x10092544
lea eax, [esp + 0x30]
push 0x40
push eax
call fcn.1002f9d1
mov eax, dword [esi + 0x160]
push str.timeout
add eax, ebp
push eax
push ebp
push esi
call fcn.10041142
add ebp, eax
lea eax, [esp + 0x48]
push eax
mov eax, dword [esi + 0x160]
add eax, ebp
push eax
push ebp
push esi
call fcn.10041142
add esp, 0x40
add ebp, eax
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0x50]
push dword [eax + 0x10]
push dword [eax + 0x18]
push 0
push ebp
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, ebp
je 0x10041b25
push 0x80
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.1004de15
push eax
push 0x10092550
push edi
call fcn.100293e3
add esp, 0x18
push dword [esp + 0x10]
call dword [0x1008d09c]
pop ecx
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret