Function at 0x4038a0
Capabilities:
Copy file
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e808
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 byte [0x4582c8], 1
call fcn.00404000
test eax, eax
jne 0x403a77
push str.SavePendingRenameOp__9X_:
push 0xa
push 0x45858c
call fcn.00416150
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.00406900
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00406900
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.00406900
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1c]
push eax
call fcn.00401d20
add esp, 4
push 0xffffffffffffffff
lea ecx, [ebp - 0x1c]
call fcn.00406b40
push str.wininit.ini
lea eax, [ebp - 0x1c]
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 - 0x20]
call fcn.00406a00
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x7c]
call fcn.004069e0
lea ecx, [ebp - 0x20]
call fcn.00406a90
push eax
push 0
call fcn.004017d0
add esp, 8
test eax, eax
je 0x403a3b
push str.SavePendingRenameOp__9X_:_wininit.ini_existing
push 0xa
push 0x45858c
call fcn.00416150
add esp, 0xc
push str.wininit.sav
lea eax, [ebp - 0x1c]
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 - 0x24]
call fcn.00406a00
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x78]
call fcn.004069e0
push 0
lea ecx, [ebp - 0x24]
call fcn.00406a90
push eax
lea ecx, [ebp - 0x20]
call fcn.00406a90
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x403a17
push str.SavePendingRenameOp__9X_:_Cannot_copy_wininit.ini
push 1
push 0x45858c
call fcn.00416150
add esp, 0xc
mov dword [ebp - 0x18], 0xffffffff
jmp 0x403a39
mov byte [0x4582c8], 0
push str.SavePendingRenameOp__9X_:_wininit.ini_copied_to_.sav_.
push 0xa
push 0x45858c
call fcn.00416150
add esp, 0xc
mov dword [ebp - 0x18], 0
jmp 0x403a42
mov dword [ebp - 0x18], 0xfffffffe
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.004069e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.004069e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004069e0
mov eax, dword [ebp - 0x74]
jmp 0x403bf0
push str.SavePendingRenameOp_function.
push 0xa
push 0x45858c
call fcn.00416150
add esp, 0xc
cmp dword [0x4582c0], 0
je 0x403ab9
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 byte [0x4582c8], 0
lea eax, [ebp - 0x10]
push eax
push 0x2001f
push 0
push str.SYSTEMCurrentControlSetControlSession_Manager
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403beb
mov dword [0x4582c4], 0
push 0x4582c4
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push str.PendingFileRenameOperations
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403bd4
cmp dword [0x4582c4], 0
jbe 0x403bd4
mov eax, dword [0x4582c4]
push eax
push str.SavePendingRenameOp__NT_:_Entry_existing__Size__d_
push 0xa
push 0x45858c
call fcn.00416150
add esp, 0x10
mov byte [0x4582c8], 0
mov dword [0x4582c0], 0
mov eax, dword [0x4582c4]
add eax, 1
mov dword [0x4582c4], eax
mov eax, dword [0x4582c4]
push eax
call fcn.00416652
add esp, 4
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
mov dword [0x4582c0], ecx
cmp dword [0x4582c0], 0
je 0x403bcb
push 0x4582c4
mov eax, dword [0x4582c0]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0
push str.PendingFileRenameOperations
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403b9c
xor eax, eax
jmp 0x403bf0
mov eax, dword [0x4582c0]
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.0041664d
add esp, 4
mov dword [0x4582c0], 0
mov dword [0x4582c4], 0
or eax, 0xffffffff
jmp 0x403bf0
mov eax, 0xfffffffe
jmp 0x403bf0
mov byte [0x4582c8], 1
xor eax, eax
jmp 0x403bf0
mov eax, 0xfffffffd
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret