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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x10]
add eax, 0x50
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
sub edx, 4
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 3
ja case.default.0x456d7d
mov eax, dword [ebp - 0x18]
jmp dword [eax*4 + 0x457198]
cmp dword [ebp + 0xc], 4
jne 0x456ec7
mov ecx, dword [ebp + 8]
add ecx, 0x15c
push ecx
call fcn.00456d20
add esp, 4
movzx edx, ax
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x40]
cmp dword [ebp - 4], ecx
je 0x456ea4
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x40]
test eax, eax
jne 0x456dce
cmp dword [ebp - 4], 0xffff
je 0x456ea4
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x40]
push edx
mov eax, dword [ebp - 4]
push eax
push str.Received_ACK_for_block__d__expecting__d_n
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00444030
add esp, 0x10
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
add eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x18]
cmp ecx, dword [eax + 0x20]
jle 0x456e2a
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x40]
push eax
push str.tftp_tx:_giving_up_waiting_for_block__d_ack
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004440d0
add esp, 0xc
mov dword [ebp - 0x14], 0x37
jmp 0x456e9c
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x148]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xc8
push ecx
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x150]
add eax, 4
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x160]
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 - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x456e9c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
push eax
call fcn.00435db0
add esp, 8
push eax
push 0x5ca2dc
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004440d0
add esp, 0xc
mov dword [ebp - 0x14], 0x37
mov eax, dword [ebp - 0x14]
jmp 0x457194
mov edx, dword [ebp + 8]
add edx, 0x38
push edx
call fcn.0057b58d
add esp, 4
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x40]
add cx, 1
mov edx, dword [ebp + 8]
mov word [edx + 0x40], cx
jmp 0x456ed3
mov eax, 1
mov ecx, dword [ebp + 8]
mov word [ecx + 0x40], ax
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], 0
push 3
mov eax, dword [ebp + 8]
add eax, 0x160
push eax
call fcn.004567e0
add esp, 8
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x40]
push edx
mov eax, dword [ebp + 8]
add eax, 0x160
push eax
call fcn.00456cf0
add esp, 8
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x40]
cmp edx, 1
jle 0x456f39
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x150]
cmp edx, dword [ecx + 0x154]
jge 0x456f39
mov eax, dword [ebp + 8]
mov dword [eax], 3
xor eax, eax
jmp 0x457194
mov ecx, dword [ebp + 8]
add ecx, 0x150
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x154]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
push edx
call fcn.0046ddc0
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x456f6d
mov eax, dword [ebp - 0x14]
jmp 0x457194
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x148]
push ecx
mov edx, dword [ebp + 8]
add edx, 0xc8
push edx
push 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x150]
add ecx, 4
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x160]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x456fe2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.00435db0
add esp, 8
push eax
push 0x5ca2dc
mov edx, dword [ebp - 0x10]
push edx
call fcn.004440d0
add esp, 0xc
mov eax, 0x37
jmp 0x457194
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x150]
cdq
mov ecx, dword [ebp - 8]
add eax, dword [ecx + 0x28]
mov ecx, dword [ecx + 0x2c]
adc ecx, edx
mov edx, dword [ebp - 8]
mov dword [edx + 0x28], eax
mov dword [edx + 0x2c], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x2c]
push ecx
mov edx, dword [eax + 0x28]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.0046cd00
add esp, 0xc
jmp 0x457191
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 [ecx + 0x18]
push edx
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x40]
add ecx, 1
and ecx, 0xffff
push ecx
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
mov edx, dword [ebp - 0x10]
push edx
call fcn.00444030
add esp, 0x10
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x18]
cmp edx, dword [ecx + 0x20]
jle 0x45707a
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0xffffff9d
mov ecx, dword [ebp + 8]
mov dword [ecx], 3
jmp 0x457106
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x148]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xc8
push ecx
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x150]
add eax, 4
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x160]
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 - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x4570ef
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
push eax
call fcn.00435db0
add esp, 8
push eax
push 0x5ca2dc
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004440d0
add esp, 0xc
mov eax, 0x37
jmp 0x457194
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x2c]
push eax
mov ecx, dword [edx + 0x28]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.0046cd00
add esp, 0xc
jmp 0x457191
mov eax, dword [ebp + 8]
mov dword [eax], 3
push 5
mov ecx, dword [ebp + 8]
add ecx, 0x160
push ecx
call fcn.004567e0
add esp, 8
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x40]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x160
push ecx
call fcn.00456cf0
add esp, 8
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x148]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xc8
push ecx
push 0
push 4
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x160]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.WS2_32.dll_sendto]
mov eax, dword [ebp + 8]
mov dword [eax], 3
jmp 0x457191
mov ecx, dword [ebp + 0xc]
push ecx
push str.tftp_tx:_internal_error__event:__i
mov edx, dword [ebp - 0x10]
push edx
call fcn.004440d0
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret