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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
sub ecx, 3
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 4
ja case.0x10040456.1
mov edx, dword [ebp - 0x10]
jmp dword [edx*4 + 0x100407e5]
mov eax, dword [ebp + 8]
add eax, 0x14c
push eax
call fcn.10040826
add esp, 4
and eax, 0xffff
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
xor edx, edx
mov dx, word [ecx + 0x30]
add edx, 1
and edx, 0xffff
cmp edx, dword [ebp - 0xc]
jne 0x10040499
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0
jmp 0x100404ea
mov ecx, dword [ebp + 8]
xor edx, edx
mov dx, word [ecx + 0x30]
cmp edx, dword [ebp - 0xc]
jne 0x100404be
mov eax, dword [ebp - 0xc]
push eax
push str.Received_last_DATA_packet_block__d_again._n
mov ecx, dword [ebp - 4]
push ecx
call fcn.1003504f
add esp, 0xc
jmp 0x100404ea
mov edx, dword [ebp + 8]
xor eax, eax
mov ax, word [edx + 0x30]
add eax, 1
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0xc]
push ecx
push str.Received_unexpected_DATA_packet_block__d__expecting_block__d_n
mov edx, dword [ebp - 4]
push edx
call fcn.1003504f
add esp, 0x10
jmp 0x100407df
mov eax, dword [ebp + 8]
mov cx, word [ebp - 0xc]
mov word [eax + 0x30], cx
push 4
mov edx, dword [ebp + 8]
add edx, 0x150
push edx
call fcn.100402fb
add esp, 8
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x30]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x150
push edx
call fcn.100407f9
add esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x138]
push ecx
mov edx, dword [ebp + 8]
add edx, 0xb8
push edx
push 0
push 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x150]
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 - 8], eax
cmp dword [ebp - 8], 0
jge 0x1004058d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
push edx
call fcn.1003c041
add esp, 8
push eax
push 0x10066658
mov eax, dword [ebp - 4]
push eax
call fcn.100350d3
add esp, 0xc
mov eax, 0x37
jmp 0x100407e1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x144]
add edx, 4
mov eax, dword [ebp + 8]
cmp dword [eax + 0x13c], edx
jge 0x100405af
mov ecx, dword [ebp + 8]
mov dword [ecx], 3
jmp 0x100405b8
mov edx, dword [ebp + 8]
mov dword [edx], 1
mov eax, dword [ebp + 8]
add eax, 0x2c
push eax
call fcn.1005012c
add esp, 4
jmp 0x100407df
mov ecx, dword [ebp + 8]
mov word [ecx + 0x30], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], 0
push 4
mov eax, dword [ebp + 8]
add eax, 0x150
push eax
call fcn.100402fb
add esp, 8
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 0x30]
push edx
mov eax, dword [ebp + 8]
add eax, 0x150
push eax
call fcn.100407f9
add esp, 8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x138]
push edx
mov eax, dword [ebp + 8]
add eax, 0xb8
push eax
push 0
push 4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x150]
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 - 8], eax
cmp dword [ebp - 8], 0
jge 0x10040674
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
push eax
call fcn.1003c041
add esp, 8
push eax
push 0x1006665c
mov ecx, dword [ebp - 4]
push ecx
call fcn.100350d3
add esp, 0xc
mov eax, 0x37
jmp 0x100407e1
mov edx, dword [ebp + 8]
mov dword [edx], 1
mov eax, dword [ebp + 8]
add eax, 0x2c
push eax
call fcn.1005012c
add esp, 4
jmp 0x100407df
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]
xor ecx, ecx
mov cx, word [eax + 0x30]
add ecx, 1
and ecx, 0xffff
push ecx
push 0x10066660
mov edx, dword [ebp - 4]
push edx
call fcn.1003504f
add esp, 0x10
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x18]
cmp edx, dword [ecx + 0x20]
jle 0x100406ee
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0xffffff9d
mov ecx, dword [ebp + 8]
mov dword [ecx], 3
jmp 0x10040758
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x138]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xb8
push ecx
push 0
push 4
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x150]
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 - 8], eax
cmp dword [ebp - 8], 0
jge 0x10040758
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.1003c041
add esp, 8
push eax
push 0x10066694
mov edx, dword [ebp - 4]
push edx
call fcn.100350d3
add esp, 0xc
mov eax, 0x37
jmp 0x100407e1
jmp 0x100407df
push 5
mov eax, dword [ebp + 8]
add eax, 0x150
push eax
call fcn.100402fb
add esp, 8
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 0x30]
push edx
mov eax, dword [ebp + 8]
add eax, 0x150
push eax
call fcn.100407f9
add esp, 8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x138]
push edx
mov eax, dword [ebp + 8]
add eax, 0xb8
push eax
push 0
push 4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x150]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
mov edx, dword [ebp + 8]
mov dword [edx], 3
jmp 0x100407df
push str.tftp_rx:_internal_error
push 0x100666b0
mov eax, dword [ebp - 4]
push eax
call fcn.100350d3
add esp, 0xc
mov eax, 0x47
jmp 0x100407e1
xor eax, eax
mov esp, ebp
pop ebp
ret