Function at 0x403c10
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 0x43e858
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push esi
push edi
mov eax, dword [0x456ea4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], 0xa
call fcn.00404000
test eax, eax
jne 0x403e46
push str.RestorePendingRenameOp__9X_:
push 0xa
push 0x45858c
call fcn.00416150
add esp, 0xc
lea ecx, [ebp - 0x20]
call fcn.00406900
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00406900
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00406900
mov byte [ebp - 4], 2
lea eax, [ebp - 0x20]
push eax
call fcn.00401d20
add esp, 4
push 0xffffffffffffffff
lea ecx, [ebp - 0x20]
call fcn.00406b40
push str.wininit.ini
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x7c]
push ecx
call fcn.00405f60
add esp, 0xc
mov dword [ebp - 0x80], eax
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0x84], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x84]
push eax
lea ecx, [ebp - 0x24]
call fcn.00406a00
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x7c]
call fcn.004069e0
push str.wininit.sav
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x78]
push ecx
call fcn.00405f60
add esp, 0xc
mov dword [ebp - 0x80], eax
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0x84], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x84]
push eax
lea ecx, [ebp - 0x28]
call fcn.00406a00
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x78]
call fcn.004069e0
movzx eax, byte [0x4582c8]
test eax, eax
jne 0x403dc6
push 0
lea ecx, [ebp - 0x24]
call fcn.00406a90
push eax
lea ecx, [ebp - 0x28]
call fcn.00406a90
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x403d67
push str.RestorePendingRenameOp__9X_:_Cannot_copy_wininit.ini
push 1
push 0x45858c
call fcn.00416150
add esp, 0xc
mov dword [ebp - 0x1c], 0xffffffff
jmp 0x403d82
push str.RestorePendingRenameOp__9X_:_wininit.sav_restored_to_.ini_.
push 0xa
push 0x45858c
call fcn.00416150
add esp, 0xc
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x24]
call fcn.00406a90
push eax
push 0
call fcn.004017d0
add esp, 8
cmp eax, 1
je 0x403db5
push str.RestorePendingRenameOp__9X_:_Restoring_wininit.ini_failed_
push 1
push 0x45858c
call fcn.00416150
add esp, 0xc
mov dword [ebp - 0x1c], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00406a90
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x403e11
lea ecx, [ebp - 0x24]
call fcn.00406a90
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x24]
call fcn.00406a90
push eax
push 0
call fcn.004017d0
add esp, 8
cmp eax, 1
jne 0x403e0a
push str.RestorePendingRenameOp__9X_:_Deleting_wininit.ini_failed_
push 1
push 0x45858c
call fcn.00416150
add esp, 0xc
mov dword [ebp - 0x1c], 0xffffffff
jmp 0x403e11
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004069e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.004069e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004069e0
mov eax, dword [ebp - 0x74]
jmp 0x403fe5
push str.RestorePendingRenameOp:
push 0xa
push 0x45858c
call fcn.00416150
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push 0x2001f
push 0
push str.SYSTEMCurrentControlSetControlSession_Manager
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403fe0
movzx eax, byte [0x4582c8]
cmp eax, 1
jne 0x403ee7
mov dword [0x4582c4], 0
lea eax, [ebp - 0x10]
push eax
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
push str.PendingFileRenameOperations
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403ed8
push str.PendingFileRenameOperations
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x403ecf
or eax, 0xffffffff
jmp 0x403fe5
xor eax, eax
jmp 0x403fe5
mov eax, 0xfffffffe
jmp 0x403fe5
push str.RestorePendingRenameOp:_Entry_existed__restore..
push 0xa
push 0x45858c
call fcn.00416150
add esp, 0xc
cmp dword [0x4582c0], 0
je 0x403fcd
mov eax, dword [0x4582c4]
push eax
mov ecx, dword [0x4582c0]
push ecx
push 7
push 0
push str.PendingFileRenameOperations
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x403f7e
mov eax, dword [0x4582c4]
push eax
push str.RestorePendingRenameOp:_Entry_restored__Size__d_
push 0xa
push 0x45858c
call fcn.00416150
add esp, 0x10
mov eax, dword [0x4582c0]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
push ecx
call fcn.0041664d
add esp, 4
mov dword [0x4582c0], 0
mov dword [0x4582c4], 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x403fe5
push str.RestorePendingRenameOp:_Entry_couldn
push 1
push 0x45858c
call fcn.00416150
add esp, 0xc
mov eax, dword [0x4582c0]
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.0041664d
add esp, 4
mov dword [0x4582c0], 0
mov dword [0x4582c4], 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xfffffffd
jmp 0x403fe5
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xfffffffc
jmp 0x403fe5
mov eax, 0xfffffffb
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret