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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0xadb008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
lea eax, [edx - 4]
xor ebx, ebx
push edi
mov edi, dword [esi + 0x10]
cmp eax, 3
ja case.default.0xa5b229
jmp dword [eax*4 + 0xa5b5b8]
cmp edx, 4
jne 0xa5b312
lea ecx, [esi + 0x148]
call fcn.00a5a730
movzx ecx, word [esi + 0x144]
movzx eax, ax
mov edx, ecx
cmp eax, edx
je 0xa5b2fd
test cx, cx
jne 0xa5b268
cmp eax, 0xffff
je 0xa5b2fd
push edx
push eax
push str.Received_ACK_for_block__d__expecting__d
push edi
call fcn.00a39950
inc dword [esi + 0x18]
add esp, 0x10
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x20]
jle 0xa5b2a0
movzx eax, word [esi + 0x144]
push eax
push str.tftp_tx:_giving_up_waiting_for_block__d_ack
push edi
call fcn.00a39890
mov ebx, 0x37
jmp 0xa5b5a0
push dword [esi + 0x130]
lea eax, [esi + 0xb0]
push eax
mov eax, dword [esi + 0x138]
push 0
add eax, 4
push eax
push dword [esi + 0x14c]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0xa5b5a3
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea edx, [ebp - 0x108]
mov ecx, eax
call fcn.00a51590
add esp, 4
push eax
push 0xaacb6c
push edi
call fcn.00a39890
mov ebx, 0x37
jmp 0xa5b5a0
lea eax, [esi + 0x28]
push eax
call fcn.00a7b8e3
add esp, 4
inc word [esi + 0x144]
jmp 0xa5b31e
mov eax, 1
mov word [esi + 0x144], ax
mov edx, 3
mov dword [esi + 0x18], ebx
lea ecx, [esi + 0x14c]
call fcn.00a5a6d0
mov dx, word [esi + 0x144]
lea ecx, [esi + 0x14c]
call fcn.00a5a6f0
cmp word [esi + 0x144], 1
jbe 0xa5b374
mov eax, dword [esi + 0x138]
cmp eax, dword [esi + 0x13c]
jge 0xa5b374
mov dword [esi], 3
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00a733e3
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14c]
add ecx, 4
mov dword [esi + 0x138], ebx
mov dword [eax + 0x120], ecx
lea eax, [ebp - 0x10c]
mov edx, dword [esi + 0x13c]
mov ecx, edi
sub edx, dword [esi + 0x138]
push eax
call fcn.00a40890
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0xa5b5a3
nop dword [eax]
nop word [eax + eax]
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp - 0x10c]
add dword [esi + 0x138], ecx
add dword [eax + 0x120], ecx
mov eax, dword [esi + 0x138]
mov edx, dword [esi + 0x13c]
cmp eax, edx
jge 0xa5b413
test ecx, ecx
je 0xa5b413
lea ecx, [ebp - 0x10c]
sub edx, eax
push ecx
mov ecx, edi
call fcn.00a40890
mov ebx, eax
add esp, 4
test ebx, ebx
je 0xa5b3c0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00a733e3
mov esp, ebp
pop ebp
ret
push dword [esi + 0x130]
lea eax, [esi + 0xb0]
push eax
mov eax, dword [esi + 0x138]
push 0
add eax, 4
push eax
push dword [esi + 0x14c]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
js 0xa5b4f7
mov eax, dword [esi + 0x138]
cdq
add dword [edi + 0x98], eax
adc dword [edi + 0x9c], edx
push dword [edi + 0x9c]
mov ecx, edi
push dword [edi + 0x98]
call fcn.00a451b0
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00a733e3
mov esp, ebp
pop ebp
ret
movzx eax, word [esi + 0x144]
inc dword [esi + 0x18]
inc eax
push dword [esi + 0x18]
movzx eax, ax
push eax
push str.Timeout_waiting_for_block__d_ACK.__Retries___d
push edi
call fcn.00a39950
mov eax, dword [esi + 0x18]
add esp, 0x10
cmp eax, dword [esi + 0x20]
jle 0xa5b4c7
mov dword [esi + 8], 0xffffff9d
mov eax, ebx
mov dword [esi], 3
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00a733e3
mov esp, ebp
pop ebp
ret
push dword [esi + 0x130]
lea eax, [esi + 0xb0]
push eax
mov eax, dword [esi + 0x138]
push 0
add eax, 4
push eax
push dword [esi + 0x14c]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0xa5b456
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea edx, [ebp - 0x108]
mov ecx, eax
call fcn.00a51590
add esp, 4
push eax
push 0xaacb6c
push edi
call fcn.00a39890
add esp, 0xc
mov eax, 0x37
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00a733e3
mov esp, ebp
pop ebp
ret
mov edx, 5
mov dword [esi], 3
lea ecx, [esi + 0x14c]
call fcn.00a5a6d0
mov dx, word [esi + 0x144]
lea ecx, [esi + 0x14c]
call fcn.00a5a6f0
push dword [esi + 0x130]
lea eax, [esi + 0xb0]
push eax
push 0
push 4
push dword [esi + 0x14c]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [esi], 3
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00a733e3
mov esp, ebp
pop ebp
ret
push edx
push str.tftp_tx:_internal_error__event:__i
push edi
call fcn.00a39890
add esp, 0xc
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00a733e3
mov esp, ebp
pop ebp
ret