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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x6b8dd8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x10c], 0
mov edx, dword [ebp - 0x108]
add edx, 0x80
mov dword [ebp - 0x118], edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp - 0x114]
sub ecx, 4
mov dword [ebp - 0x114], ecx
cmp dword [ebp - 0x114], 3
ja case.default.0x4b25b6
mov edx, dword [ebp - 0x114]
jmp dword [edx*4 + 0x4b2ae8]
cmp dword [ebp + 0xc], 4
jne 0x4b273c
mov eax, dword [ebp + 8]
add eax, 0x148
push eax
call fcn.004b0d40
add esp, 4
movzx ecx, ax
mov dword [ebp - 0x120], ecx
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x144]
cmp dword [ebp - 0x120], eax
je 0x4b2713
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x144]
test edx, edx
jne 0x4b2615
cmp dword [ebp - 0x120], 0xffff
je 0x4b2713
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x144]
push ecx
mov edx, dword [ebp - 0x120]
push edx
push str.Received_ACK_for_block__d__expecting__d
mov eax, dword [ebp - 0x108]
push eax
call fcn.00487990
add esp, 0x10
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x18]
cmp eax, dword [edx + 0x20]
jle 0x4b2686
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x144]
push edx
push str.tftp_tx:_giving_up_waiting_for_block__d_ack
mov eax, dword [ebp - 0x108]
push eax
call fcn.00487870
add esp, 0xc
mov dword [ebp - 0x10c], 0x37
jmp 0x4b2708
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x130]
push edx
mov eax, dword [ebp + 8]
add eax, 0xb0
push eax
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x138]
add edx, 4
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0
jge 0x4b2708
push 0x100
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004a2180
add esp, 0xc
push eax
push 0x62cd70
mov edx, dword [ebp - 0x108]
push edx
call fcn.00487870
add esp, 0xc
mov dword [ebp - 0x10c], 0x37
mov eax, dword [ebp - 0x10c]
jmp 0x4b2ad8
mov eax, dword [ebp + 8]
add eax, 0x28
push eax
call fcn.00600892
add esp, 4
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 0x144]
add dx, 1
mov eax, dword [ebp + 8]
mov word [eax + 0x144], dx
jmp 0x4b274b
mov ecx, 1
mov edx, dword [ebp + 8]
mov word [edx + 0x144], cx
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0
push 3
mov ecx, dword [ebp + 8]
add ecx, 0x14c
push ecx
call fcn.004b0de0
add esp, 8
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x144]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x14c
push ecx
call fcn.004b0da0
add esp, 8
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x144]
cmp eax, 1
jle 0x4b27b9
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x138]
cmp eax, dword [edx + 0x13c]
jge 0x4b27b9
mov ecx, dword [ebp + 8]
mov dword [ecx], 3
xor eax, eax
jmp 0x4b2ad8
mov edx, dword [ebp + 8]
mov dword [edx + 0x138], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14c]
add ecx, 4
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
mov dword [eax + 0x130], ecx
lea ecx, [ebp - 0x11c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x13c]
sub ecx, dword [eax + 0x138]
push ecx
mov edx, dword [ebp - 0x108]
push edx
call fcn.00490280
add esp, 0xc
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
je 0x4b2821
mov eax, dword [ebp - 0x10c]
jmp 0x4b2ad8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x138]
add ecx, dword [ebp - 0x11c]
mov edx, dword [ebp + 8]
mov dword [edx + 0x138], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0x130]
add edx, dword [ebp - 0x11c]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov dword [ecx + 0x130], edx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x138]
cmp ecx, dword [eax + 0x13c]
jge 0x4b2878
cmp dword [ebp - 0x11c], 0
jne 0x4b27de
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x130]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xb0
push ecx
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x138]
add eax, 4
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14c]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0
jge 0x4b28fb
push 0x100
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004a2180
add esp, 0xc
push eax
push 0x62cd70
mov eax, dword [ebp - 0x108]
push eax
call fcn.00487870
add esp, 0xc
mov eax, 0x37
jmp 0x4b2ad8
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x138]
cdq
mov ecx, dword [ebp - 0x118]
add eax, dword [ecx + 0x18]
adc edx, dword [ecx + 0x1c]
mov ecx, dword [ebp - 0x118]
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], edx
mov edx, dword [ebp - 0x118]
mov eax, dword [edx + 0x1c]
push eax
mov ecx, dword [edx + 0x18]
push ecx
mov edx, dword [ebp - 0x108]
push edx
call fcn.0049e060
add esp, 0xc
jmp 0x4b2ad2
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
add ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
push ecx
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x144]
add eax, 1
and eax, 0xffff
push eax
push str.Timeout_waiting_for_block__d_ACK.__Retries___d
mov ecx, dword [ebp - 0x108]
push ecx
call fcn.00487990
add esp, 0x10
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x18]
cmp ecx, dword [eax + 0x20]
jle 0x4b29a2
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0xffffff9d
mov eax, dword [ebp + 8]
mov dword [eax], 3
jmp 0x4b2a41
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x130]
push edx
mov eax, dword [ebp + 8]
add eax, 0xb0
push eax
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x138]
add edx, 4
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0
jge 0x4b2a24
push 0x100
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004a2180
add esp, 0xc
push eax
push 0x62cd70
mov edx, dword [ebp - 0x108]
push edx
call fcn.00487870
add esp, 0xc
mov eax, 0x37
jmp 0x4b2ad8
mov eax, dword [ebp - 0x118]
mov ecx, dword [eax + 0x1c]
push ecx
mov edx, dword [eax + 0x18]
push edx
mov eax, dword [ebp - 0x108]
push eax
call fcn.0049e060
add esp, 0xc
jmp 0x4b2ad2
mov ecx, dword [ebp + 8]
mov dword [ecx], 3
push 5
mov edx, dword [ebp + 8]
add edx, 0x14c
push edx
call fcn.004b0de0
add esp, 8
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x144]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x14c
push edx
call fcn.004b0da0
add esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x130]
push ecx
mov edx, dword [ebp + 8]
add edx, 0xb0
push edx
push 0
push 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_sendto]
mov ecx, dword [ebp + 8]
mov dword [ecx], 3
jmp 0x4b2ad2
mov edx, dword [ebp + 0xc]
push edx
push str.tftp_tx:_internal_error__event:__i
mov eax, dword [ebp - 0x108]
push eax
call fcn.00487870
add esp, 0xc
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005db6f9
mov esp, ebp
pop ebp
ret