Function at 0x403a60
Capabilities:
Copy file
Delete file
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526450
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x587730]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.Compsetupstarter
lea ecx, [ebp - 0x14]
call fcn.00406480
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0xa
call fcn.00403f50
test eax, eax
jne 0x403cd1
push str.__RestorePendingRenameOp__9X_:
lea ecx, [ebp - 0x14]
call fcn.00406580
push eax
push 0xa
push 0x588f50
call fcn.00416d20
add esp, 0x10
lea ecx, [ebp - 0x24]
call fcn.00406440
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00406440
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00406440
mov byte [ebp - 4], 3
lea eax, [ebp - 0x24]
push eax
call fcn.00401c90
add esp, 4
push 0xffffffffffffffff
lea ecx, [ebp - 0x24]
call fcn.00406600
push str.wininit.ini
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x30]
push edx
call fcn.00405c70
add esp, 0xc
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00406520
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
call fcn.00406500
push str.wininit.sav
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x34]
push eax
call fcn.00405c70
add esp, 0xc
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x6c], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x6c]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00406520
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x34]
call fcn.00406500
movzx eax, byte [0x588c08]
test eax, eax
jne 0x403c3c
push 0
lea ecx, [ebp - 0x28]
call fcn.00406580
push eax
lea ecx, [ebp - 0x2c]
call fcn.00406580
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x403bcb
push str.RestorePendingRenameOp__9X_:_Cannot_copy_wininit.ini
lea ecx, [ebp - 0x14]
call fcn.00406580
push eax
push 1
push 0x588f50
call fcn.00416d20
add esp, 0x10
mov dword [ebp - 0x10], 0xffffffff
jmp 0x403bef
push str.__RestorePendingRenameOp__9X_:_wininit.sav_restored_to_.ini_.
lea ecx, [ebp - 0x14]
call fcn.00406580
push eax
push 0xa
push 0x588f50
call fcn.00416d20
add esp, 0x10
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x28]
call fcn.00406580
push eax
push 0
call fcn.004017a0
add esp, 8
cmp eax, 1
je 0x403c2b
push str.RestorePendingRenameOp__9X_:_Restoring_wininit.ini_failed_
lea ecx, [ebp - 0x14]
call fcn.00406580
push eax
push 1
push 0x588f50
call fcn.00416d20
add esp, 0x10
mov dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00406580
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x403c90
lea ecx, [ebp - 0x28]
call fcn.00406580
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x28]
call fcn.00406580
push eax
push 0
call fcn.004017a0
add esp, 8
cmp eax, 1
jne 0x403c89
push str.RestorePendingRenameOp__9X_:_Deleting_wininit.ini_failed_
lea ecx, [ebp - 0x14]
call fcn.00406580
push eax
push 1
push 0x588f50
call fcn.00416d20
add esp, 0x10
mov dword [ebp - 0x10], 0xffffffff
jmp 0x403c90
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x38], ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00406500
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00406500
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00406500
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00406500
mov eax, dword [ebp - 0x38]
jmp 0x403f41
push str.__RestorePendingRenameOp:
lea ecx, [ebp - 0x14]
call fcn.00406580
push eax
push 0xa
push 0x588f50
call fcn.00416d20
add esp, 0x10
lea edx, [ebp - 0x1c]
push edx
push 0x2001f
push 0
push str.SYSTEMCurrentControlSetControlSession_Manager
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403f17
movzx eax, byte [0x588c08]
cmp eax, 1
jne 0x403dc0
mov dword [0x588c04], 0
lea ecx, [ebp - 0x18]
push ecx
push 0
lea edx, [ebp - 0x20]
push edx
push 0
push str.PendingFileRenameOperations
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403d9d
push str.PendingFileRenameOperations
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x403d7d
mov dword [ebp - 0x3c], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00406500
mov eax, dword [ebp - 0x3c]
jmp 0x403f41
mov dword [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00406500
mov eax, dword [ebp - 0x40]
jmp 0x403f41
mov dword [ebp - 0x44], 0xfffffffe
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00406500
mov eax, dword [ebp - 0x44]
jmp 0x403f41
push str.__RestorePendingRenameOp:_Entry_existed__restore..
lea ecx, [ebp - 0x14]
call fcn.00406580
push eax
push 0xa
push 0x588f50
call fcn.00416d20
add esp, 0x10
cmp dword [0x588c00], 0
je 0x403ef0
mov edx, dword [0x588c04]
push edx
mov eax, dword [0x588c00]
push eax
push 7
push 0
push str.PendingFileRenameOperations
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x403e84
mov edx, dword [0x588c04]
push edx
push str.__RestorePendingRenameOp:_Entry_restored__Size__d_
lea ecx, [ebp - 0x14]
call fcn.00406580
push eax
push 0xa
push 0x588f50
call fcn.00416d20
add esp, 0x14
mov eax, dword [0x588c00]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00417316
add esp, 4
mov dword [0x588c00], 0
mov dword [0x588c04], 0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00406500
mov eax, dword [ebp - 0x4c]
jmp 0x403f41
push str.RestorePendingRenameOp:_Entry_couldn
lea ecx, [ebp - 0x14]
call fcn.00406580
push eax
push 1
push 0x588f50
call fcn.00416d20
add esp, 0x10
mov eax, dword [0x588c00]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.00417316
add esp, 4
mov dword [0x588c00], 0
mov dword [0x588c04], 0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x54], 0xfffffffd
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00406500
mov eax, dword [ebp - 0x54]
jmp 0x403f41
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x58], 0xfffffffc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00406500
mov eax, dword [ebp - 0x58]
jmp 0x403f41
mov dword [ebp - 0x5c], 0xfffffffb
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00406500
mov eax, dword [ebp - 0x5c]
jmp 0x403f41
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret