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

Disassembly:
sub esp, 0x84
push ebx
push ebp
push esi
mov esi, dword [esp + 0x94]
push edi
mov eax, dword [esi + 0x10]
push 4
mov edi, dword [eax]
mov eax, dword [esp + 0xa0]
pop ebp
xor ebx, ebx
sub eax, ebp
je 0x10041f09
dec eax
je 0x10041ead
dec eax
je 0x10041f09
dec eax
je 0x10041e2b
push dword [esp + 0x9c]
push str.tftp_tx:_internal_error__event:__i
push edi
call fcn.100293e3
jmp 0x10042117
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.10029490
mov eax, dword [esi + 0x18]
add esp, 0x10
cmp eax, dword [esi + 0x20]
jle 0x10041e5e
mov dword [esi + 8], 0xffffff9d
jmp 0x10041efe
push dword [esi + 0x148]
lea eax, [esi + 0xc8]
push eax
mov eax, dword [esi + 0x150]
push ebx
add eax, ebp
push eax
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x10042105
push 0x80
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.1004de15
push eax
push 0x100926d0
jmp 0x100420e4
mov dword [esi], 3
mov eax, dword [esi + 0x160]
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 ebp
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [esi], 3
jmp 0x1004211a
xor eax, eax
inc eax
cmp dword [esp + 0x9c], ebp
jne 0x10041fe8
mov ecx, dword [esi + 0x15c]
movzx eax, byte [ecx + 2]
shl ax, 8
movzx edx, ax
movzx eax, byte [ecx + 3]
or edx, eax
movzx eax, word [esi + 0x40]
mov ecx, eax
cmp edx, ecx
je 0x10041fd8
test ax, ax
jne 0x10041f4f
cmp edx, 0xffff
je 0x10041fd8
push ecx
push edx
push str.Received_ACK_for_block__d__expecting__d_n
push edi
call fcn.10029490
add esp, 0x10
inc dword [esi + 0x18]
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x20]
jle 0x10041f7f
movzx eax, word [esi + 0x40]
push eax
push str.tftp_tx:_giving_up_waiting_for_block__d_ack
push edi
call fcn.100293e3
add esp, 0xc
jmp 0x10041fce
push dword [esi + 0x148]
lea eax, [esi + 0xc8]
push eax
mov eax, dword [esi + 0x150]
push ebx
add eax, ebp
push eax
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x10041fd1
push 0x80
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.1004de15
push eax
push 0x10092694
push edi
call fcn.100293e3
add esp, 0x18
push 0x37
pop ebx
mov eax, ebx
jmp 0x1004211c
lea eax, [esi + 0x38]
push eax
call fcn.1005a18a
inc word [esi + 0x40]
pop ecx
jmp 0x10041fec
mov word [esi + 0x40], ax
mov dword [esi + 0x18], ebx
mov eax, dword [esi + 0x160]
mov byte [eax], bl
mov eax, dword [esi + 0x160]
mov byte [eax + 1], 3
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
xor eax, eax
inc eax
cmp word [esi + 0x40], ax
jbe 0x10042037
mov eax, dword [esi + 0x150]
cmp eax, dword [esi + 0x154]
jl 0x10041efe
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x160]
mov dword [esi + 0x150], ebx
mov eax, dword [eax]
add ecx, ebp
mov dword [eax + 0x150], ecx
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 0x154]
sub eax, dword [esi + 0x150]
push eax
push dword [esi + 0x10]
call fcn.10045267
add esp, 0xc
test eax, eax
jne 0x1004211c
mov ecx, dword [esp + 0x10]
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 0x1004209e
cmp dword [esp + 0x10], ebx
jne 0x10042050
push dword [esi + 0x148]
lea eax, [esi + 0xc8]
push eax
mov eax, dword [esi + 0x150]
push ebx
add eax, ebp
push eax
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x100420f2
push 0x80
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.1004de15
push eax
push 0x10092698
push edi
call fcn.100293e3
add esp, 0x18
push 0x37
pop eax
jmp 0x1004211c
mov eax, dword [esi + 0x150]
cdq
add dword [edi + 0xa8], eax
adc dword [edi + 0xac], edx
push dword [edi + 0xac]
push dword [edi + 0xa8]
push edi
call fcn.10046f63
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret