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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46aa72
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x4977b8]
xor eax, esp
mov dword [esp + 0x2b0], eax
push ebx
push esi
push edi
mov eax, dword [0x4977b8]
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.0041dfba
xor esi, esi
mov dword [esp + 0x2d0], esi
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 esi
push esi
push ecx
lea ecx, [esp + 0x20]
add edx, 0x80000001
call fcn.00427fcb
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.00408d80
add esp, 0x10
push esi
lea eax, [esp + 0x28]
push eax
call fcn.0041e002
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.0040c63b
test eax, eax
jne 0x41e37c
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.00408d80
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.00409522
jmp 0x41e2df
xor edi, edi
push edi
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2d8], 1
call fcn.00409522
mov eax, dword [ebx + 0x108]
mov dword [esp + 0x10], edi
mov esi, dword [eax]
cmp esi, eax
je 0x41e53d
lea eax, [esi + 8]
push eax
lea ecx, [esp + 0x58]
call fcn.00407ca2
lea edx, [esp + 0x54]
lea ecx, [esp + 0x84]
mov byte [esp + 0x2d0], 3
call fcn.0042a7a8
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.0041a3e7
push edi
mov edx, eax
lea ecx, [esp + 0x70]
mov byte [esp + 0x2d4], 5
call fcn.0040a9b4
pop ecx
xor edi, edi
push edi
push 1
lea ecx, [esp + 0xa4]
call fcn.00409522
push edi
push 1
lea ecx, [esp + 0x8c]
mov byte [esp + 0x2d8], 8
call fcn.00409522
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 0x41e512
test al, 0x10
je 0x41e512
mov edi, dword [esp + 0x10]
push edi
lea eax, [esp + 0x28]
push eax
call fcn.0041e002
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.00408d80
add esp, 0x10
lea edx, [esp + 0x54]
lea ecx, [esp + 0x84]
call fcn.0042a7a8
mov ecx, eax
mov byte [esp + 0x2d0], 0xa
cmp dword [ecx + 0x14], 8
jb 0x41e4be
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.0040c51b
mov edx, str.SetKeyFailed
mov ecx, eax
call fcn.00427e28
push 0
push 1
lea ecx, [esp + 0x8c]
call fcn.00409522
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.00409522
push edi
push 1
lea ecx, [esp + 0x74]
call fcn.00409522
lea ecx, [esp + 0x54]
mov byte [esp + 0x2d0], 1
call fcn.00407d52
mov esi, dword [esi]
cmp esi, dword [ebx + 0x108]
jne 0x41e3a6
cmp dword [esp + 0x14], 0
je 0x41e552
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.00409522
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.0044a9a4
mov esp, ebp
pop ebp
ret