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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 0x10]
and dword [ebp - 4], 0
push ebx
push edi
mov edi, dword [eax]
mov eax, dword [ebp + 8]
push 4
pop ebx
sub eax, ebx
je 0x41c63a
dec eax
je 0x41c5f1
dec eax
je 0x41c63a
dec eax
je 0x41c584
push dword [ebp + 8]
push str.tftp_tx:_internal_error__event:__i
push edi
call fcn.0040ec0a
add esp, 0xc
jmp 0x41c7c9
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.0040eb9d
mov eax, dword [esi + 0x18]
add esp, 0x10
cmp eax, dword [esi + 0x20]
jle 0x41c5bd
mov dword [esi + 8], 0xffffff9d
mov dword [esi], 3
jmp 0x41c7c9
push dword [esi + 0x148]
lea eax, [esi + 0xc8]
push eax
mov eax, dword [esi + 0x150]
push 0
add eax, ebx
push eax
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x41c7ba
jmp 0x41c788
push 3
pop ebx
push 5
pop ecx
lea eax, [esi + 0x160]
mov dword [esi], ebx
call fcn.0041bd7d
mov cx, word [esi + 0x40]
lea eax, [esi + 0x160]
call fcn.0041bd8e
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 0x41c7c9
cmp dword [ebp + 8], ebx
jne 0x41c700
lea eax, [esi + 0x15c]
call fcn.0041bdaf
movzx ecx, word [esi + 0x40]
movzx eax, ax
mov edx, ecx
cmp eax, edx
je 0x41c6f0
test cx, cx
jne 0x41c66f
cmp eax, 0xffff
je 0x41c6f0
push edx
push eax
push str.Received_ACK_for_block__d__expecting__d_n
push edi
call fcn.0040eb9d
add esp, 0x10
inc dword [esi + 0x18]
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x20]
jle 0x41c696
movzx eax, word [esi + 0x40]
push eax
push str.tftp_tx:_giving_up_waiting_for_block__d_ack
jmp 0x41c6d8
push dword [esi + 0x148]
lea eax, [esi + 0xc8]
push eax
mov eax, dword [esi + 0x150]
push 0
add eax, ebx
push eax
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x41c6e8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push dword [esi + 0x10]
mov ebx, eax
call fcn.00428f6a
pop ecx
push eax
push 0x4de6ac
push edi
call fcn.0040ec0a
mov dword [ebp - 4], 0x37
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x41c7cb
lea eax, [esi + 0x38]
push eax
call fcn.00493ec8
inc word [esi + 0x40]
pop ecx
jmp 0x41c707
xor eax, eax
inc eax
mov word [esi + 0x40], ax
and dword [esi + 0x18], 0
push 3
pop ebx
lea eax, [esi + 0x160]
mov ecx, ebx
call fcn.0041bd7d
mov cx, word [esi + 0x40]
lea eax, [esi + 0x160]
call fcn.0041bd8e
cmp word [esi + 0x40], 1
jbe 0x41c743
mov eax, dword [esi + 0x150]
cmp eax, dword [esi + 0x154]
jl 0x41c633
push dword [esi + 0x154]
mov edx, dword [esi + 0x10]
lea ecx, [esi + 0x150]
call fcn.00411215
pop ecx
test eax, eax
jne 0x41c7cb
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
jns 0x41c7ad
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push dword [esi + 0x10]
mov ebx, eax
call fcn.00428f6a
pop ecx
push eax
push 0x4de6ac
push edi
call fcn.0040ec0a
add esp, 0xc
push 0x37
pop eax
jmp 0x41c7cb
mov eax, dword [esi + 0x150]
cdq
add dword [edi + 0x78], eax
adc dword [edi + 0x7c], edx
push dword [edi + 0x7c]
mov eax, edi
push dword [edi + 0x78]
call fcn.00416b70
pop ecx
pop ecx
xor eax, eax
pop edi
pop ebx
leave
ret