Function at 0x4075e0
Capabilities:
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x448d5c
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x4563d0]
xor eax, esp
mov dword [esp + 0xe8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4563d0]
xor eax, esp
push eax
lea eax, [esp + 0x104]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x114]
push str.operation
lea eax, [esp + 0xac]
push eax
mov esi, ecx
push ebp
mov dword [esp + 0x28], esi
call fcn.00405890
xor ebx, ebx
lea eax, [esp + 0xa8]
mov dword [esp + 0x10c], ebx
call fcn.004212f0
push str.source
lea ecx, [esp + 0xe4]
push ecx
push ebp
call fcn.00405890
push str.destination
lea edx, [esp + 0x90]
push edx
push ebp
mov byte [esp + 0x118], 1
call fcn.00405890
push str.mode
lea eax, [esp + 0xc8]
push eax
push ebp
mov byte [esp + 0x118], 2
call fcn.00405890
lea eax, [esp + 0xc4]
mov byte [esp + 0x10c], 3
call fcn.004212f0
mov eax, dword [esp + 0xbc]
push str.copy
mov edi, 4
lea ecx, [esp + 0xac]
call fcn.00403d20
test eax, eax
je 0x4076f3
mov eax, dword [esp + 0xbc]
push str.copyonly
mov edi, 8
lea ecx, [esp + 0xac]
call fcn.00403d20
test eax, eax
mov byte [esp + 0x1a], bl
jne 0x4076f8
mov byte [esp + 0x1a], 1
mov eax, dword [esp + 0xbc]
push str.deleteoninstall
mov edi, 0xf
lea ecx, [esp + 0xac]
call fcn.00403d20
test eax, eax
push str.File
sete byte [esp + 0x1f]
push str.__s_
push 0x4575d0
xor eax, eax
call fcn.00419220
add dword [0x4575f0], 1
add esp, 0xc
cmp byte [esp + 0x1a], bl
je 0x407920
mov eax, dword [esp + 0xd8]
push str.ifnewer
mov edi, 7
lea ecx, [esp + 0xc8]
call fcn.00403d20
test eax, eax
jne 0x40776e
mov esi, 1
jmp 0x407797
mov eax, dword [esp + 0xd8]
push str.ifnotexists
mov edi, 0xb
lea ecx, [esp + 0xc8]
call fcn.00403d20
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffffffe
add esi, 2
mov eax, dword [esp + 0xac]
mov edi, 8
cmp dword [esp + 0xc0], edi
jae 0x4077b3
lea eax, [esp + 0xac]
push eax
push str.Operation___s
push 0x4575d0
xor eax, eax
call fcn.00419220
mov eax, dword [esp + 0x9c]
add esp, 0xc
cmp dword [esp + 0xa4], edi
jae 0x4077df
lea eax, [esp + 0x90]
push eax
push str.Destination___s
push 0x4575d0
xor eax, eax
call fcn.00419220
add esp, 0xc
push 0x44d5c4
lea ecx, [esp + 0x48]
push ecx
push ebp
call fcn.00405890
mov edi, eax
push 0x44d4bc
lea edx, [esp + 0x24]
push edx
push ebp
mov byte [esp + 0x118], 4
call fcn.00405890
mov ecx, 8
mov byte [esp + 0x10c], 5
cmp dword [edi + 0x18], ecx
jb 0x407839
mov edx, dword [edi + 4]
mov dword [esp + 0x40], edx
jmp 0x407840
add edi, 4
mov dword [esp + 0x40], edi
cmp dword [eax + 0x18], ecx
jb 0x40784a
mov eax, dword [eax + 4]
jmp 0x40784d
add eax, 4
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xbc]
push str.copy
mov edi, 4
lea ecx, [esp + 0xac]
call fcn.00403d20
mov edx, dword [esp + 0x90]
test eax, eax
mov eax, 8
sete cl
cmp dword [esp + 0xa4], eax
jae 0x40788f
lea edx, [esp + 0x90]
cmp dword [esp + 0xf8], eax
mov eax, dword [esp + 0xe4]
jae 0x4078a6
lea eax, [esp + 0xe4]
movzx ecx, cl
push ecx
mov ecx, dword [esp + 0x40]
push esi
mov esi, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x4c]
push eax
push esi
call fcn.0040d630
cmp dword [esp + 0x38], 8
mov edi, eax
jb 0x4078d5
mov edx, dword [esp + 0x24]
push edx
call fcn.00422ece
add esp, 4
mov byte [esp + 0x10c], 3
cmp dword [esp + 0x5c], 8
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
jb 0x407902
mov eax, dword [esp + 0x48]
push eax
call fcn.00422ece
add esp, 4
cmp edi, ebx
je 0x407a53
mov cl, byte [esi + 0x245]
neg cl
sbb ecx, ecx
not ecx
and ecx, edi
mov dword [esi + 0x38], ecx
jmp 0x407a53
cmp byte [esp + 0x1b], bl
je 0x407a05
mov eax, dword [esp + 0x90]
mov edi, 8
cmp dword [esp + 0xa4], edi
jae 0x407946
lea eax, [esp + 0x90]
push eax
push str.Deleting_file:__s
push 0x4575d0
xor eax, eax
call fcn.00419220
add esp, 0xc
cmp byte [esi + 0x244], bl
jne 0x407a53
cmp dword [esp + 0xa4], edi
mov eax, dword [esp + 0x90]
jae 0x40797e
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x407a53
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 5
jne 0x4079da
push eax
push str.__File_locked__marked_for_delete_on_next_reboot__Error__0x_X_
push 0x4575d0
xor eax, eax
call fcn.00419220
mov eax, dword [esp + 0x9c]
add esp, 0xc
cmp dword [esp + 0xa4], 8
jae 0x4079c7
lea eax, [esp + 0x90]
push 4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [esi + 0x34], 1
jmp 0x407a53
push edi
push str.__Delete_error_0x_X
push 0x4575d0
mov eax, 2
call fcn.00419220
mov dl, byte [esi + 0x245]
add esp, 0xc
neg dl
sbb edx, edx
not edx
and edx, edi
mov dword [esi + 0x38], edx
jmp 0x407a53
mov eax, dword [esp + 0xbc]
push str.deleteonuninstall
mov edi, 0x11
lea ecx, [esp + 0xac]
call fcn.00403d20
test eax, eax
jne 0x407a53
cmp dword [esp + 0xa4], 8
mov eax, dword [esp + 0x90]
jae 0x407a3e
lea eax, [esp + 0x90]
push eax
push str.Marking__s_for_delete_during_uninstallation
push 0x4575d0
xor eax, eax
call fcn.00419220
add esp, 0xc
mov eax, dword [esp + 0xbc]
push str.deleteonuninstall
mov edi, 0x11
lea ecx, [esp + 0xac]
call fcn.00403d20
test eax, eax
jne 0x407cfe
cmp byte [esi + 0x244], bl
jne 0x407cfe
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x10c], 6
push 5
push 0x44d720
lea esi, [esp + 0x28]
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], bx
call fcn.004031d0
lea eax, [esp + 0x8c]
push eax
mov ecx, esi
push ecx
lea edi, [esp + 0x4c]
mov byte [esp + 0x114], 7
call fcn.00416160
add esp, 8
push eax
lea esi, [esp + 0x64]
mov byte [esp + 0x110], 8
call fcn.00410de0
mov edi, 8
cmp dword [esp + 0x5c], edi
jb 0x407b02
mov edx, dword [esp + 0x48]
push edx
call fcn.00422ece
add esp, 4
mov esi, 7
mov byte [esp + 0x10c], 6
cmp dword [esp + 0x38], edi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], bx
jb 0x407b2f
mov eax, dword [esp + 0x24]
push eax
call fcn.00422ece
add esp, 4
push 0x44d4bc
lea ecx, [esp + 0x74]
push ecx
push ebp
call fcn.00405890
mov edi, eax
mov byte [esp + 0x10c], 9
push 0xa
mov dword [esp + 0x3c], esi
push str.usequence
lea esi, [esp + 0x28]
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], bx
call fcn.004031d0
push edi
mov edx, esi
push edx
lea edi, [esp + 0x4c]
mov byte [esp + 0x114], 0xa
call fcn.00416160
add esp, 8
push eax
lea esi, [esp + 0x64]
mov byte [esp + 0x110], 0xb
call fcn.00410de0
mov edi, 8
cmp dword [esp + 0x5c], edi
jb 0x407ba8
mov eax, dword [esp + 0x48]
push eax
call fcn.00422ece
add esp, 4
cmp dword [esp + 0x38], edi
mov esi, 7
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], bx
jb 0x407bcd
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00422ece
add esp, 4
mov byte [esp + 0x10c], 6
cmp dword [esp + 0x88], edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
jb 0x407bf8
mov edx, dword [esp + 0x74]
push edx
call fcn.00422ece
add esp, 4
push 0x44d5c4
lea eax, [esp + 0x74]
push eax
push ebp
call fcn.00405890
mov edi, eax
mov byte [esp + 0x10c], 0xc
push 6
mov dword [esp + 0x3c], esi
push str.group
lea esi, [esp + 0x28]
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], bx
call fcn.004031d0
push edi
mov ecx, esi
push ecx
lea edi, [esp + 0x4c]
mov byte [esp + 0x114], 0xd
call fcn.00416160
add esp, 8
push eax
lea esi, [esp + 0x64]
mov byte [esp + 0x110], 0xe
call fcn.00410de0
mov esi, 8
cmp dword [esp + 0x5c], esi
jb 0x407c71
mov edx, dword [esp + 0x48]
push edx
call fcn.00422ece
add esp, 4
cmp dword [esp + 0x38], esi
mov edi, 7
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], bx
jb 0x407c96
mov eax, dword [esp + 0x24]
push eax
call fcn.00422ece
add esp, 4
mov byte [esp + 0x10c], 6
cmp dword [esp + 0x88], esi
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
jb 0x407cc1
mov ecx, dword [esp + 0x74]
push ecx
call fcn.00422ece
add esp, 4
mov edx, dword [esp + 0x1c]
push str.File
push edx
lea ecx, [esp + 0x68]
call fcn.0040dd20
mov eax, dword [esp + 0x64]
cmp eax, ebx
je 0x407cfa
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x68]
push ecx
call fcn.00417520
mov edx, dword [esp + 0x68]
add esp, 4
push edx
call fcn.00422ece
add esp, 4
mov esi, dword [esp + 0x1c]
sub dword [0x4575f0], 1
cmp dword [esi + 0x38], ebx
mov esi, 8
sete byte [esp + 0x1a]
cmp dword [esp + 0xdc], esi
jb 0x407d2b
mov eax, dword [esp + 0xc8]
push eax
call fcn.00422ece
add esp, 4
cmp dword [esp + 0xa4], esi
mov edi, 7
mov dword [esp + 0xdc], edi
mov dword [esp + 0xd8], ebx
mov word [esp + 0xc8], bx
jb 0x407d5f
mov ecx, dword [esp + 0x90]
push ecx
call fcn.00422ece
add esp, 4
cmp dword [esp + 0xf8], esi
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa0], ebx
mov word [esp + 0x90], bx
jb 0x407d8e
mov edx, dword [esp + 0xe4]
push edx
call fcn.00422ece
add esp, 4
cmp dword [esp + 0xc0], esi
mov dword [esp + 0xf8], edi
mov dword [esp + 0xf4], ebx
mov word [esp + 0xe4], bx
jb 0x407dbd
mov eax, dword [esp + 0xac]
push eax
call fcn.00422ece
add esp, 4
mov al, byte [esp + 0x1a]
mov ecx, dword [esp + 0x104]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xe8]
xor ecx, esp
call fcn.00422834
add esp, 0xfc
ret 4