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

Disassembly:
sub esp, 0x114
mov eax, dword [0x5c9040]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov eax, edx
push 4
pop ebp
xor ebx, ebx
mov edi, dword [esi + 0x10]
sub eax, ebp
je 0x4a427d
sub eax, 1
je 0x4a421e
sub eax, 1
je 0x4a427d
sub eax, 1
je 0x4a41b5
push edx
push str.tftp_tx:_internal_error__event:__i
push edi
call fcn.0048c1c7
add esp, 0xc
jmp 0x4a447d
mov eax, dword [esi + 0x18]
inc eax
push eax
mov dword [esi + 0x18], eax
movzx eax, word [esi + 0x144]
inc eax
movzx eax, ax
push eax
push str.Timeout_waiting_for_block__d_ACK.__Retries___d
push edi
call fcn.0048c275
mov eax, dword [esi + 0x18]
add esp, 0x10
cmp eax, dword [esi + 0x20]
jle 0x4a41eb
mov dword [esi + 8], 0xffffff9d
jmp 0x4a4272
push dword [esi + 0x130]
lea eax, [esi + 0xb0]
push eax
mov eax, dword [esi + 0x138]
push ebx
add eax, ebp
push eax
push dword [esi + 0x14c]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x4a4465
jmp 0x4a442b
mov dword [esi], 3
mov eax, dword [esi + 0x14c]
mov byte [eax], bl
mov eax, dword [esi + 0x14c]
mov byte [eax + 1], 5
movzx edx, word [esi + 0x144]
mov eax, dword [esi + 0x14c]
mov ecx, edx
shr ecx, 8
mov byte [eax + 2], cl
mov eax, dword [esi + 0x14c]
mov byte [eax + 3], dl
lea eax, [esi + 0xb0]
push dword [esi + 0x130]
push eax
push ebx
push ebp
push dword [esi + 0x14c]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [esi], 3
jmp 0x4a447d
xor eax, eax
inc eax
cmp edx, ebp
jne 0x4a4351
mov eax, dword [esi + 0x148]
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [esi + 0x144]
mov edx, eax
cmp ecx, edx
je 0x4a433e
test ax, ax
jne 0x4a42bd
cmp ecx, 0xffff
je 0x4a433e
push edx
push ecx
push str.Received_ACK_for_block__d__expecting__d
push edi
call fcn.0048c275
mov eax, dword [esi + 0x18]
add esp, 0x10
inc eax
mov dword [esi + 0x18], eax
cmp eax, dword [esi + 0x20]
jle 0x4a42e8
movzx eax, word [esi + 0x144]
push eax
push str.tftp_tx:_giving_up_waiting_for_block__d_ack
jmp 0x4a432b
push dword [esi + 0x130]
lea eax, [esi + 0xb0]
push eax
mov eax, dword [esi + 0x138]
push ebx
add eax, ebp
push eax
push dword [esi + 0x14c]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x4a4337
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea edx, [esp + 0x1c]
mov ecx, eax
call fcn.00477b48
pop ecx
push eax
push 0x585398
push edi
call fcn.0048c1c7
add esp, 0xc
push 0x37
pop ebx
mov eax, ebx
jmp 0x4a447f
lea eax, [esi + 0x28]
push eax
call fcn.00530c3c
inc word [esi + 0x144]
pop ecx
jmp 0x4a4358
mov word [esi + 0x144], ax
mov dword [esi + 0x18], ebx
mov eax, dword [esi + 0x14c]
mov byte [eax], bl
mov eax, dword [esi + 0x14c]
mov byte [eax + 1], 3
movzx edx, word [esi + 0x144]
mov eax, dword [esi + 0x14c]
mov ecx, edx
shr ecx, 8
mov byte [eax + 2], cl
mov eax, dword [esi + 0x14c]
mov byte [eax + 3], dl
xor eax, eax
inc eax
cmp word [esi + 0x144], ax
jbe 0x4a43a9
mov eax, dword [esi + 0x138]
cmp eax, dword [esi + 0x13c]
jl 0x4a4272
mov ecx, dword [esi + 0x14c]
mov eax, dword [esi + 0x10]
add ecx, ebp
mov dword [esi + 0x138], ebx
mov dword [eax + 0x118], ecx
mov edx, dword [esi + 0x13c]
lea eax, [esp + 0x14]
sub edx, dword [esi + 0x138]
mov ecx, edi
push eax
call fcn.00490298
pop ecx
test eax, eax
jne 0x4a447f
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x14]
add dword [esi + 0x138], ecx
add dword [eax + 0x118], ecx
mov edx, dword [esi + 0x138]
cmp edx, dword [esi + 0x13c]
jge 0x4a4406
test ecx, ecx
jne 0x4a43c0
push dword [esi + 0x130]
lea eax, [esi + 0xb0]
push eax
push ebx
lea eax, [edx + 4]
push eax
push dword [esi + 0x14c]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x4a4452
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea edx, [esp + 0x1c]
mov ecx, eax
call fcn.00477b48
pop ecx
push eax
push 0x585398
push edi
call fcn.0048c1c7
add esp, 0xc
push 0x37
pop eax
jmp 0x4a447f
mov eax, dword [esi + 0x138]
cdq
add dword [edi + 0xa0], eax
adc dword [edi + 0xa4], edx
mov eax, dword [edi + 0xa0]
mov ecx, dword [edi + 0xa4]
mov dword [edi + 0x71c], ecx
mov dword [edi + 0x718], eax
xor eax, eax
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051b034
add esp, 0x114
ret