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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 3
je 0x100a21e9
cmp dword [ebp - 0x10], 5
je 0x100a249d
cmp dword [ebp - 0x10], 6
je 0x100a2333
cmp dword [ebp - 0x10], 7
je 0x100a23e9
jmp 0x100a24fd
mov eax, dword [ebp + 8]
add eax, 0x15c
push eax
call fcn.100a2ec7
pop ecx
movzx eax, ax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x40]
inc eax
and eax, 0xffff
cmp eax, dword [ebp - 8]
jne 0x100a2219
mov eax, dword [ebp + 8]
and dword [eax + 0x18], 0
jmp 0x100a2260
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x40]
cmp eax, dword [ebp - 8]
jne 0x100a223a
push dword [ebp - 8]
push str.Received_last_DATA_packet_block__d_again._n
push dword [ebp - 4]
call fcn.100837f8
add esp, 0xc
jmp 0x100a2260
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x40]
inc eax
and eax, 0xffff
push eax
push dword [ebp - 8]
push str.Received_unexpected_DATA_packet_block__d__expecting_block__d_n
push dword [ebp - 4]
call fcn.100837f8
add esp, 0x10
jmp 0x100a2517
mov eax, dword [ebp + 8]
mov cx, word [ebp - 8]
mov word [eax + 0x40], cx
push 4
mov eax, dword [ebp + 8]
add eax, 0x160
push eax
call fcn.100a2f46
pop ecx
pop ecx
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x40]
push eax
mov eax, dword [ebp + 8]
add eax, 0x160
push eax
call fcn.100a2f16
pop ecx
pop ecx
mov eax, dword [ebp + 8]
push dword [eax + 0x148]
mov eax, dword [ebp + 8]
add eax, 0xc8
push eax
push 0
push 4
mov eax, dword [ebp + 8]
push dword [eax + 0x160]
mov eax, dword [ebp + 8]
push dword [eax + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x100a22f6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x10]
call fcn.100b3c46
pop ecx
pop ecx
push eax
push 0x100ed3dc
push dword [ebp - 4]
call fcn.10083b69
add esp, 0xc
push 0x37
pop eax
jmp 0x100a2519
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x154]
add eax, 4
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14c], eax
jge 0x100a2318
mov eax, dword [ebp + 8]
mov dword [eax], 3
jmp 0x100a2321
mov eax, dword [ebp + 8]
mov dword [eax], 1
mov eax, dword [ebp + 8]
add eax, 0x38
push eax
call fcn.100a31a5
pop ecx
jmp 0x100a2517
xor eax, eax
mov ecx, dword [ebp + 8]
mov word [ecx + 0x40], ax
mov eax, dword [ebp + 8]
and dword [eax + 0x18], 0
push 4
mov eax, dword [ebp + 8]
add eax, 0x160
push eax
call fcn.100a2f46
pop ecx
pop ecx
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x40]
push eax
mov eax, dword [ebp + 8]
add eax, 0x160
push eax
call fcn.100a2f16
pop ecx
pop ecx
mov eax, dword [ebp + 8]
push dword [eax + 0x148]
mov eax, dword [ebp + 8]
add eax, 0xc8
push eax
push 0
push 4
mov eax, dword [ebp + 8]
push dword [eax + 0x160]
mov eax, dword [ebp + 8]
push dword [eax + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x100a23ce
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x10]
call fcn.100b3c46
pop ecx
pop ecx
push eax
push 0x100ed3e0
push dword [ebp - 4]
call fcn.10083b69
add esp, 0xc
push 0x37
pop eax
jmp 0x100a2519
mov eax, dword [ebp + 8]
mov dword [eax], 1
mov eax, dword [ebp + 8]
add eax, 0x38
push eax
call fcn.100a31a5
pop ecx
jmp 0x100a2517
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
inc eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp + 8]
push dword [eax + 0x18]
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x40]
inc eax
and eax, 0xffff
push eax
push 0x100ed3e4
push dword [ebp - 4]
call fcn.100837f8
add esp, 0x10
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + 0x18]
cmp eax, dword [ecx + 0x20]
jle 0x100a243d
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0xffffff9d
mov eax, dword [ebp + 8]
mov dword [eax], 3
jmp 0x100a249b
mov eax, dword [ebp + 8]
push dword [eax + 0x148]
mov eax, dword [ebp + 8]
add eax, 0xc8
push eax
push 0
push 4
mov eax, dword [ebp + 8]
push dword [eax + 0x160]
mov eax, dword [ebp + 8]
push dword [eax + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x100a249b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x10]
call fcn.100b3c46
pop ecx
pop ecx
push eax
push 0x100ed418
push dword [ebp - 4]
call fcn.10083b69
add esp, 0xc
push 0x37
pop eax
jmp 0x100a2519
jmp 0x100a2517
push 5
mov eax, dword [ebp + 8]
add eax, 0x160
push eax
call fcn.100a2f46
pop ecx
pop ecx
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x40]
push eax
mov eax, dword [ebp + 8]
add eax, 0x160
push eax
call fcn.100a2f16
pop ecx
pop ecx
mov eax, dword [ebp + 8]
push dword [eax + 0x148]
mov eax, dword [ebp + 8]
add eax, 0xc8
push eax
push 0
push 4
mov eax, dword [ebp + 8]
push dword [eax + 0x160]
mov eax, dword [ebp + 8]
push dword [eax + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
mov eax, dword [ebp + 8]
mov dword [eax], 3
jmp 0x100a2517
push str.tftp_rx:_internal_error
push 0x100ed434
push dword [ebp - 4]
call fcn.10083b69
add esp, 0xc
push 0x47
pop eax
jmp 0x100a2519
xor eax, eax
mov esp, ebp
pop ebp
ret