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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x100e7260]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x6c], str.octet
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x4c], eax
and dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x4c]
movzx eax, byte [eax + 0x37b]
test eax, eax
je 0x100a255b
mov dword [ebp - 0x6c], str.netascii
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x100a259a
cmp dword [ebp - 0x58], 3
je 0x100a29ed
cmp dword [ebp - 0x58], 4
je 0x100a29db
cmp dword [ebp - 0x58], 5
je 0x100a29ff
cmp dword [ebp - 0x58], 6
je 0x100a29a9
cmp dword [ebp - 0x58], 7
je 0x100a259a
jmp 0x100a2a0a
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]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + 0x18]
cmp eax, dword [ecx + 0x20]
jle 0x100a25d0
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0xffffff9e
mov eax, dword [ebp + 8]
mov dword [eax], 3
mov eax, dword [ebp - 0x50]
jmp 0x100a2a21
mov eax, dword [ebp - 0x4c]
movzx eax, byte [eax + 0x389]
test eax, eax
je 0x100a2643
push 2
mov eax, dword [ebp + 8]
add eax, 0x160
push eax
call fcn.100a2f46
pop ecx
pop ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x160]
add eax, 4
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x10]
mov ecx, dword [ecx]
mov dword [ecx + 0x148], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x78]
mov eax, dword [eax + 0x4a30]
and eax, dword [ecx + 0x4a34]
cmp eax, 0xffffffff
je 0x100a2641
mov eax, dword [ebp - 0x4c]
push dword [eax + 0x4a34]
push dword [eax + 0x4a30]
push dword [ebp - 0x4c]
call fcn.1008e68a
add esp, 0xc
jmp 0x100a2655
push 1
mov eax, dword [ebp + 8]
add eax, 0x160
push eax
call fcn.100a2f46
pop ecx
pop ecx
push 0
push 0
lea eax, [ebp - 0x70]
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax]
xor ecx, ecx
inc ecx
shl ecx, 0
add ecx, dword [eax + 0x4a0c]
push ecx
push dword [ebp - 0x4c]
call fcn.100a66c1
add esp, 0x18
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x100a2690
mov eax, dword [ebp - 0x50]
jmp 0x100a2a21
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
inc eax
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x5c]
mov al, byte [eax]
mov byte [ebp - 0x52], al
inc dword [ebp - 0x5c]
cmp byte [ebp - 0x52], 0
jne 0x100a26a0
mov eax, dword [ebp - 0x5c]
sub eax, dword [ebp - 0x88]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
inc eax
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x68]
mov al, byte [eax]
mov byte [ebp - 0x53], al
inc dword [ebp - 0x68]
cmp byte [ebp - 0x53], 0
jne 0x100a26cd
mov eax, dword [ebp - 0x68]
sub eax, dword [ebp - 0x9c]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x154]
sub eax, dword [ebp - 0x90]
sub eax, 4
cmp dword [ebp - 0x7c], eax
jbe 0x100a271b
push str.TFTP_file_name_too_long_n
push dword [ebp - 0x4c]
call fcn.10083b69
pop ecx
pop ecx
push 0x47
pop eax
jmp 0x100a2a21
push 0
push dword [ebp - 0x6c]
push 0
push dword [ebp - 0x70]
push str._s_c_s_c
mov eax, dword [ebp + 8]
push dword [eax + 0x154]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x160]
inc eax
inc eax
push eax
call fcn.100990ee
add esp, 0x1c
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
inc eax
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x64]
mov al, byte [eax]
mov byte [ebp - 0x54], al
inc dword [ebp - 0x64]
cmp byte [ebp - 0x54], 0
jne 0x100a2757
mov eax, dword [ebp - 0x64]
sub eax, dword [ebp - 0x98]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
inc eax
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x60]
mov al, byte [eax]
mov byte [ebp - 0x51], al
inc dword [ebp - 0x60]
cmp byte [ebp - 0x51], 0
jne 0x100a2784
mov eax, dword [ebp - 0x60]
sub eax, dword [ebp - 0x80]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x8c]
lea eax, [ecx + eax + 4]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x4c]
movzx eax, byte [eax + 0x21c]
test eax, eax
jne 0x100a2935
mov eax, dword [ebp - 0x4c]
movzx eax, byte [eax + 0x389]
test eax, eax
je 0x100a2815
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x74]
mov eax, dword [eax + 0x4a30]
and eax, dword [ecx + 0x4a34]
cmp eax, 0xffffffff
je 0x100a2815
mov eax, dword [ebp - 0x4c]
push dword [eax + 0x4a34]
push dword [eax + 0x4a30]
push str._I64d
push 0x40
lea eax, [ebp - 0x44]
push eax
call fcn.100990ee
add esp, 0x14
jmp 0x100a281f
mov ax, word [0x100ed328]
mov word [ebp - 0x44], ax
push str.tsize
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x160]
add eax, dword [ebp - 0x48]
push eax
push dword [ebp - 0x48]
push dword [ebp + 8]
call fcn.100a2adb
add esp, 0x10
add eax, dword [ebp - 0x48]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x160]
add eax, dword [ebp - 0x48]
push eax
push dword [ebp - 0x48]
push dword [ebp + 8]
call fcn.100a2adb
add esp, 0x10
add eax, dword [ebp - 0x48]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 8]
push dword [eax + 0x158]
push 0x100ed334
push 0x40
lea eax, [ebp - 0x44]
push eax
call fcn.100990ee
add esp, 0x10
push str.blksize
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x160]
add eax, dword [ebp - 0x48]
push eax
push dword [ebp - 0x48]
push dword [ebp + 8]
call fcn.100a2adb
add esp, 0x10
add eax, dword [ebp - 0x48]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x160]
add eax, dword [ebp - 0x48]
push eax
push dword [ebp - 0x48]
push dword [ebp + 8]
call fcn.100a2adb
add esp, 0x10
add eax, dword [ebp - 0x48]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 8]
push dword [eax + 0x1c]
push 0x100ed340
push 0x40
lea eax, [ebp - 0x44]
push eax
call fcn.100990ee
add esp, 0x10
push str.timeout
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x160]
add eax, dword [ebp - 0x48]
push eax
push dword [ebp - 0x48]
push dword [ebp + 8]
call fcn.100a2adb
add esp, 0x10
add eax, dword [ebp - 0x48]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x160]
add eax, dword [ebp - 0x48]
push eax
push dword [ebp - 0x48]
push dword [ebp + 8]
call fcn.100a2adb
add esp, 0x10
add eax, dword [ebp - 0x48]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x54]
push dword [eax + 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x54]
push dword [eax + 0x18]
push 0
push dword [ebp - 0x48]
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 - 0x94], eax
mov eax, dword [ebp - 0x94]
cmp eax, dword [ebp - 0x48]
je 0x100a299d
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 0x100ed34c
push dword [ebp - 0x4c]
call fcn.10083b69
add esp, 0xc
push dword [ebp - 0x70]
call dword [0x100e8674]
pop ecx
jmp 0x100a2a1e
mov eax, dword [ebp - 0x4c]
movzx eax, byte [eax + 0x389]
test eax, eax
je 0x100a29c9
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100a2a85
pop ecx
pop ecx
mov dword [ebp - 0x50], eax
jmp 0x100a29d9
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100a2a2f
pop ecx
pop ecx
mov dword [ebp - 0x50], eax
jmp 0x100a2a1e
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100a2a85
pop ecx
pop ecx
mov dword [ebp - 0x50], eax
jmp 0x100a2a1e
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100a2a2f
pop ecx
pop ecx
mov dword [ebp - 0x50], eax
jmp 0x100a2a1e
mov eax, dword [ebp + 8]
mov dword [eax], 3
jmp 0x100a2a1e
push str.tftp_send_first:_internal_error
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
push dword [eax]
call fcn.10083b69
pop ecx
pop ecx
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003d588
mov esp, ebp
pop ebp
ret