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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4463b5
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.0042a81a
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.004330a1
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.0042a862
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.0040e5b0
test eax, eax
jne 0x42abef
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 0x42ab52
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 0x42adb0
lea eax, [esi + 8]
push eax
lea ecx, [esp + 0x58]
call fcn.00404037
lea edx, [esp + 0x54]
lea ecx, [esp + 0x84]
mov byte [esp + 0x2d0], 3
call fcn.0040f620
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.00426c17
push edi
mov edx, eax
lea ecx, [esp + 0x70]
mov byte [esp + 0x2d4], 5
call fcn.0040ce3e
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 0x42ad85
test al, 0x10
je 0x42ad85
mov edi, dword [esp + 0x10]
push edi
lea eax, [esp + 0x28]
push eax
call fcn.0042a862
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.0040f620
mov ecx, eax
mov byte [esp + 0x2d0], 0xa
cmp dword [ecx + 0x14], 8
jb 0x42ad31
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.0040e490
mov edx, str.SetKeyFailed
mov ecx, eax
call fcn.00432ee7
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 0x42ac19
cmp dword [esp + 0x14], 0
je 0x42adc5
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.0043cb06
mov esp, ebp
pop ebp
ret