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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push 4
xor esi, esi
mov dword [ebp - 0x1c], ecx
pop ebx
mov byte [ebp - 1], 0
mov byte [ebp - 4], 0
mov byte [ebp - 5], 0
mov byte [ebp - 2], 0
mov byte [ebp - 6], 0
mov byte [ebp - 3], 0
inc esi
jmp 0x415126
add eax, 2
cmp word [eax], 0x2d
jne 0x414fe8
mov dword [ebp + 8], eax
push esi
lea eax, [ebp + 8]
push eax
push 0x4a7c9c
call fcn.0043fbfd
add esp, 0xc
test al, al
jne 0x415133
push 0xf
lea eax, [ebp + 8]
push eax
push str._simpleprogress
call fcn.0043fbfd
add esp, 0xc
test al, al
je 0x415023
mov ebx, 0x100
jmp 0x415126
push 9
lea eax, [ebp + 8]
push eax
push str._progress
call fcn.0043fbfd
add esp, 0xc
test al, al
je 0x415041
xor ebx, ebx
jmp 0x415126
push 5
lea eax, [ebp + 8]
push eax
push 0x4a9bb0
call fcn.0043fbfd
add esp, 0xc
test al, al
je 0x415061
mov byte [ebp - 1], 1
jmp 0x415126
push 2
lea eax, [ebp + 8]
push eax
push 0x4a9bac
call fcn.0043fbfd
add esp, 0xc
test al, al
je 0x415081
mov byte [ebp - 4], 1
jmp 0x415126
push 6
lea eax, [ebp + 8]
push eax
push 0x4a9ba4
call fcn.0043fbfd
add esp, 0xc
test al, al
je 0x4150a0
mov dword [ebp + 0xc], esi
jmp 0x415126
push 3
lea eax, [ebp + 8]
push eax
push 0x4a9ba0
call fcn.0043fbfd
add esp, 0xc
test al, al
je 0x4150c1
or byte [ebp - 1], 0x10
mov byte [ebp - 3], 0x10
jmp 0x415126
push 2
lea eax, [ebp + 8]
push eax
push 0x4a9b9c
call fcn.0043fbfd
add esp, 0xc
test al, al
je 0x4150de
mov byte [ebp - 5], 0x10
jmp 0x415126
push 6
lea eax, [ebp + 8]
push eax
push str._delme
call fcn.0043fbfd
add esp, 0xc
test al, al
je 0x4150fb
mov byte [ebp - 2], 0x10
jmp 0x415126
push 3
lea eax, [ebp + 8]
push eax
push 0x4a9b90
call fcn.0043fbfd
add esp, 0xc
test al, al
je 0x41511c
mov byte [ebp - 1], 2
mov byte [ebp - 6], 2
jmp 0x415126
lea eax, [ebp + 8]
push eax
call fcn.00405196
pop ecx
mov eax, dword [ebp + 8]
cmp word [eax], 0x2d
je 0x414fdc
lea ecx, [ebp + 8]
call fcn.0040e2c3
cmp byte [ebp - 2], 0
je 0x415175
push str.23:INDATA
lea ecx, [ebp + 0xc]
call fcn.00446497
push dword [ebp + 8]
lea ecx, [ebp + 0xc]
call fcn.0043ddea
push dword [ebp + 0xc]
mov ecx, 0x4c0fb8
call fcn.0042f370
lea ecx, [ebp + 0xc]
mov esi, eax
call fcn.00437e1a
jmp 0x4155c4
mov eax, dword [ebp + 8]
cmp word [eax], 0
jne 0x415188
mov eax, 0x80070057
jmp 0x4155c6
push edi
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.0043dd9c
push esi
push dword [ebp + 8]
push dword [ebp - 0x18]
call fcn.0040515a
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.0040e2c3
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.0043dd7e
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
call fcn.0043dd7e
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.0043ddc3
push 0xa
lea ecx, [ebp - 0x3c]
call fcn.0043ddc3
mov ax, word [esi]
cmp ax, di
je 0x41532d
cmp byte [ebp - 4], 0
je 0x41528d
cmp ax, 0x3b
jne 0x41528d
and word [esi], 0
inc esi
inc esi
cmp word [ebx], 0
mov dword [ebp - 0x10], esi
je 0x41526e
cmp byte [ebp - 2], 0
jne 0x415260
cmp byte [ebp - 1], 0
je 0x415260
mov al, 1
jmp 0x415262
xor al, al
mov edi, dword [ebp - 0x14]
push eax
push ebx
call fcn.00414d20
pop ecx
pop ecx
lea ecx, [ebp - 0x10]
call fcn.0040e2c3
cmp byte [ebp - 2], 0
mov esi, dword [ebp - 0x10]
mov ebx, esi
je 0x41531f
inc dword [ebp - 0xc]
jmp 0x41531f
cmp ax, 0x3e
jne 0x41531f
mov ax, word [esi - 2]
cmp ax, 0x3d
jne 0x4152aa
mov dword [ebp - 0x58], 2
jmp 0x4152cb
cmp ax, 0x2d
jne 0x4152b9
mov dword [ebp - 0x58], 1
jmp 0x4152cb
lea eax, [esi + 2]
cmp word [eax], 0x3e
jne 0x4152cb
mov esi, eax
mov dword [ebp - 0x58], 4
lea ecx, [esi - 4]
jmp 0x4152e2
mov ax, word [ecx]
call fcn.00437e2d
test al, al
je 0x4152e6
and word [ecx], 0
dec ecx
dec ecx
cmp ecx, ebx
jae 0x4152d0
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.0040e2c3
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x50], esi
cmp word [ebx], dx
je 0x415313
mov edi, dword [ebp - 0x14]
push edx
push ebx
call fcn.00414d20
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 0x415235
xor esi, esi
cmp word [ebx], si
je 0x415349
mov edi, dword [ebp - 0x14]
push esi
push ebx
call fcn.00414d20
cmp byte [ebp - 2], 0
pop ecx
pop ecx
je 0x415349
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 0x41536e
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x50], eax
push 0x4c1b94
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], esi
call fcn.00403cdd
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 0x4153b0
cmp eax, 3
jne 0x4153b0
movsx eax, byte [ebp - 5]
push eax
push dword [ebp - 0x30]
call fcn.00414dd0
pop ecx
jmp 0x415515
cmp byte [ebp - 1], 0
je 0x415518
cmp byte [ebp - 6], 0
je 0x4153ce
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
jmp 0x41550f
cmp eax, 3
jne 0x415493
cmp byte [ebp - 3], 0
je 0x415488
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.004051d2
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x14], eax
call esi
cmp dword [ebp - 0x14], 0
jne 0x415438
cmp eax, 2
jne 0x415480
lea ecx, [ebp + 0xc]
call fcn.00402b5a
cmp byte [ebp - 0x20], 0
je 0x415430
push dword [ebp - 0x24]
call fcn.00403cee
pop ecx
push 2
pop esi
jmp 0x4155a0
lea ecx, [ebp + 0xc]
call fcn.00402b5a
push 0
push ebx
push 3
push 0
push 7
push edi
push dword [ebp - 0x54]
lea ecx, [ebp + 0xc]
call fcn.004051d2
mov edi, eax
call esi
test edi, edi
jne 0x415480
cmp eax, 2
jne 0x415480
lea ecx, [ebp + 0xc]
call fcn.00402b5a
cmp byte [ebp - 0x20], 0
je 0x415479
push dword [ebp - 0x24]
call fcn.00403cee
pop ecx
xor esi, esi
jmp 0x4155a0
lea ecx, [ebp + 0xc]
call fcn.00402b5a
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
jmp 0x41550f
cmp eax, 2
jne 0x4154fe
cmp byte [ebp - 3], 0
je 0x4154ef
push str.__dd__bs8M__
lea ecx, [ebp + 0xc]
call fcn.00446497
push dword [ebp - 0x50]
lea ecx, [ebp + 0xc]
call fcn.0043ddea
push 0x4a9b50
lea ecx, [ebp + 0xc]
call fcn.0043ddea
push dword [ebp - 0x54]
lea ecx, [ebp + 0xc]
call fcn.0043ddea
push 0x4a6c24
lea ecx, [ebp + 0xc]
call fcn.0043ddea
mov ecx, dword [ebp - 0x1c]
push esi
push dword [ebp + 0xc]
call fcn.00468de9
lea ecx, [ebp + 0xc]
jmp 0x415572
push esi
push dword [ebp - 0x50]
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
jmp 0x41550f
cmp eax, 1
jne 0x415518
push dword [ebp - 0x50]
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
push eax
call fcn.00432f36
pop ecx
jmp 0x41558f
cmp eax, 4
jne 0x41557b
push dword [ebp - 0x54]
lea ecx, [ebp - 0x10]
call fcn.00446497
push dword [ebp - 0x10]
call fcn.0043bdd6
cmp eax, esi
pop ecx
jne 0x41553a
mov eax, dword [ebp - 0x10]
jmp 0x41553c
inc eax
inc eax
mov word [eax], si
push dword [ebp - 0x50]
call fcn.0043bdd6
cmp eax, esi
pop ecx
jne 0x415551
mov eax, dword [ebp - 0x50]
jmp 0x415553
inc eax
inc eax
push eax
lea ecx, [ebp - 0x10]
call fcn.0043ddea
push dword [ebp - 0x10]
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
push eax
call fcn.00432f36
pop ecx
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.00437e1a
jmp 0x415591
cmp dword [ebp - 0xc], 2
jl 0x415585
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 0x4155a0
push dword [ebp - 0x24]
call fcn.00403cee
pop ecx
push 0x4c1b94
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
lea ecx, [ebp - 0x3c]
call fcn.00437e1a
lea ecx, [ebp - 0x30]
call fcn.00437e1a
lea ecx, [ebp - 0x18]
call fcn.00437e1a
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8