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

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov eax, dword [esi + 0x10]
push 3
mov edi, dword [eax]
mov eax, dword [esp + 0x1c]
pop ebp
sub eax, ebp
je 0x10045884
dec eax
dec eax
je 0x1004582f
dec eax
je 0x100457c5
dec eax
je 0x10045765
push str.tftp_rx:_internal_error
push 0x10092524
push edi
call fcn.10034609
add esp, 0xc
push 0x47
jmp 0x1004593d
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.100346c5
mov eax, dword [esi + 0x18]
add esp, 0x10
cmp eax, dword [esi + 0x20]
jle 0x10045798
mov dword [esi + 8], 0xffffff9d
jmp 0x1004587d
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]
test eax, eax
jns 0x10045976
jmp 0x1004591d
xor eax, eax
mov word [esi + 0x40], ax
xor ebx, ebx
mov dword [esi + 0x18], ebx
mov eax, dword [esi + 0x160]
mov byte [eax], bl
mov eax, dword [esi + 0x160]
mov byte [eax + 1], 4
movzx edx, word [esi + 0x40]
mov eax, dword [esi + 0x160]
mov ecx, edx
shr ecx, 8
mov byte [eax + 2], cl
mov eax, dword [esi + 0x160]
mov byte [eax + 3], dl
push dword [esi + 0x148]
lea eax, [esi + 0xc8]
push eax
push ebx
push 4
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
js 0x1004591d
mov dword [esi], 1
jmp 0x1004595a
mov eax, dword [esi + 0x160]
xor ebx, ebx
mov byte [eax], bl
mov eax, dword [esi + 0x160]
mov byte [eax + 1], 5
movzx edx, word [esi + 0x40]
mov eax, dword [esi + 0x160]
mov ecx, edx
shr ecx, 8
mov byte [eax + 2], cl
mov eax, dword [esi + 0x160]
mov byte [eax + 3], dl
push dword [esi + 0x148]
lea eax, [esi + 0xc8]
push eax
push ebx
push 4
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [esi], ebp
jmp 0x10045976
mov ecx, dword [esi + 0x15c]
xor ebx, ebx
movzx eax, byte [ecx + 2]
shl ax, 8
movzx ebp, ax
movzx eax, byte [ecx + 3]
movzx ecx, word [esi + 0x40]
or ebp, eax
lea eax, [ecx + 1]
and eax, 0xffff
cmp eax, ebp
jne 0x100458b2
mov dword [esi + 0x18], ebx
jmp 0x100458c9
cmp ecx, ebp
jne 0x10045966
push ebp
push str.Received_last_DATA_packet_block__d_again._n
push edi
call fcn.100346c5
add esp, 0xc
mov word [esi + 0x40], bp
mov eax, dword [esi + 0x160]
mov byte [eax], bl
mov eax, dword [esi + 0x160]
mov byte [eax + 1], 4
movzx edx, word [esi + 0x40]
mov eax, dword [esi + 0x160]
mov ecx, edx
shr ecx, 8
mov byte [eax + 2], cl
mov eax, dword [esi + 0x160]
mov byte [eax + 3], dl
push dword [esi + 0x148]
lea eax, [esi + 0xc8]
push eax
push ebx
push 4
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x10045940
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [esi + 0x10]
call fcn.100409d4
push eax
push 0x10092524
push edi
call fcn.10034609
add esp, 0x14
push 0x37
pop eax
jmp 0x10045978
mov eax, dword [esi + 0x154]
xor ecx, ecx
add eax, 4
inc ecx
cmp dword [esi + 0x14c], eax
push 3
pop eax
cmovl ecx, eax
mov dword [esi], ecx
lea eax, [esi + 0x38]
push eax
call fcn.1005be54
pop ecx
jmp 0x10045976
push eax
push ebp
push str.Received_unexpected_DATA_packet_block__d__expecting_block__d_n
push edi
call fcn.100346c5
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret