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

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
xor edi, edi
mov eax, dword [esi + 0x10]
mov ebx, dword [eax]
lea eax, [ecx - 4]
cmp eax, 3
ja case.default.0x10113c9f
jmp dword [eax*4 + 0x1011402c]
cmp ecx, 4
jne 0x10113d97
lea ecx, [esi + 0x14c]
push ecx
call fcn.10113c60
mov dx, word [esi + 0x30]
and eax, 0xffff
mov ecx, edx
add esp, 4
and ecx, 0xffff
cmp eax, ecx
je 0x10113d85
cmp dx, di
jne 0x10113ce7
cmp eax, 0xffff
je 0x10113d85
push ecx
push eax
push str.Received_ACK_for_block__d__expecting__d_n
push ebx
call fcn.10100240
mov edx, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
add esp, 0x10
inc edx
mov eax, edx
mov dword [esi + 0x18], edx
cmp eax, ecx
jle 0x10113d28
xor edx, edx
mov dx, word [esi + 0x30]
push edx
push str.tftp_tx:_giving_up_waiting_for_block__d_ack
push ebx
call fcn.101002b0
add esp, 0xc
mov edi, 0x37
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esi + 0x138]
mov edx, dword [esi + 0x140]
lea ecx, [esi + 0xb8]
push eax
mov eax, dword [esi + 0x150]
push ecx
mov ecx, dword [esi + 0x14]
add edx, 4
push edi
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jge 0x10114025
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esi + 0x10]
push eax
push edx
call fcn.100f25b0
push eax
push 0x102d7a38
push ebx
call fcn.101002b0
add esp, 0x14
mov edi, 0x37
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
lea eax, [esi + 0x2c]
push eax
call fcn.1007bae7
add esp, 4
inc word [esi + 0x30]
jmp 0x10113d9d
mov word [esi + 0x30], 1
lea ebp, [esi + 0x150]
push 3
push ebp
mov dword [esi + 0x18], edi
call fcn.101138b0
mov cx, word [esi + 0x30]
push ecx
push ebp
call fcn.10113c40
add esp, 0x10
cmp word [esi + 0x30], 1
jbe 0x10113de0
mov edx, dword [esi + 0x140]
mov eax, dword [esi + 0x144]
cmp edx, eax
jge 0x10113de0
mov dword [esi], 3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp]
mov dword [esi + 0x140], 0
add eax, 4
mov edx, dword [ecx]
mov dword [edx + 0x12c], eax
mov ecx, dword [esi + 0x144]
mov edx, dword [esi + 0x140]
lea eax, [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 0x10]
push eax
push ecx
push edx
call fcn.101236f0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x10114025
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0x140]
add eax, ecx
mov dword [esi + 0x140], eax
mov eax, dword [esi + 0x10]
mov eax, dword [eax]
mov edx, dword [eax + 0x12c]
add edx, ecx
mov dword [eax + 0x12c], edx
mov ecx, dword [esi + 0x140]
mov eax, dword [esi + 0x144]
cmp ecx, eax
jge 0x10113e81
mov edx, dword [esp + 0x14]
test edx, edx
je 0x10113e81
lea edx, [esp + 0x14]
sub eax, ecx
push edx
push eax
mov eax, dword [esi + 0x10]
push eax
call fcn.101236f0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x10113e25
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esi + 0x138]
mov eax, dword [esi + 0x140]
lea edx, [esi + 0xb8]
push ecx
mov ecx, dword [ebp]
push edx
mov edx, dword [esi + 0x14]
add eax, 4
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jge 0x10113ed6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [esi + 0x10]
push eax
call fcn.100f25b0
push eax
push 0x102d7a38
push ebx
call fcn.101002b0
add esp, 0x14
mov eax, 0x37
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esi + 0x140]
mov ecx, dword [ebx + 0x98]
cdq
add ecx, eax
mov dword [ebx + 0x98], ecx
mov eax, dword [ebx + 0x9c]
adc eax, edx
mov dword [ebx + 0x9c], eax
mov edx, dword [ebx + 0x98]
mov ecx, eax
push ecx
push edx
push ebx
call fcn.1010a860
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov edx, dword [esi + 0x18]
inc edx
mov eax, edx
mov dword [esi + 0x18], edx
push eax
mov ax, word [esi + 0x30]
inc eax
and eax, 0xffff
push eax
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
push ebx
call fcn.10100240
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x20]
add esp, 0x10
cmp ecx, eax
jle 0x10113f54
mov eax, edi
mov dword [esi + 8], 0xffffff9d
mov dword [esi], 3
pop edi
pop esi
pop ebp
pop ebx
ret
mov edx, dword [esi + 0x138]
mov ecx, dword [esi + 0x140]
lea eax, [esi + 0xb8]
push edx
mov edx, dword [esi + 0x150]
push eax
mov eax, dword [esi + 0x14]
add ecx, 4
push edi
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jge 0x10113fab
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esi + 0x10]
push eax
push ecx
call fcn.100f25b0
push eax
push 0x102d7a38
push ebx
call fcn.101002b0
add esp, 0x14
mov eax, 0x37
pop edi
pop esi
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x9c]
mov eax, dword [ebx + 0x98]
push edx
push eax
push ebx
call fcn.1010a860
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
lea ebx, [esi + 0x150]
push 5
push ebx
mov dword [esi], 3
call fcn.101138b0
mov cx, word [esi + 0x30]
push ecx
push ebx
call fcn.10113c40
mov edx, dword [esi + 0x138]
mov ecx, dword [ebx]
add esp, 0x10
lea eax, [esi + 0xb8]
push edx
mov edx, dword [esi + 0x14]
push eax
push edi
push 4
push ecx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
mov eax, edi
mov dword [esi], 3
pop edi
pop esi
pop ebp
pop ebx
ret
push ecx
push str.tftp_tx:_internal_error__event:__i
push ebx
call fcn.101002b0
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret