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

Disassembly:
sub rsp, 0xc8
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov byte [0x14007ec4c], 1
call fcn.140005190
test eax, eax
jne 0x1400049fe
lea r8, str.SavePendingRenameOp__9X_:
mov edx, 0xa
lea rcx, [0x14007f0e0]
call fcn.140021a10
lea rcx, [rsp + 0x48]
call fcn.1400084e0
nop
lea rcx, [rsp + 0x50]
call fcn.1400084e0
nop
lea rcx, [rsp + 0x58]
call fcn.1400084e0
nop
lea rcx, [rsp + 0x48]
call fcn.140002200
mov edx, 0xffffffff
lea rcx, [rsp + 0x48]
call fcn.140008700
lea r8, str.wininit.ini
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x60]
call fcn.140007a00
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xa0], rax
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x50]
call fcn.1400085e0
nop
lea rcx, [rsp + 0x60]
call fcn.1400085c0
lea rcx, [rsp + 0x50]
call fcn.140008670
mov rdx, rax
xor ecx, ecx
call fcn.140001bd0
test eax, eax
je 0x1400049c5
lea r8, str.SavePendingRenameOp__9X_:_wininit.ini_existing
mov edx, 0xa
lea rcx, [0x14007f0e0]
call fcn.140021a10
lea r8, str.wininit.sav
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x68]
call fcn.140007a00
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0xb0], rax
mov rdx, qword [rsp + 0xb0]
lea rcx, [rsp + 0x58]
call fcn.1400085e0
nop
lea rcx, [rsp + 0x68]
call fcn.1400085c0
lea rcx, [rsp + 0x58]
call fcn.140008670
mov qword [rsp + 0xb8], rax
lea rcx, [rsp + 0x50]
call fcn.140008670
xor r8d, r8d
mov rcx, qword [rsp + 0xb8]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x14000499c
lea r8, str.SavePendingRenameOp__9X_:_Cannot_copy_wininit.ini
mov edx, 1
lea rcx, [0x14007f0e0]
call fcn.140021a10
mov dword [rsp + 0x30], 0xffffffff
jmp 0x1400049c3
mov byte [0x14007ec4c], 0
lea r8, str.SavePendingRenameOp__9X_:_wininit.ini_copied_to_.sav_.
mov edx, 0xa
lea rcx, [0x14007f0e0]
call fcn.140021a10
mov dword [rsp + 0x30], 0
jmp 0x1400049cd
mov dword [rsp + 0x30], 0xfffffffe
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x70], eax
lea rcx, [rsp + 0x58]
call fcn.1400085c0
nop
lea rcx, [rsp + 0x50]
call fcn.1400085c0
nop
lea rcx, [rsp + 0x48]
call fcn.1400085c0
mov eax, dword [rsp + 0x70]
jmp 0x140004bd0
lea r8, str.SavePendingRenameOp_function.
mov edx, 0xa
lea rcx, [0x14007f0e0]
call fcn.140021a10
cmp qword [0x14007ec40], 0
je 0x140004a48
mov rax, qword [0x14007ec40]
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x78]
call fcn.140022418
mov qword [0x14007ec40], 0
mov byte [0x14007ec4c], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlSession_Manager
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140004bcb
mov dword [0x14007ec48], 0
lea rax, [0x14007ec48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.PendingFileRenameOperations
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140004bb3
cmp dword [0x14007ec48], 0
jbe 0x140004bb3
mov r9d, dword [0x14007ec48]
lea r8, str.SavePendingRenameOp__NT_:_Entry_existing__Size__d_
mov edx, 0xa
lea rcx, [0x14007f0e0]
call fcn.140021a10
mov byte [0x14007ec4c], 0
mov qword [0x14007ec40], 0
mov eax, dword [0x14007ec48]
add eax, 1
mov dword [0x14007ec48], eax
mov eax, dword [0x14007ec48]
mov rcx, rax
call fcn.140022420
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [0x14007ec40], rax
cmp qword [0x14007ec40], 0
je 0x140004baa
lea rax, [0x14007ec48]
mov qword [rsp + 0x28], rax
mov rax, qword [0x14007ec40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.PendingFileRenameOperations
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140004b70
xor eax, eax
jmp 0x140004bd0
mov rax, qword [0x14007ec40]
mov qword [rsp + 0x88], rax
mov rcx, qword [rsp + 0x88]
call fcn.140022418
mov qword [0x14007ec40], 0
mov dword [0x14007ec48], 0
mov eax, 0xffffffff
jmp 0x140004bd0
mov eax, 0xfffffffe
jmp 0x140004bd0
mov byte [0x14007ec4c], 1
xor eax, eax
jmp 0x140004bd0
mov eax, 0xfffffffd
add rsp, 0xc8
ret