Function at 0x428b89
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 0x428c9d
dec eax
je 0x428c43
dec eax
je 0x428c9d
dec eax
je 0x428bca
push dword [ebp + 8]
push str.tftp_tx:_internal_error__event:__i
push edi
call fcn.0041acea
jmp 0x428e9b
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.0041ac80
mov eax, dword [esi + 0x18]
add esp, 0x10
cmp eax, dword [esi + 0x20]
jle 0x428c03
mov dword [esi + 8], 0xffffff9d
mov dword [esi], 3
jmp 0x428e9e
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
jl 0x428e5b
push dword [edi + 0x9c]
push dword [edi + 0x98]
jmp 0x428e95
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 edx, dword [esi + 0x160]
mov ecx, eax
shr ecx, 8
mov byte [edx + 2], cl
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 0x428e9e
cmp dword [ebp + 8], ebx
jne 0x428d75
mov ecx, dword [esi + 0x15c]
movzx ax, byte [ecx + 2]
movzx ecx, byte [ecx + 3]
shl ax, 8
movzx eax, ax
or eax, ecx
movzx ecx, word [esi + 0x40]
movzx edx, cx
cmp eax, edx
je 0x428d65
test cx, cx
jne 0x428cdd
cmp eax, 0xffff
je 0x428d65
push edx
push eax
push str.Received_ACK_for_block__d__expecting__d_n
push edi
call fcn.0041ac80
add esp, 0x10
inc dword [esi + 0x18]
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x20]
jle 0x428d0d
movzx eax, word [esi + 0x40]
push eax
push str.tftp_tx:_giving_up_waiting_for_block__d_ack
push edi
call fcn.0041acea
add esp, 0xc
jmp 0x428d56
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 0x428d5d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [esi + 0x10]
call fcn.0041fc3e
push eax
push 0x47ae54
push edi
call fcn.0041acea
add esp, 0x14
mov dword [ebp - 4], 0x37
mov eax, dword [ebp - 4]
jmp 0x428ea0
lea eax, [esi + 0x38]
push eax
call fcn.0044f882
inc word [esi + 0x40]
pop ecx
jmp 0x428d7c
xor eax, eax
inc eax
mov word [esi + 0x40], ax
and dword [esi + 0x18], 0
mov eax, dword [esi + 0x160]
mov byte [eax], 0
mov eax, dword [esi + 0x160]
push 3
pop ebx
mov byte [eax + 1], bl
movzx eax, word [esi + 0x40]
mov edx, dword [esi + 0x160]
mov ecx, eax
shr ecx, 8
mov byte [edx + 2], cl
mov ecx, dword [esi + 0x160]
mov byte [ecx + 3], al
cmp word [esi + 0x40], 1
jbe 0x428dc9
mov eax, dword [esi + 0x150]
cmp eax, dword [esi + 0x154]
jl 0x428c96
mov eax, dword [esi + 0x160]
mov ecx, dword [esi + 0x10]
xor ebx, ebx
mov dword [esi + 0x150], ebx
mov ecx, dword [ecx]
add eax, 4
mov dword [ecx + 0x150], eax
lea eax, [ebp + 8]
push eax
mov eax, dword [esi + 0x154]
sub eax, dword [esi + 0x150]
push eax
push dword [esi + 0x10]
call fcn.004368b9
add esp, 0xc
cmp eax, ebx
jne 0x428ea0
mov ecx, dword [ebp + 8]
add dword [esi + 0x150], ecx
mov eax, dword [esi + 0x10]
mov eax, dword [eax]
add dword [eax + 0x150], ecx
mov eax, dword [esi + 0x150]
cmp eax, dword [esi + 0x154]
jge 0x428e30
cmp dword [ebp + 8], ebx
jne 0x428de5
push dword [esi + 0x148]
lea eax, [esi + 0xc8]
push eax
mov eax, dword [esi + 0x150]
push ebx
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 0x428e7e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [esi + 0x10]
call fcn.0041fc3e
push eax
push 0x47ae54
push edi
call fcn.0041acea
add esp, 0x14
push 0x37
pop eax
jmp 0x428ea0
mov eax, dword [esi + 0x150]
lea ecx, [edi + 0x98]
cdq
add dword [ecx], eax
adc dword [ecx + 4], edx
push dword [ecx + 4]
push dword [ecx]
push edi
call fcn.0042233e
add esp, 0xc
xor eax, eax
pop edi
pop ebx
leave
ret