Function at 0x42a79f
Capabilities:
Check if file exists
Delete registry value
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44621b
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x467034]
xor eax, esp
mov dword [esp + 0x2b0], eax
push ebx
push esi
push edi
mov eax, dword [0x467034]
xor eax, esp
push eax
lea eax, [esp + 0x2c8]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [esp + 0x3c]
push eax
call fcn.0042a51b
and dword [esp + 0x2d0], 0
cmp dword [esp + 0x50], 8
mov al, byte [ebx + 0x4d]
lea ecx, [esp + 0x3c]
cmovae ecx, dword [esp + 0x3c]
xor edx, edx
test al, al
sete dl
push ecx
push 0
push ecx
lea ecx, [esp + 0x20]
add edx, 0x80000001
call fcn.00432fe5
add esp, 0xc
mov byte [esp + 0x2d0], 1
movzx eax, byte [ebx + 0x4d]
cmp dword [esp + 0x50], 8
push eax
lea ecx, [esp + 0x40]
cmovae ecx, dword [esp + 0x40]
push ecx
lea edi, [ebx + 0x150]
push str.Bootstrapper::storePrevVersions_path___S__perUser___d
push edi
call fcn.00402357
add esp, 0x10
xor esi, esi
push esi
lea eax, [esp + 0x28]
push eax
call fcn.0042a563
mov byte [esp + 0x2d0], 2
cmp dword [esp + 0x38], 8
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0xb8]
lea eax, [esp + 0x28]
cmovae eax, dword [esp + 0x28]
push ecx
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], 0x104
call fcn.0040e121
test eax, eax
jne 0x42a8f0
cmp dword [esp + 0x38], 8
lea ecx, [esp + 0xb4]
push ecx
lea eax, [esp + 0x28]
cmovae eax, dword [esp + 0x28]
push eax
push str.Bootstrapper::storePrevVersions_deleting_key___S__value___S
push edi
call fcn.00402357
add esp, 0x10
cmp dword [esp + 0x38], 8
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
push eax
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0
push 1
lea ecx, [esp + 0x2c]
inc esi
mov byte [esp + 0x2d8], 1
call fcn.0040253d
jmp 0x42a853
xor edi, edi
push edi
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2d8], 1
call fcn.0040253d
mov eax, dword [ebx + 0x108]
mov dword [esp + 0x10], edi
mov esi, dword [eax]
cmp esi, eax
je 0x42aab1
lea eax, [esi + 8]
push eax
lea ecx, [esp + 0x58]
call fcn.00403fe0
lea edx, [esp + 0x54]
lea ecx, [esp + 0x84]
mov byte [esp + 0x2d0], 3
call fcn.0040f191
mov edi, eax
mov byte [esp + 0x2d0], 4
mov cl, byte [ebx + 0x4d]
mov byte [esp + 0x20], cl
push dword [esp + 0x20]
lea eax, [esp + 0xa0]
push eax
call fcn.004266f4
push edi
mov edx, eax
lea ecx, [esp + 0x70]
mov byte [esp + 0x2d4], 5
call fcn.0040c9af
pop ecx
xor edi, edi
push edi
push 1
lea ecx, [esp + 0xa4]
call fcn.0040253d
push edi
push 1
lea ecx, [esp + 0x8c]
mov byte [esp + 0x2d8], 8
call fcn.0040253d
cmp dword [esp + 0x80], 8
lea eax, [esp + 0x6c]
cmovae eax, dword [esp + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42aa86
test al, 0x10
je 0x42aa86
mov edi, dword [esp + 0x10]
push edi
lea eax, [esp + 0x28]
push eax
call fcn.0042a563
mov byte [esp + 0x2d0], 9
cmp dword [esp + 0x68], 0x10
lea ecx, [esp + 0x54]
cmovae ecx, dword [esp + 0x54]
cmp dword [esp + 0x38], 8
push ecx
lea eax, [esp + 0x28]
cmovae eax, dword [esp + 0x28]
push eax
lea eax, [ebx + 0x150]
push str.Bootstrapper::storePrevVersions_storing_key___S__value___s
push eax
call fcn.00402357
add esp, 0x10
lea edx, [esp + 0x54]
lea ecx, [esp + 0x84]
call fcn.0040f191
mov ecx, eax
mov byte [esp + 0x2d0], 0xa
cmp dword [ecx + 0x14], 8
jb 0x42aa32
mov ecx, dword [ecx]
cmp dword [esp + 0x38], 8
push 1
lea eax, [esp + 0x28]
cmovae eax, dword [esp + 0x28]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0040e001
mov edx, str.SetKeyFailed
mov ecx, eax
call fcn.00432e2b
push 0
push 1
lea ecx, [esp + 0x8c]
call fcn.0040253d
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
inc edi
mov dword [esp + 0x10], edi
xor edi, edi
push edi
push 1
lea ecx, [esp + 0x2c]
call fcn.0040253d
push edi
push 1
lea ecx, [esp + 0x74]
call fcn.0040253d
lea ecx, [esp + 0x54]
mov byte [esp + 0x2d0], 1
call fcn.00402286
mov esi, dword [esi]
cmp esi, dword [ebx + 0x108]
jne 0x42a91a
cmp dword [esp + 0x14], 0
je 0x42aac6
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], edi
push edi
push 1
lea ecx, [esp + 0x44]
mov dword [esp + 0x20], edi
call fcn.0040253d
mov ecx, dword [esp + 0x2c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2b0]
xor ecx, esp
call fcn.0043ca4a
mov esp, ebp
pop ebp
ret