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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46911e
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x4947b8]
xor eax, esp
mov dword [esp + 0x2b0], eax
push ebx
push esi
push edi
mov eax, dword [0x4947b8]
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.0041d394
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.00426fc0
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 + 0x160]
push str.Bootstrapper::storePrevVersions_path___S__perUser___d
push edi
call fcn.00408e53
add esp, 0x10
push esi
lea eax, [esp + 0x28]
push eax
call fcn.0041d3dc
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.0040c725
test eax, eax
jne 0x41d756
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.00408e53
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.004095c3
jmp 0x41d6b9
xor edi, edi
push edi
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2d8], 1
call fcn.004095c3
mov eax, dword [ebx + 0x120]
mov dword [esp + 0x10], edi
mov esi, dword [eax]
cmp esi, eax
je 0x41d917
lea eax, [esi + 8]
push eax
lea ecx, [esp + 0x58]
call fcn.00407d75
lea edx, [esp + 0x54]
lea ecx, [esp + 0x84]
mov byte [esp + 0x2d0], 3
call fcn.004297c4
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.004198a0
push edi
mov edx, eax
lea ecx, [esp + 0x70]
mov byte [esp + 0x2d4], 5
call fcn.0040aa55
pop ecx
xor edi, edi
push edi
push 1
lea ecx, [esp + 0xa4]
call fcn.004095c3
push edi
push 1
lea ecx, [esp + 0x8c]
mov byte [esp + 0x2d8], 8
call fcn.004095c3
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 0x41d8ec
test al, 0x10
je 0x41d8ec
mov edi, dword [esp + 0x10]
push edi
lea eax, [esp + 0x28]
push eax
call fcn.0041d3dc
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 + 0x160]
push str.Bootstrapper::storePrevVersions_storing_key___S__value___s
push eax
call fcn.00408e53
add esp, 0x10
lea edx, [esp + 0x54]
lea ecx, [esp + 0x84]
call fcn.004297c4
mov ecx, eax
mov byte [esp + 0x2d0], 0xa
cmp dword [ecx + 0x14], 8
jb 0x41d898
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.0040c605
mov edx, str.SetKeyFailed
mov ecx, eax
call fcn.00426e1d
push 0
push 1
lea ecx, [esp + 0x8c]
call fcn.004095c3
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.004095c3
push edi
push 1
lea ecx, [esp + 0x74]
call fcn.004095c3
lea ecx, [esp + 0x54]
mov byte [esp + 0x2d0], 1
call fcn.00407e25
mov esi, dword [esi]
cmp esi, dword [ebx + 0x120]
jne 0x41d780
cmp dword [esp + 0x14], 0
je 0x41d92c
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.004095c3
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.004492e4
mov esp, ebp
pop ebp
ret