Function at 0x413962
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push 4
pop ebx
mov byte [ebp - 2], 0
mov byte [ebp - 3], 0
mov byte [ebp - 4], 0
mov byte [ebp - 1], 0
jmp 0x413a84
add eax, 2
cmp word [eax], 0x2d
jne 0x41398e
mov dword [ebp + 8], eax
xor esi, esi
inc esi
push esi
lea eax, [ebp + 8]
push eax
push 0x498920
call fcn.00438eee
add esp, 0xc
test al, al
jne 0x413a91
push 0xf
lea eax, [ebp + 8]
push eax
push str._simpleprogress
call fcn.00438eee
add esp, 0xc
test al, al
je 0x4139cc
mov ebx, 0x100
jmp 0x413a84
push 9
lea eax, [ebp + 8]
push eax
push str._progress
call fcn.00438eee
add esp, 0xc
test al, al
je 0x4139ea
xor ebx, ebx
jmp 0x413a84
push 5
lea eax, [ebp + 8]
push eax
push str._file
call fcn.00438eee
add esp, 0xc
test al, al
je 0x413a07
mov byte [ebp - 2], 1
jmp 0x413a84
push 2
lea eax, [ebp + 8]
push eax
push 0x49a458
call fcn.00438eee
add esp, 0xc
test al, al
je 0x413a24
mov byte [ebp - 3], 1
jmp 0x413a84
push 6
lea eax, [ebp + 8]
push eax
push 0x49a450
call fcn.00438eee
add esp, 0xc
test al, al
je 0x413a40
mov dword [ebp + 0xc], esi
jmp 0x413a84
push 2
lea eax, [ebp + 8]
push eax
push 0x49a44c
call fcn.00438eee
add esp, 0xc
test al, al
je 0x413a5d
mov byte [ebp - 4], 0x10
jmp 0x413a84
push 6
lea eax, [ebp + 8]
push eax
push str._delme
call fcn.00438eee
add esp, 0xc
test al, al
je 0x413a7a
mov byte [ebp - 1], 0x10
jmp 0x413a84
lea eax, [ebp + 8]
push eax
call fcn.00404807
pop ecx
mov eax, dword [ebp + 8]
cmp word [eax], 0x2d
je 0x413982
lea ecx, [ebp + 8]
call fcn.0040c032
cmp byte [ebp - 1], 0
je 0x413ad5
push str.23:INDATA
lea ecx, [ebp - 0x10]
call fcn.004419bc
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.004371ec
push dword [ebp - 0x10]
mov ecx, 0x4aff28
call fcn.004296fc
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.00431c4c
mov eax, esi
jmp 0x413dec
mov eax, dword [ebp + 8]
push edi
xor edi, edi
cmp word [eax], di
jne 0x413aea
mov eax, 0x80070057
jmp 0x413deb
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
inc esi
lea eax, [esi + esi + 4]
push eax
lea ecx, [ebp - 0x14]
call fcn.0043719c
push esi
push dword [ebp + 8]
push dword [ebp - 0x14]
call fcn.004047cb
mov eax, dword [ebp - 0x14]
mov dword [ebp + 8], eax
mov word [eax + esi*2], di
add esp, 0xc
mov dword [ebp - 0x54], edi
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
lea ecx, [ebp + 8]
stosw word es:[edi], ax
call fcn.0040c032
mov esi, dword [ebp + 8]
or bx, 0x610
mov word [ebp - 0x44], bx
xor ebx, ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x50], 3
mov dword [ebp - 8], ebx
mov byte [ebp - 1], bl
mov edi, esi
call fcn.0043717e
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call fcn.0043717e
lea eax, [ebp - 0x28]
push 0xa
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x10], eax
call fcn.004371c5
push 0xa
lea ecx, [ebp - 0x34]
call fcn.004371c5
jmp 0x413c73
cmp byte [ebp - 3], 0
je 0x413be2
cmp ax, 0x3b
jne 0x413be2
mov word [esi], bx
inc esi
inc esi
cmp word [edi], bx
mov dword [ebp - 0xc], esi
je 0x413bc3
cmp byte [ebp - 1], 0
jne 0x413bb5
cmp byte [ebp - 2], 0
je 0x413bb5
mov al, 1
jmp 0x413bb7
xor al, al
push eax
push edi
mov edi, dword [ebp - 0x10]
call fcn.004136d4
pop ecx
pop ecx
lea ecx, [ebp - 0xc]
call fcn.0040c032
cmp byte [ebp - 1], 0
mov esi, dword [ebp - 0xc]
mov edi, esi
je 0x413c71
inc dword [ebp - 8]
jmp 0x413c71
cmp ax, 0x3e
jne 0x413c71
mov ax, word [esi - 2]
cmp ax, 0x3d
jne 0x413bff
mov dword [ebp - 0x50], 2
jmp 0x413c20
cmp ax, 0x2d
jne 0x413c0e
mov dword [ebp - 0x50], 1
jmp 0x413c20
lea eax, [esi + 2]
cmp word [eax], 0x3e
jne 0x413c20
mov esi, eax
mov dword [ebp - 0x50], 4
lea ecx, [esi - 4]
jmp 0x413c36
mov ax, word [ecx]
call fcn.00431c5f
test al, al
je 0x413c3a
mov word [ecx], bx
dec ecx
dec ecx
cmp ecx, edi
jae 0x413c25
mov word [esi - 2], bx
mov word [esi], bx
inc esi
inc esi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], esi
call fcn.0040c032
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x48], esi
cmp word [edi], bx
je 0x413c65
push ebx
push edi
mov edi, dword [ebp - 0x10]
call fcn.004136d4
pop ecx
pop ecx
lea eax, [ebp - 0x34]
mov edi, esi
mov byte [ebp - 1], 1
mov dword [ebp - 0x10], eax
inc esi
inc esi
mov ax, word [esi]
cmp ax, bx
jne 0x413b8c
cmp word [edi], bx
je 0x413c99
push ebx
push edi
mov edi, dword [ebp - 0x10]
call fcn.004136d4
cmp byte [ebp - 1], 0
pop ecx
pop ecx
je 0x413c99
inc dword [ebp - 8]
cmp dword [ebp - 8], ebx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov word [eax + ecx*2], bx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
mov word [ecx + eax*2], bx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x4c], eax
jle 0x413cbe
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x48], eax
mov edi, 0x4b069c
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], ebx
call fcn.00403276
pop ecx
push ebx
mov byte [ebp - 0x18], al
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp + 0xc], ebx
mov eax, dword [ebp - 0x50]
je 0x413cfe
cmp eax, 3
jne 0x413cfe
movsx eax, byte [ebp - 4]
push eax
push dword [ebp - 0x28]
call fcn.00413784
pop ecx
jmp 0x413d3f
cmp byte [ebp - 2], 0
je 0x413d42
cmp eax, 3
jne 0x413d14
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x413d39
cmp eax, 2
jne 0x413d28
push ebx
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x413d39
cmp eax, 1
jne 0x413d42
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push eax
call fcn.0040c0c1
pop ecx
jmp 0x413db9
cmp eax, 4
jne 0x413da5
push dword [ebp - 0x4c]
lea ecx, [ebp - 0xc]
call fcn.004419bc
push dword [ebp - 0xc]
call fcn.004355da
cmp eax, ebx
pop ecx
jne 0x413d64
mov eax, dword [ebp - 0xc]
jmp 0x413d66
inc eax
inc eax
mov word [eax], bx
push dword [ebp - 0x48]
call fcn.004355da
cmp eax, ebx
pop ecx
jne 0x413d7b
mov eax, dword [ebp - 0x48]
jmp 0x413d7d
inc eax
inc eax
push eax
lea ecx, [ebp - 0xc]
call fcn.004371ec
push dword [ebp - 0xc]
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push eax
call fcn.0040c0c1
pop ecx
lea ecx, [ebp - 0xc]
mov esi, eax
call fcn.00431c4c
jmp 0x413dbb
cmp dword [ebp - 8], 2
jl 0x413daf
or byte [ebp - 0x44], 1
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov esi, eax
cmp byte [ebp - 0x18], 0
je 0x413dca
push dword [ebp - 0x1c]
call fcn.00403287
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x34]
call fcn.00431c4c
lea ecx, [ebp - 0x28]
call fcn.00431c4c
lea ecx, [ebp - 0x14]
call fcn.00431c4c
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret