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

Disassembly:
mov eax, dword [esi + 0x10]
push ebx
push edi
mov edi, dword [eax]
mov eax, dword [esp + 0xc]
xor ebx, ebx
sub eax, 4
je 0x41e3ef
dec eax
je 0x41e39a
dec eax
je 0x41e3ef
dec eax
je 0x41e32c
push dword [esp + 0xc]
push str.tftp_tx:_internal_error__event:__i
push edi
call fcn.004144d7
jmp 0x41e586
movzx eax, word [esi + 0x40]
inc dword [esi + 0x18]
push dword [esi + 0x18]
inc eax
and eax, 0xffff
push eax
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
push edi
call fcn.0041446d
mov eax, dword [esi + 0x18]
add esp, 0x10
cmp eax, dword [esi + 0x20]
jle 0x41e365
mov dword [esi + 8], 0xffffff9d
mov dword [esi], 3
jmp 0x41e589
push dword [esi + 0x148]
lea eax, [esi + 0xc8]
push eax
mov eax, dword [esi + 0x150]
push 0
add eax, 4
push eax
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jge 0x41e57a
jmp 0x41e54e
push 3
pop ebx
mov dword [esi], ebx
mov eax, dword [esi + 0x160]
mov byte [eax], 0
mov eax, dword [esi + 0x160]
mov byte [eax + 1], 5
movzx eax, word [esi + 0x40]
mov ecx, dword [esi + 0x160]
mov byte [ecx + 2], ah
mov ecx, dword [esi + 0x160]
mov byte [ecx + 3], al
push dword [esi + 0x148]
lea eax, [esi + 0xc8]
push eax
push 0
push 4
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [esi], ebx
jmp 0x41e589
cmp dword [esp + 0xc], 4
jne 0x41e4be
mov eax, dword [esi + 0x15c]
xor edx, edx
mov dh, byte [eax + 2]
mov dl, byte [eax + 3]
movzx eax, word [esi + 0x40]
movzx ecx, ax
cmp edx, ecx
je 0x41e4ad
test ax, ax
jne 0x41e428
cmp edx, 0xffff
je 0x41e4ad
push ecx
push edx
push str.Received_ACK_for_block__d__expecting__d_n
push edi
call fcn.0041446d
add esp, 0x10
inc dword [esi + 0x18]
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x20]
jle 0x41e458
movzx eax, word [esi + 0x40]
push eax
push str.tftp_tx:_giving_up_waiting_for_block__d_ack
push edi
call fcn.004144d7
add esp, 0xc
jmp 0x41e4a3
push dword [esi + 0x148]
lea eax, [esi + 0xc8]
push eax
mov eax, dword [esi + 0x150]
push 0
add eax, 4
push eax
lea eax, [esi + 0x160]
push eax
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jge 0x41e4a6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [esi + 0x10]
call fcn.0042754d
push eax
push 0x437440
push edi
call fcn.004144d7
add esp, 0x14
push 0x37
pop ebx
mov eax, ebx
jmp 0x41e58b
lea eax, [esi + 0x38]
push eax
call dword [sym.imp.MSVCR80.dll__time64]
inc word [esi + 0x40]
pop ecx
jmp 0x41e4c4
mov word [esi + 0x40], 1
and dword [esi + 0x18], ebx
mov eax, dword [esi + 0x160]
mov byte [eax], bl
mov eax, dword [esi + 0x160]
push 3
pop ebx
mov byte [eax + 1], bl
movzx eax, word [esi + 0x40]
mov ecx, dword [esi + 0x160]
mov byte [ecx + 2], ah
mov ecx, dword [esi + 0x160]
mov byte [ecx + 3], al
cmp word [esi + 0x40], 1
jbe 0x41e50a
mov eax, dword [esi + 0x150]
cmp eax, dword [esi + 0x154]
jl 0x41e3e8
lea ebx, [esi + 0x150]
push ebx
push dword [esi + 0x154]
push dword [esi + 0x10]
call fcn.0041122f
add esp, 0xc
test eax, eax
jne 0x41e58b
push dword [esi + 0x148]
lea eax, [esi + 0xc8]
push eax
mov eax, dword [ebx]
push 0
add eax, 4
push eax
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jge 0x41e571
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [esi + 0x10]
call fcn.0042754d
push eax
push 0x437440
push edi
call fcn.004144d7
add esp, 0x14
push 0x37
pop eax
jmp 0x41e58b
mov eax, dword [ebx]
cdq
add dword [edi + 0x40], eax
adc dword [edi + 0x44], edx
push dword [edi + 0x44]
push dword [edi + 0x40]
push edi
call fcn.004163da
add esp, 0xc
xor eax, eax
pop edi
pop ebx
ret