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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526400
mov eax, dword fs:[0]
push eax
sub esp, 0x58
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 byte [0x588c08], 1
call fcn.00403f50
test eax, eax
jne 0x403839
push str.__SavePendingRenameOp__9X_:
lea ecx, [ebp - 0x14]
call fcn.00406580
push eax
push 0xb
push 0x588f50
call fcn.00416d20
add esp, 0x10
lea ecx, [ebp - 0x20]
call fcn.00406440
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.00406440
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00406440
mov byte [ebp - 4], 3
lea eax, [ebp - 0x20]
push eax
call fcn.00401c90
add esp, 4
push 0xffffffffffffffff
lea ecx, [ebp - 0x20]
call fcn.00406600
push str.wininit.ini
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x2c]
push edx
call fcn.00405c70
add esp, 0xc
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x24]
call fcn.00406520
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.00406500
lea ecx, [ebp - 0x24]
call fcn.00406580
push eax
push 0
call fcn.004017a0
add esp, 8
test eax, eax
je 0x4037f1
push str.__SavePendingRenameOp__9X_:_wininit.ini_existing
lea ecx, [ebp - 0x14]
call fcn.00406580
push eax
push 0xa
push 0x588f50
call fcn.00416d20
add esp, 0x10
push str.wininit.sav
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x30]
push eax
call fcn.00405c70
add esp, 0xc
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x64], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x64]
push edx
lea ecx, [ebp - 0x28]
call fcn.00406520
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
call fcn.00406500
push 0
lea ecx, [ebp - 0x28]
call fcn.00406580
push eax
lea ecx, [ebp - 0x24]
call fcn.00406580
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4037c4
push str.SavePendingRenameOp__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 0x4037ef
mov byte [0x588c08], 0
push str.__SavePendingRenameOp__9X_:_wininit.ini_copied_to_.sav_.
lea ecx, [ebp - 0x14]
call fcn.00406580
push eax
push 0xb
push 0x588f50
call fcn.00416d20
add esp, 0x10
mov dword [ebp - 0x10], 0
jmp 0x4037f8
mov dword [ebp - 0x10], 0xfffffffe
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00406500
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.00406500
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00406500
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00406500
mov eax, dword [ebp - 0x34]
jmp 0x403a4d
push str.__SavePendingRenameOp_function.
lea ecx, [ebp - 0x14]
call fcn.00406580
push eax
push 0xa
push 0x588f50
call fcn.00416d20
add esp, 0x10
cmp dword [0x588c00], 0
je 0x403885
mov ecx, dword [0x588c00]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.00417316
add esp, 4
mov dword [0x588c00], 0
mov byte [0x588c08], 0
lea eax, [ebp - 0x18]
push eax
push 0x2001f
push 0
push str.SYSTEMCurrentControlSetControlSession_Manager
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403a23
mov dword [0x588c04], 0
push 0x588c04
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
push str.PendingFileRenameOperations
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4039f5
cmp dword [0x588c04], 0
jbe 0x4039f5
mov eax, dword [0x588c04]
push eax
push str.__SavePendingRenameOp__NT_:_Entry_existing__Size__d_
lea ecx, [ebp - 0x14]
call fcn.00406580
push eax
push 0xa
push 0x588f50
call fcn.00416d20
add esp, 0x14
mov byte [0x588c08], 0
mov dword [0x588c00], 0
mov ecx, dword [0x588c04]
add ecx, 1
mov dword [0x588c04], ecx
mov edx, dword [0x588c04]
push edx
call fcn.0041730b
add esp, 4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [0x588c00], eax
cmp dword [0x588c00], 0
je 0x4039d8
push 0x588c04
mov ecx, dword [0x588c00]
push ecx
lea edx, [ebp - 0x1c]
push edx
push 0
push str.PendingFileRenameOperations
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403992
mov dword [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00406500
mov eax, dword [ebp - 0x40]
jmp 0x403a4d
mov ecx, dword [0x588c00]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
push edx
call fcn.00417316
add esp, 4
mov dword [0x588c00], 0
mov dword [0x588c04], 0
mov dword [ebp - 0x48], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00406500
mov eax, dword [ebp - 0x48]
jmp 0x403a4d
mov dword [ebp - 0x4c], 0xfffffffe
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00406500
mov eax, dword [ebp - 0x4c]
jmp 0x403a4d
mov byte [0x588c08], 1
mov dword [ebp - 0x50], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00406500
mov eax, dword [ebp - 0x50]
jmp 0x403a4d
mov dword [ebp - 0x54], 0xfffffffd
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00406500
mov eax, dword [ebp - 0x54]
jmp 0x403a4d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret