Function at 0x402520
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e061
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x4620f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor bl, bl
mov eax, dword [ebp + 0xc]
mov esi, 1
mov dword [ebp - 0xd8], eax
mov byte [ebp - 0xcd], 1
mov byte [ebp - 0xd1], bl
cmp edi, esi
jle 0x4025bd
push 0x445594
push dword [eax + esi*4]
call fcn.004111fe
test eax, eax
movzx ebx, bl
mov eax, 1
cmove ebx, eax
mov eax, dword [ebp - 0xd8]
push 0x44559c
mov byte [ebp - 0xd1], bl
push dword [eax + esi*4]
call fcn.004111fe
add esp, 0x10
neg eax
sbb al, al
inc esi
and byte [ebp - 0xcd], al
mov eax, dword [ebp - 0xd8]
cmp esi, edi
jl 0x402572
lea ecx, [ebp - 0xcc]
call fcn.00402df0
xor eax, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
push 9
push str.setup.cmd
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], eax
mov word [ebp - 0x40], ax
call fcn.00402070
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xcc]
call fcn.004031f0
test al, al
sete bl
cmp dword [ebp - 0x2c], 8
jb 0x402631
push dword [ebp - 0x40]
call fcn.00404a15
add esp, 4
test bl, bl
je 0x402642
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x402972
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
push 0xb
push str.cleanup.cmd
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], eax
mov word [ebp - 0x40], ax
call fcn.00402070
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xcc]
call fcn.004031f0
test al, al
mov byte [ebp - 4], 3
sete bl
cmp dword [ebp - 0x2c], 8
jb 0x4026a8
push dword [ebp - 0x40]
call fcn.00404a15
add esp, 4
test bl, bl
je 0x4026b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x402951
push 0x17
xor eax, eax
mov dword [ebp - 0x5c], 7
push str.driver_cleanup_tool.exe
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
call fcn.00402070
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0xcc]
call fcn.004031f0
test al, al
sete bl
cmp dword [ebp - 0x2c], 8
jb 0x40271d
push dword [ebp - 0x40]
call fcn.00404a15
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
cmp dword [ebp - 0x5c], 8
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 3
jb 0x402746
push dword [ebp - 0x70]
call fcn.00404a15
add esp, 4
test bl, bl
je 0x402757
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x402951
push 0xc
xor eax, eax
mov dword [ebp - 0x5c], 7
push str.schedmgr.exe
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
call fcn.00402070
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0xcc]
call fcn.004031f0
test al, al
sete bl
cmp dword [ebp - 0x2c], 8
jb 0x4027bb
push dword [ebp - 0x40]
call fcn.00404a15
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
cmp dword [ebp - 0x5c], 8
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
jb 0x4027e0
push dword [ebp - 0x70]
call fcn.00404a15
add esp, 4
test bl, bl
je 0x4027f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x402951
xor eax, eax
mov dword [ebp - 0x74], 7
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0xcc]
call fcn.00403780
push str._snapapi.dll
push eax
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 0xa
push eax
call fcn.00401340
add esp, 0xc
cmp dword [ebp - 0x5c], 8
mov byte [ebp - 4], 0xc
jb 0x402849
push dword [ebp - 0x70]
call fcn.00404a15
add esp, 4
xor eax, eax
mov dword [ebp - 0x5c], 7
push str.snapapi.x86.dll
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
call fcn.00401480
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xcc]
call fcn.004031f0
cmp dword [ebp - 0x2c], 8
jb 0x402895
push dword [ebp - 0x40]
call fcn.00404a15
add esp, 4
cmp dword [ebp - 0x8c], 8
lea ecx, [ebp - 0xa0]
lea eax, [ebp - 0x88]
cmovae ecx, dword [ebp - 0xa0]
cmp dword [ebp - 0x74], 8
push ecx
cmovae eax, dword [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00401570
mov esi, eax
add esp, 8
test esi, esi
jne 0x4028fa
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
push dword [ebp - 0xd1]
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.00401570
add esp, 8
mov esi, eax
cmp dword [ebp - 0x8c], 8
jb 0x402911
push dword [ebp - 0xa0]
call fcn.00404a15
add esp, 4
xor eax, eax
mov dword [ebp - 0x8c], 7
cmp dword [ebp - 0x74], 8
mov word [ebp - 0xa0], ax
mov dword [ebp - 0x90], eax
jb 0x40293e
push dword [ebp - 0x88]
call fcn.00404a15
add esp, 4
xor eax, eax
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x44], 8
jb 0x402962
push dword [ebp - 0x58]
call fcn.00404a15
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], eax
mov word [ebp - 0x58], ax
cmp dword [ebp - 0x14], 8
jb 0x402983
push dword [ebp - 0x28]
call fcn.00404a15
add esp, 4
xor eax, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
call fcn.00402f50
cmp byte [ebp - 0xcd], 0
je 0x4029c0
cmp esi, 0xbc2
jne 0x4029c0
push 0
call fcn.00402a00
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004051a4
mov esp, ebp
pop ebp
ret