Function at 0x407530
Capabilities:
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x44920c
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x4563c4]
xor eax, esp
mov dword [esp + 0xe8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4563c4]
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.004057e0
xor ebx, ebx
lea eax, [esp + 0xa8]
mov dword [esp + 0x10c], ebx
call fcn.00421250
push str.source
lea ecx, [esp + 0xe4]
push ecx
push ebp
call fcn.004057e0
push str.destination
lea edx, [esp + 0x90]
push edx
push ebp
mov byte [esp + 0x118], 1
call fcn.004057e0
push str.mode
lea eax, [esp + 0xc8]
push eax
push ebp
mov byte [esp + 0x118], 2
call fcn.004057e0
lea eax, [esp + 0xc4]
mov byte [esp + 0x10c], 3
call fcn.00421250
mov eax, dword [esp + 0xbc]
push str.copy
lea edi, [ebx + 4]
lea ecx, [esp + 0xac]
call fcn.00403c20
test eax, eax
je 0x40763f
mov eax, dword [esp + 0xbc]
push str.copyonly
lea edi, [ebx + 8]
lea ecx, [esp + 0xac]
call fcn.00403c20
test eax, eax
mov byte [esp + 0x1a], bl
jne 0x407644
mov byte [esp + 0x1a], 1
mov eax, dword [esp + 0xbc]
push str.deleteoninstall
mov edi, 0xf
lea ecx, [esp + 0xac]
call fcn.00403c20
test eax, eax
push str.File
sete byte [esp + 0x1f]
push str.__s_
push 0x4575e0
xor eax, eax
call fcn.00419140
add dword [0x457600], 1
add esp, 0xc
cmp byte [esp + 0x1a], bl
je 0x40786a
mov eax, dword [esp + 0xd8]
push str.ifnewer
mov edi, 7
lea ecx, [esp + 0xc8]
call fcn.00403c20
test eax, eax
jne 0x4076b8
lea esi, [edi - 6]
jmp 0x4076e1
mov eax, dword [esp + 0xd8]
push str.ifnotexists
mov edi, 0xb
lea ecx, [esp + 0xc8]
call fcn.00403c20
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 0x4076fd
lea eax, [esp + 0xac]
push eax
push str.Operation___s
push 0x4575e0
xor eax, eax
call fcn.00419140
mov eax, dword [esp + 0x9c]
add esp, 0xc
cmp dword [esp + 0xa4], edi
jae 0x407729
lea eax, [esp + 0x90]
push eax
push str.Destination___s
push 0x4575e0
xor eax, eax
call fcn.00419140
add esp, 0xc
push 0x44d5dc
lea ecx, [esp + 0x48]
push ecx
push ebp
call fcn.004057e0
mov edi, eax
push 0x44d4d4
lea edx, [esp + 0x24]
push edx
push ebp
mov byte [esp + 0x118], 4
call fcn.004057e0
mov ecx, 8
mov byte [esp + 0x10c], 5
cmp dword [edi + 0x18], ecx
jb 0x407783
mov edx, dword [edi + 4]
mov dword [esp + 0x40], edx
jmp 0x40778a
add edi, 4
mov dword [esp + 0x40], edi
cmp dword [eax + 0x18], ecx
jb 0x407794
mov eax, dword [eax + 4]
jmp 0x407797
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.00403c20
mov edx, dword [esp + 0x90]
test eax, eax
mov eax, 8
sete cl
cmp dword [esp + 0xa4], eax
jae 0x4077d9
lea edx, [esp + 0x90]
cmp dword [esp + 0xf8], eax
mov eax, dword [esp + 0xe4]
jae 0x4077f0
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.0040d550
cmp dword [esp + 0x38], 8
mov edi, eax
jb 0x40781f
mov edx, dword [esp + 0x24]
push edx
call fcn.00422b32
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 0x40784c
mov eax, dword [esp + 0x48]
push eax
call fcn.00422b32
add esp, 4
cmp edi, ebx
je 0x40799d
mov cl, byte [esi + 0x245]
neg cl
sbb ecx, ecx
not ecx
and ecx, edi
mov dword [esi + 0x38], ecx
jmp 0x40799d
cmp byte [esp + 0x1b], bl
je 0x40794f
mov eax, dword [esp + 0x90]
mov edi, 8
cmp dword [esp + 0xa4], edi
jae 0x407890
lea eax, [esp + 0x90]
push eax
push str.Deleting_file:__s
push 0x4575e0
xor eax, eax
call fcn.00419140
add esp, 0xc
cmp byte [esi + 0x244], bl
jne 0x40799d
cmp dword [esp + 0xa4], edi
mov eax, dword [esp + 0x90]
jae 0x4078c8
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40799d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 5
jne 0x407924
push eax
push str.__File_locked__marked_for_delete_on_next_reboot__Error__0x_X_
push 0x4575e0
xor eax, eax
call fcn.00419140
mov eax, dword [esp + 0x9c]
add esp, 0xc
cmp dword [esp + 0xa4], 8
jae 0x407911
lea eax, [esp + 0x90]
push 4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [esi + 0x34], 1
jmp 0x40799d
push edi
push str.__Delete_error_0x_X
push 0x4575e0
mov eax, 2
call fcn.00419140
mov dl, byte [esi + 0x245]
add esp, 0xc
neg dl
sbb edx, edx
not edx
and edx, edi
mov dword [esi + 0x38], edx
jmp 0x40799d
mov eax, dword [esp + 0xbc]
push str.deleteonuninstall
mov edi, 0x11
lea ecx, [esp + 0xac]
call fcn.00403c20
test eax, eax
jne 0x40799d
cmp dword [esp + 0xa4], 8
mov eax, dword [esp + 0x90]
jae 0x407988
lea eax, [esp + 0x90]
push eax
push str.Marking__s_for_delete_during_uninstallation
push 0x4575e0
xor eax, eax
call fcn.00419140
add esp, 0xc
mov eax, dword [esp + 0xbc]
push str.deleteonuninstall
mov edi, 0x11
lea ecx, [esp + 0xac]
call fcn.00403c20
test eax, eax
jne 0x407c48
cmp byte [esi + 0x244], bl
jne 0x407c48
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x10c], 6
push 5
push 0x44d738
lea esi, [esp + 0x28]
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], bx
call fcn.004030c0
lea eax, [esp + 0x8c]
push eax
mov ecx, esi
push ecx
lea edi, [esp + 0x4c]
mov byte [esp + 0x114], 7
call fcn.00416050
add esp, 8
push eax
lea esi, [esp + 0x64]
mov byte [esp + 0x110], 8
call fcn.00410ce0
mov edi, 8
cmp dword [esp + 0x5c], edi
jb 0x407a4c
mov edx, dword [esp + 0x48]
push edx
call fcn.00422b32
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 0x407a79
mov eax, dword [esp + 0x24]
push eax
call fcn.00422b32
add esp, 4
push 0x44d4d4
lea ecx, [esp + 0x74]
push ecx
push ebp
call fcn.004057e0
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.004030c0
push edi
mov edx, esi
push edx
lea edi, [esp + 0x4c]
mov byte [esp + 0x114], 0xa
call fcn.00416050
add esp, 8
push eax
lea esi, [esp + 0x64]
mov byte [esp + 0x110], 0xb
call fcn.00410ce0
mov edi, 8
cmp dword [esp + 0x5c], edi
jb 0x407af2
mov eax, dword [esp + 0x48]
push eax
call fcn.00422b32
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 0x407b17
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00422b32
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 0x407b42
mov edx, dword [esp + 0x74]
push edx
call fcn.00422b32
add esp, 4
push 0x44d5dc
lea eax, [esp + 0x74]
push eax
push ebp
call fcn.004057e0
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.004030c0
push edi
mov ecx, esi
push ecx
lea edi, [esp + 0x4c]
mov byte [esp + 0x114], 0xd
call fcn.00416050
add esp, 8
push eax
lea esi, [esp + 0x64]
mov byte [esp + 0x110], 0xe
call fcn.00410ce0
mov esi, 8
cmp dword [esp + 0x5c], esi
jb 0x407bbb
mov edx, dword [esp + 0x48]
push edx
call fcn.00422b32
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 0x407be0
mov eax, dword [esp + 0x24]
push eax
call fcn.00422b32
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 0x407c0b
mov ecx, dword [esp + 0x74]
push ecx
call fcn.00422b32
add esp, 4
mov edx, dword [esp + 0x1c]
push str.File
push edx
lea ecx, [esp + 0x68]
call fcn.0040dc40
mov eax, dword [esp + 0x64]
cmp eax, ebx
je 0x407c44
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x68]
push ecx
call fcn.00417420
mov edx, dword [esp + 0x68]
add esp, 4
push edx
call fcn.00422b32
add esp, 4
mov esi, dword [esp + 0x1c]
sub dword [0x457600], 1
cmp dword [esi + 0x38], ebx
mov esi, 8
sete byte [esp + 0x1a]
cmp dword [esp + 0xdc], esi
jb 0x407c75
mov eax, dword [esp + 0xc8]
push eax
call fcn.00422b32
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 0x407ca9
mov ecx, dword [esp + 0x90]
push ecx
call fcn.00422b32
add esp, 4
cmp dword [esp + 0xf8], esi
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa0], ebx
mov word [esp + 0x90], bx
jb 0x407cd8
mov edx, dword [esp + 0xe4]
push edx
call fcn.00422b32
add esp, 4
cmp dword [esp + 0xc0], esi
mov dword [esp + 0xf8], edi
mov dword [esp + 0xf4], ebx
mov word [esp + 0xe4], bx
jb 0x407d07
mov eax, dword [esp + 0xac]
push eax
call fcn.00422b32
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.00422b23
add esp, 0xfc
ret 4