Function at 0x4314c2
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 0x4315b3
dec eax
je 0x431570
dec eax
je 0x4315b3
dec eax
je 0x431503
push dword [ebp + 8]
push str.tftp_tx:_internal_error__event:__i
push edi
call fcn.00425257
jmp 0x431740
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.004251ed
mov eax, dword [esi + 0x18]
add esp, 0x10
cmp eax, dword [esi + 0x20]
jle 0x43153c
mov dword [esi + 8], 0xffffff9d
mov dword [esi], 3
jmp 0x431743
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
jge 0x431734
jmp 0x431708
push 3
pop ebx
lea edi, [esi + 0x160]
push 5
pop ecx
mov eax, edi
mov dword [esi], ebx
call fcn.00431025
mov cx, word [esi + 0x40]
mov eax, edi
call fcn.00431036
push dword [esi + 0x148]
lea eax, [esi + 0xc8]
push eax
push 0
push 4
push dword [edi]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [esi], ebx
jmp 0x431743
cmp dword [ebp + 8], ebx
jne 0x431681
lea eax, [esi + 0x15c]
call fcn.00431057
movzx ecx, word [esi + 0x40]
movzx eax, ax
movzx edx, cx
cmp eax, edx
je 0x431671
test cx, cx
jne 0x4315e9
cmp eax, 0xffff
je 0x431671
push edx
push eax
push str.Received_ACK_for_block__d__expecting__d_n
push edi
call fcn.004251ed
add esp, 0x10
inc dword [esi + 0x18]
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x20]
jle 0x431619
movzx eax, word [esi + 0x40]
push eax
push str.tftp_tx:_giving_up_waiting_for_block__d_ack
push edi
call fcn.00425257
add esp, 0xc
jmp 0x431662
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
jge 0x431669
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [esi + 0x10]
call fcn.004297f1
push eax
push 0x46e6b8
push edi
call fcn.00425257
add esp, 0x14
mov dword [ebp - 4], 0x37
mov eax, dword [ebp - 4]
jmp 0x431745
lea eax, [esi + 0x38]
push eax
call fcn.0044ab99
inc word [esi + 0x40]
pop ecx
jmp 0x431688
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.00431025
mov cx, word [esi + 0x40]
lea eax, [esi + 0x160]
call fcn.00431036
cmp word [esi + 0x40], 1
jbe 0x4316c4
mov eax, dword [esi + 0x150]
cmp eax, dword [esi + 0x154]
jl 0x4315ac
lea ebx, [esi + 0x150]
push ebx
push dword [esi + 0x154]
push dword [esi + 0x10]
call fcn.0043edba
add esp, 0xc
test eax, eax
jne 0x431745
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 0x43172b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [esi + 0x10]
call fcn.004297f1
push eax
push 0x46e6b8
push edi
call fcn.00425257
add esp, 0x14
push 0x37
pop eax
jmp 0x431745
mov eax, dword [ebx]
cdq
add dword [edi + 0x78], eax
adc dword [edi + 0x7c], edx
push dword [edi + 0x7c]
push dword [edi + 0x78]
push edi
call fcn.0043e52b
add esp, 0xc
xor eax, eax
pop edi
pop ebx
leave
ret