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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x462370]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x10]
and dword [ebp - 0x88], 0
push ebx
push edi
mov edi, dword [eax]
mov eax, dword [ebp + 8]
push 4
pop ebx
sub eax, ebx
je 0x419060
dec eax
je 0x419017
dec eax
je 0x419060
dec eax
je 0x418f9e
push dword [ebp + 8]
push str.tftp_tx:_internal_error__event:__i
push edi
call fcn.0040ea8b
jmp 0x41926b
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.0040e9e4
mov eax, dword [esi + 0x18]
add esp, 0x10
cmp eax, dword [esi + 0x20]
jle 0x418fd7
mov dword [esi + 8], 0xffffff9d
mov dword [esi], 3
jmp 0x41926e
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
js 0x41921a
push dword [edi + 0xa4]
push dword [edi + 0xa0]
jmp 0x419265
push 3
pop ebx
push 5
pop ecx
lea eax, [esi + 0x160]
mov dword [esi], ebx
call fcn.00418a70
mov cx, word [esi + 0x40]
lea eax, [esi + 0x160]
call fcn.00418a81
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 0x41926e
cmp dword [ebp + 8], ebx
jne 0x41913c
lea eax, [esi + 0x15c]
call fcn.00418aa2
movzx ecx, word [esi + 0x40]
movzx eax, ax
mov edx, ecx
cmp eax, edx
je 0x41912c
test cx, cx
jne 0x419095
cmp eax, 0xffff
je 0x41912c
push edx
push eax
push str.Received_ACK_for_block__d__expecting__d_n
push edi
call fcn.0040e9e4
add esp, 0x10
inc dword [esi + 0x18]
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x20]
jle 0x4190c5
movzx eax, word [esi + 0x40]
push eax
push str.tftp_tx:_giving_up_waiting_for_block__d_ack
push edi
call fcn.0040ea8b
add esp, 0xc
jmp 0x419117
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 0x419121
push 0x80
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00431c8d
push eax
push 0x45333c
push edi
call fcn.0040ea8b
add esp, 0x18
mov dword [ebp - 0x88], 0x37
mov eax, dword [ebp - 0x88]
jmp 0x419270
lea eax, [esi + 0x38]
push eax
call fcn.0043f203
inc word [esi + 0x40]
pop ecx
jmp 0x419143
xor eax, eax
inc eax
mov word [esi + 0x40], ax
and dword [esi + 0x18], 0
push 3
pop ebx
mov ecx, ebx
lea eax, [esi + 0x160]
call fcn.00418a70
mov cx, word [esi + 0x40]
lea eax, [esi + 0x160]
call fcn.00418a81
cmp word [esi + 0x40], 1
jbe 0x41917f
mov eax, dword [esi + 0x150]
cmp eax, dword [esi + 0x154]
jl 0x419059
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 + 0x148], eax
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [esi + 0x154]
sub eax, dword [esi + 0x150]
push eax
push dword [esi + 0x10]
call fcn.0042bc35
add esp, 0xc
cmp eax, ebx
jne 0x419270
mov ecx, dword [ebp - 0x8c]
add dword [esi + 0x150], ecx
mov eax, dword [esi + 0x10]
mov eax, dword [eax]
add dword [eax + 0x148], ecx
mov eax, dword [esi + 0x150]
cmp eax, dword [esi + 0x154]
jge 0x4191ef
cmp dword [ebp - 0x8c], ebx
jne 0x41919b
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
jns 0x419246
push 0x80
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00431c8d
push eax
push 0x45333c
push edi
call fcn.0040ea8b
add esp, 0x18
push 0x37
pop eax
jmp 0x419270
mov eax, dword [esi + 0x150]
cdq
add dword [edi + 0xa0], eax
adc dword [edi + 0xa4], edx
push dword [edi + 0xa4]
push dword [edi + 0xa0]
push edi
call fcn.0042a9dc
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0043c86a
leave
ret