Function at 0x1002a07d
Capabilities:
Copy file
Delete directory
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
push 4
pop ebx
xor edi, edi
push 3
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 1], 0
mov byte [ebp - 4], 0
mov byte [ebp - 5], 0
mov byte [ebp - 2], 0
mov byte [ebp - 7], 0
mov byte [ebp - 3], 0
mov byte [ebp - 6], 0
inc edi
pop esi
jmp 0x1002a23a
add eax, 2
cmp word [eax], 0x2d
jne 0x1002a0bf
mov dword [ebp + 8], eax
push edi
lea eax, [ebp + 8]
push eax
push 0x100c8014
call fcn.10048195
add esp, 0xc
test al, al
jne 0x1002a247
push 0xf
lea eax, [ebp + 8]
push eax
push str._simpleprogress
call fcn.10048195
add esp, 0xc
test al, al
je 0x1002a0fa
mov ebx, 0x100
jmp 0x1002a23a
push 9
lea eax, [ebp + 8]
push eax
push str._progress
call fcn.10048195
add esp, 0xc
test al, al
je 0x1002a118
xor ebx, ebx
jmp 0x1002a23a
push 5
lea eax, [ebp + 8]
push eax
push 0x100cbca8
call fcn.10048195
add esp, 0xc
test al, al
je 0x1002a138
mov byte [ebp - 1], 1
jmp 0x1002a23a
push 2
lea eax, [ebp + 8]
push eax
push 0x100cbca4
call fcn.10048195
add esp, 0xc
test al, al
je 0x1002a158
mov byte [ebp - 4], 1
jmp 0x1002a23a
push 7
lea eax, [ebp + 8]
push eax
push str._forceq
call fcn.10048195
add esp, 0xc
test al, al
je 0x1002a177
mov dword [ebp + 0xc], esi
jmp 0x1002a23a
push 6
lea eax, [ebp + 8]
push eax
push 0x100cbc94
call fcn.10048195
add esp, 0xc
test al, al
je 0x1002a196
mov dword [ebp + 0xc], edi
jmp 0x1002a23a
push esi
lea eax, [ebp + 8]
push eax
push 0x100cbc90
call fcn.10048195
add esp, 0xc
test al, al
je 0x1002a1b9
or byte [ebp - 1], 0x10
mov byte [ebp - 3], 0x10
jmp 0x1002a23a
push 2
lea eax, [ebp + 8]
push eax
push 0x100cbc8c
call fcn.10048195
add esp, 0xc
test al, al
je 0x1002a1d6
mov byte [ebp - 5], 0x10
jmp 0x1002a23a
push 6
lea eax, [ebp + 8]
push eax
push str._delme
call fcn.10048195
add esp, 0xc
test al, al
je 0x1002a1f3
mov byte [ebp - 2], 0x10
jmp 0x1002a23a
push esi
lea eax, [ebp + 8]
push eax
push 0x100cbc80
call fcn.10048195
add esp, 0xc
test al, al
je 0x1002a213
mov byte [ebp - 1], 2
mov byte [ebp - 7], 2
jmp 0x1002a23a
push 6
lea eax, [ebp + 8]
push eax
push 0x100cbc78
call fcn.10048195
add esp, 0xc
test al, al
je 0x1002a230
mov byte [ebp - 6], 1
jmp 0x1002a23a
lea eax, [ebp + 8]
push eax
call fcn.10008e60
pop ecx
mov eax, dword [ebp + 8]
cmp word [eax], 0x2d
je 0x1002a0b3
lea ecx, [ebp + 8]
call fcn.1000f804
cmp byte [ebp - 2], 0
je 0x1002a284
push str.23:INDATA
lea ecx, [ebp + 0xc]
call fcn.100501eb
push dword [ebp + 8]
lea ecx, [ebp + 0xc]
call fcn.1004618f
push dword [ebp + 0xc]
mov ecx, 0x100e3108
call fcn.1002335d
mov esi, eax
lea ecx, [ebp + 0xc]
jmp 0x1002a709
mov eax, dword [ebp + 8]
cmp word [eax], 0
jne 0x1002a297
mov eax, 0x80070057
jmp 0x1002a710
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
inc esi
lea eax, [esi + esi + 4]
push eax
lea ecx, [ebp - 0x18]
call fcn.10046141
push esi
push dword [ebp + 8]
push dword [ebp - 0x18]
call fcn.10005b3b
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov dword [ebp + 8], eax
and word [eax + esi*2], 0
and dword [ebp - 0x5c], 0
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
lea ecx, [ebp + 8]
stosw word es:[edi], ax
call fcn.1000f804
mov esi, dword [ebp + 8]
or bx, 0x610
mov word [ebp - 0x4c], bx
xor edi, edi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x58], 3
mov dword [ebp - 0xc], edi
mov byte [ebp - 2], 0
mov ebx, esi
call fcn.10046123
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
call fcn.10046123
lea eax, [ebp - 0x30]
push 0xa
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x14], eax
call fcn.10046168
push 0xa
lea ecx, [ebp - 0x3c]
call fcn.10046168
mov ax, word [esi]
cmp ax, di
je 0x1002a43b
cmp byte [ebp - 4], 0
je 0x1002a39b
cmp ax, 0x3b
jne 0x1002a39b
and word [esi], 0
inc esi
inc esi
cmp word [ebx], 0
mov dword [ebp - 0x10], esi
je 0x1002a37c
cmp byte [ebp - 2], 0
jne 0x1002a36e
cmp byte [ebp - 1], 0
je 0x1002a36e
mov al, 1
jmp 0x1002a370
xor al, al
mov edi, dword [ebp - 0x14]
push eax
push ebx
call fcn.10017990
pop ecx
pop ecx
lea ecx, [ebp - 0x10]
call fcn.1000f804
cmp byte [ebp - 2], 0
mov esi, dword [ebp - 0x10]
mov ebx, esi
je 0x1002a42d
inc dword [ebp - 0xc]
jmp 0x1002a42d
cmp ax, 0x3e
jne 0x1002a42d
mov ax, word [esi - 2]
cmp ax, 0x3d
jne 0x1002a3b8
mov dword [ebp - 0x58], 2
jmp 0x1002a3d9
cmp ax, 0x2d
jne 0x1002a3c7
mov dword [ebp - 0x58], 1
jmp 0x1002a3d9
lea eax, [esi + 2]
cmp word [eax], 0x3e
jne 0x1002a3d9
mov esi, eax
mov dword [ebp - 0x58], 4
lea ecx, [esi - 4]
jmp 0x1002a3f0
mov ax, word [ecx]
call fcn.10002df6
test al, al
je 0x1002a3f4
and word [ecx], 0
dec ecx
dec ecx
cmp ecx, ebx
jae 0x1002a3de
xor edx, edx
mov word [esi - 2], dx
mov word [esi], dx
inc esi
inc esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], esi
call fcn.1000f804
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x50], esi
cmp word [ebx], dx
je 0x1002a421
mov edi, dword [ebp - 0x14]
push edx
push ebx
call fcn.10017990
pop ecx
pop ecx
lea eax, [ebp - 0x3c]
mov ebx, esi
mov byte [ebp - 2], 1
mov dword [ebp - 0x14], eax
inc esi
inc esi
mov ax, word [esi]
test ax, ax
jne 0x1002a343
xor esi, esi
cmp word [ebx], si
je 0x1002a457
mov edi, dword [ebp - 0x14]
push esi
push ebx
call fcn.10017990
cmp byte [ebp - 2], 0
pop ecx
pop ecx
je 0x1002a457
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], esi
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov word [eax + ecx*2], si
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
mov word [ecx + eax*2], si
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x54], eax
jle 0x1002a47c
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x50], eax
push 0x100e3d7c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], esi
call fcn.10003ea0
pop ecx
push esi
mov byte [ebp - 0x20], al
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp + 0xc], esi
mov eax, dword [ebp - 0x58]
je 0x1002a4d6
cmp eax, 3
jne 0x1002a4d6
test byte [ebp + 0xc], 2
je 0x1002a4c3
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je 0x1002a6dc
movsx eax, byte [ebp - 5]
push eax
push dword [ebp - 0x30]
call fcn.10017a40
pop ecx
jmp 0x1002a660
cmp byte [ebp - 6], 0
je 0x1002a4fb
mov eax, dword [ebp - 0x50]
cmp eax, esi
je 0x1002a4e8
cmp word [eax], si
jne 0x1002a4ea
xor eax, eax
push 6
push eax
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x1002a65a
cmp byte [ebp - 1], 0
je 0x1002a663
cmp byte [ebp - 7], 0
je 0x1002a519
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1002a65a
cmp eax, 3
jne 0x1002a5de
cmp byte [ebp - 3], 0
je 0x1002a5d3
xor eax, eax
push eax
mov ebx, 0x6000080
push ebx
push 3
push eax
push 7
mov edi, 0x80000000
push edi
push dword [ebp - 0x54]
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], eax
call fcn.10005b9d
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
call esi
cmp dword [ebp - 0x14], 0
jne 0x1002a583
cmp eax, 2
jne 0x1002a5cb
lea ecx, [ebp + 0xc]
call fcn.10002d56
cmp byte [ebp - 0x20], 0
je 0x1002a57b
push dword [ebp - 0x24]
call fcn.10003eb1
pop ecx
push 2
pop esi
jmp 0x1002a6eb
lea ecx, [ebp + 0xc]
call fcn.10002d56
push 0
push ebx
push 3
push 0
push 7
push edi
push dword [ebp - 0x54]
lea ecx, [ebp + 0xc]
call fcn.10005b9d
mov edi, eax
call esi
test edi, edi
jne 0x1002a5cb
cmp eax, 2
jne 0x1002a5cb
lea ecx, [ebp + 0xc]
call fcn.10002d56
cmp byte [ebp - 0x20], 0
je 0x1002a5c4
push dword [ebp - 0x24]
call fcn.10003eb1
pop ecx
xor esi, esi
jmp 0x1002a6eb
lea ecx, [ebp + 0xc]
call fcn.10002d56
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1002a65a
cmp eax, 2
jne 0x1002a649
cmp byte [ebp - 3], 0
je 0x1002a63a
push str.__dd__bs8M__
lea ecx, [ebp + 0xc]
call fcn.100501eb
push dword [ebp - 0x50]
lea ecx, [ebp + 0xc]
call fcn.1004618f
push str.__0__
lea ecx, [ebp + 0xc]
call fcn.1004618f
push dword [ebp - 0x54]
lea ecx, [ebp + 0xc]
call fcn.1004618f
push 0x100c6cf8
lea ecx, [ebp + 0xc]
call fcn.1004618f
mov ecx, dword [ebp - 0x1c]
push esi
push dword [ebp + 0xc]
call fcn.10077b51
lea ecx, [ebp + 0xc]
jmp 0x1002a6bd
push esi
push dword [ebp - 0x50]
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x1002a65a
cmp eax, 1
jne 0x1002a663
push dword [ebp - 0x50]
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push eax
call fcn.1003a28f
pop ecx
jmp 0x1002a6da
cmp eax, 4
jne 0x1002a6c6
push dword [ebp - 0x54]
lea ecx, [ebp - 0x10]
call fcn.100501eb
push dword [ebp - 0x10]
call fcn.10043cd7
cmp eax, esi
pop ecx
jne 0x1002a685
mov eax, dword [ebp - 0x10]
jmp 0x1002a687
inc eax
inc eax
mov word [eax], si
push dword [ebp - 0x50]
call fcn.10043cd7
cmp eax, esi
pop ecx
jne 0x1002a69c
mov eax, dword [ebp - 0x50]
jmp 0x1002a69e
inc eax
inc eax
push eax
lea ecx, [ebp - 0x10]
call fcn.1004618f
push dword [ebp - 0x10]
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push eax
call fcn.1003a28f
pop ecx
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.1003f96c
jmp 0x1002a6dc
cmp dword [ebp - 0xc], 2
jl 0x1002a6d0
or byte [ebp - 0x4c], 1
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov esi, eax
cmp byte [ebp - 0x20], 0
je 0x1002a6eb
push dword [ebp - 0x24]
call fcn.10003eb1
pop ecx
push 0x100e3d7c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x3c]
call fcn.1003f96c
lea ecx, [ebp - 0x30]
call fcn.1003f96c
lea ecx, [ebp - 0x18]
call fcn.1003f96c
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8