Function at 0x434dc0
Capabilities:
Check if file exists
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ec154
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x70f200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x78], ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x80], esi
call fcn.005965b0
test al, al
je 0x434e0a
or eax, 0xffffffff
jmp 0x435693
test esi, esi
je 0x434e14
mov dword [esi], 0
push str.Analyzing_and_defragging_the_registry...
push 0xffffffffffffffff
lea ecx, [ebx + 0x14f0]
call fcn.005b66e0
push 0
push 1
mov ecx, ebx
call fcn.0043d720
sub esp, 8
mov dword [ebp - 0x38], 0
xorps xmm0, xmm0
lea ecx, [ebx + 0x15c]
movq qword [ebp - 0x40], xmm0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.Reg_Temp
call fcn.005dc190
push eax
lea ecx, [ebp - 0x40]
call fcn.005dc520
sub esp, 8
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
lea ecx, [ebx + 0x15c]
movq qword [ebp - 0x34], xmm0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.Old_RegBk
call fcn.005dc190
push eax
lea ecx, [ebp - 0x34]
call fcn.005dc520
push 2
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.005dc190
push eax
call fcn.005771e0
lea ecx, [ebp - 0x40]
call fcn.005dc190
or edx, 0xffffffff
mov ecx, eax
call fcn.005e0f30
push 2
lea ecx, [ebp - 0x34]
call fcn.005dc190
push eax
call fcn.005771e0
lea ecx, [ebp - 0x34]
call fcn.005dc190
or edx, 0xffffffff
mov ecx, eax
call fcn.005e0f30
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.005dc190
mov edx, 1
mov ecx, eax
call fcn.005d7570
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.005dc190
mov edx, 1
mov ecx, eax
call fcn.005d7570
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x624284
lea ecx, [ebp - 0x40]
call fcn.005da780
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x624284
lea ecx, [ebp - 0x34]
call fcn.005da780
sub esp, 8
mov dword [ebp - 0x5c], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x64]
movq qword [ebp - 0x64], xmm0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.config_
push dword [ebx + 0x24]
call fcn.005dc520
xorps xmm0, xmm0
mov dword [ebp - 0x90], 0x65c7c8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x8c], str.SECURITY
mov dword [ebp - 0x88], str.SOFTWARE
mov dword [ebp - 0x84], str.SYSTEM
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x20], 0
call fcn.005dc5e0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x1c]
movq qword [ebp - 0x1c], xmm0
call fcn.005dc5e0
xorps xmm0, xmm0
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x58]
movq qword [ebp - 0x58], xmm0
call fcn.005dc5e0
xorps xmm0, xmm0
mov dword [ebp - 0x44], 0
lea ecx, [ebp - 0x4c]
movq qword [ebp - 0x4c], xmm0
call fcn.005dc5e0
xor edi, edi
mov byte [ebp - 4], 6
xor eax, eax
mov dword [ebp - 0x70], eax
nop dword [eax]
mov esi, dword [ebp + eax*4 - 0x90]
lea ecx, [ebp - 0x64]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push esi
call fcn.005dc190
push eax
lea ecx, [ebp - 0x28]
call fcn.005dc200
lea ecx, [ebp - 0x28]
call fcn.005dc190
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4351cd
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push esi
lea ecx, [ebp - 0x40]
call fcn.005dc190
push eax
lea ecx, [ebp - 0x1c]
call fcn.005dc200
push 0
push 0
mov ecx, ebx
call fcn.0043d720
push 2
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push str.HKLM_
lea ecx, [ebp - 0x4c]
call fcn.005dc200
mov ecx, eax
call fcn.005dc190
push eax
lea ecx, [ebx + 0x1290]
call fcn.0054c790
cmp eax, 1
jne 0x4351cd
lea ecx, [ebp - 0x1c]
call fcn.005dc190
mov ecx, eax
call fcn.005e0e70
mov ecx, edx
mov dword [ebp - 0x74], eax
or eax, ecx
mov dword [ebp - 0x6c], ecx
je 0x4351cd
lea ecx, [ebp - 0x28]
call fcn.005dc190
mov ecx, eax
call fcn.005e0e70
sub eax, dword [ebp - 0x74]
push 0
sbb edx, dword [ebp - 0x6c]
push 0x64
push edx
push eax
call fcn.0042fc20
push dword [ebp - 0x6c]
push dword [ebp - 0x74]
push edx
push eax
call fcn.0042fd90
test edx, edx
jg 0x435157
jl 0x435145
cmp eax, 6
jae 0x435157
push 2
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push eax
call fcn.005771e0
jmp 0x4351cd
push 6
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push esi
lea ecx, [ebp - 0x34]
call fcn.005dc190
push eax
lea ecx, [ebp - 0x58]
call fcn.005dc200
mov ecx, eax
call fcn.005dc190
push eax
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push eax
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegReplaceKeyW]
test eax, eax
jne 0x4351b2
inc edi
jmp 0x4351c2
push 2
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push eax
call fcn.005771e0
push 0
push 1
mov ecx, ebx
call fcn.0043d720
mov eax, dword [ebp - 0x70]
inc eax
mov dword [ebp - 0x70], eax
cmp eax, 3
jl 0x435030
mov ecx, 3
mov dword [ebp - 0x6c], edi
call fcn.0059e240
mov esi, eax
mov dword [ebp - 0x68], esi
mov byte [ebp - 4], 7
cmp dword [esi], 0
mov dword [ebp - 0x7c], 0
jbe 0x4355ef
xor edi, edi
mov ecx, dword [esi + 4]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
add ecx, edi
push str.NTUSER.dat
call fcn.005dc190
push eax
lea ecx, [ebp - 0x28]
call fcn.005dc200
lea ecx, [ebp - 0x28]
call fcn.005dc190
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4353cf
mov ecx, dword [esi + 0xc]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
add ecx, edi
push 0
call fcn.005dc190
push eax
push str.HKU_
lea ecx, [ebp - 0x4c]
call fcn.005dc200
mov ecx, dword [esi + 0xc]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
add ecx, edi
push 0
call fcn.005dc190
push eax
lea ecx, [ebp - 0x40]
call fcn.005dc190
push eax
lea ecx, [ebp - 0x1c]
call fcn.005dc200
push 0
push 1
mov ecx, ebx
call fcn.0043d720
push 2
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push eax
lea ecx, [ebp - 0x4c]
call fcn.005dc190
push eax
lea ecx, [ebx + 0x1290]
call fcn.0054c790
cmp eax, 1
jne 0x4353cf
lea ecx, [ebp - 0x1c]
call fcn.005dc190
mov ecx, eax
call fcn.005e0e70
mov ecx, edx
mov ebx, eax
or eax, ecx
mov dword [ebp - 0x70], ecx
je 0x4353cf
lea ecx, [ebp - 0x28]
call fcn.005dc190
mov ecx, eax
call fcn.005e0e70
sub eax, ebx
ret
push 0
sbb edx, dword [ebp - 0x70]
push 0x64
push edx
push eax
call fcn.0042fc20
push dword [ebp - 0x70]
push ebx
push edx
push eax
call fcn.0042fd90
test edx, edx
jg 0x43533f
jl 0x43532a
cmp eax, 6
jae 0x43533f
push 2
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push eax
call fcn.005771e0
jmp 0x4353cf
push 6
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [esi + 0xc]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
add ecx, edi
push 0
call fcn.005dc190
push eax
lea ecx, [ebp - 0x34]
call fcn.005dc190
push eax
lea ecx, [ebp - 0x58]
call fcn.005dc200
mov ebx, dword [esi + 0xc]
lea ecx, [ebp - 0x58]
add ebx, edi
call fcn.005dc190
push eax
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push eax
mov ecx, ebx
call fcn.005dc190
push eax
push SHDefExtractIconW
call dword [sym.imp.ADVAPI32.dll_RegReplaceKeyW]
test eax, eax
jne 0x4353b3
inc dword [ebp - 0x6c]
jmp 0x4353c3
push 2
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push eax
call fcn.005771e0
mov ecx, dword [ebp - 0x78]
push 0
push 1
call fcn.0043d720
mov ecx, dword [esi + 4]
mov ebx, dword [esi + 0xc]
add ecx, edi
add ebx, edi
call fcn.005dc190
push eax
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.005dc190
mov edx, str.Local_AppData
mov ecx, eax
call fcn.0059c9b0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.MicrosoftWindowsUsrClass.dat
lea ecx, [ebp - 0x28]
call fcn.005da780
lea ecx, [ebp - 0x28]
call fcn.005dc190
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4355d7
mov ecx, dword [esi + 0xc]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
add ecx, edi
push str._Classes
call fcn.005dc190
push eax
push str.HKU_
lea ecx, [ebp - 0x4c]
call fcn.005dc200
mov ecx, dword [esi + 0xc]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
add ecx, edi
push str._Classes.dat
call fcn.005dc190
push eax
lea ecx, [ebp - 0x40]
call fcn.005dc190
push eax
lea ecx, [ebp - 0x1c]
call fcn.005dc200
mov ebx, dword [ebp - 0x78]
mov ecx, ebx
push 0
push 1
call fcn.0043d720
push 2
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push eax
lea ecx, [ebp - 0x4c]
call fcn.005dc190
push eax
lea ecx, [ebx + 0x1290]
call fcn.0054c790
cmp eax, 1
jne 0x4355da
lea ecx, [ebp - 0x1c]
call fcn.005dc190
mov ecx, eax
call fcn.005e0e70
mov ecx, edx
mov dword [ebp - 0x74], eax
or eax, ecx
mov dword [ebp - 0x70], ecx
je 0x4355da
lea ecx, [ebp - 0x28]
call fcn.005dc190
mov ecx, eax
call fcn.005e0e70
sub eax, dword [ebp - 0x74]
push 0
sbb edx, dword [ebp - 0x70]
push 0x64
push edx
push eax
call fcn.0042fc20
push dword [ebp - 0x70]
push dword [ebp - 0x74]
push edx
push eax
call fcn.0042fd90
test edx, edx
jg 0x435534
jl 0x43551f
cmp eax, 6
jae 0x435534
push 2
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push eax
call fcn.005771e0
jmp 0x4355da
push 6
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [esi + 0xc]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
add ecx, edi
push str._Classes.dat
call fcn.005dc190
push eax
lea ecx, [ebp - 0x34]
call fcn.005dc190
push eax
lea ecx, [ebp - 0x58]
call fcn.005dc200
lea ecx, [ebp - 0x58]
call fcn.005dc190
push eax
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push eax
push 4
lea ecx, [ebp - 0x4c]
call fcn.005dad50
mov ecx, eax
call fcn.005dc190
push eax
push SHDefExtractIconW
call dword [sym.imp.ADVAPI32.dll_RegReplaceKeyW]
test eax, eax
jne 0x4355ba
inc dword [ebp - 0x6c]
mov ecx, ebx
push eax
push 1
call fcn.0043d720
jmp 0x4355da
push 2
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push eax
call fcn.005771e0
push 0
push 1
mov ecx, ebx
call fcn.0043d720
jmp 0x4355da
mov ebx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x7c]
add edi, 0xc
inc eax
mov dword [ebp - 0x7c], eax
cmp eax, dword [esi]
jb 0x435205
mov edi, dword [ebp - 0x6c]
push 2
lea ecx, [ebp - 0x40]
call fcn.005dc190
push eax
call fcn.005771e0
push 2
lea ecx, [ebp - 0x34]
call fcn.005dc190
push eax
call fcn.005771e0
mov ecx, 0x628f64
test edi, edi
mov eax, 0x628f5c
cmove eax, ecx
lea ecx, [ebp - 0x4c]
push eax
push str._hives_defragged._Reboot_needed:
push edi
call fcn.005db320
mov ecx, eax
call fcn.005dc190
push eax
push str.Defragment_the_registry:
mov ecx, ebx
call fcn.0045a700
mov ecx, dword [ebp - 0x80]
test ecx, ecx
je 0x435651
xor eax, eax
test edi, edi
setg al
mov dword [ecx], eax
push ecx
mov ecx, esi
call fcn.00402a20
lea ecx, [ebp - 0x4c]
call fcn.005dc430
lea ecx, [ebp - 0x58]
call fcn.005dc430
lea ecx, [ebp - 0x1c]
call fcn.005dc430
lea ecx, [ebp - 0x28]
call fcn.005dc430
lea ecx, [ebp - 0x64]
call fcn.005dc430
lea ecx, [ebp - 0x34]
call fcn.005dc430
lea ecx, [ebp - 0x40]
call fcn.005dc430
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret 8