Function at 0x41d930
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x489de7
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x4b12c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00460350
add esp, 0xc
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 4], 0
call fcn.00408700
mov ecx, eax
test ecx, ecx
je 0x41db6a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
push str.45476F8083D74AC28A2DA8ED399737B7
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 1
call fcn.00407d90
test al, al
jne 0x41d9dd
push str.45476F8083D74AC28A2DA8ED399737B7
lea ecx, [ebp - 0x21c]
call fcn.0040d3e0
mov byte [ebp - 4], 2
call fcn.00408700
mov ecx, eax
test ecx, ecx
je 0x41db74
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
push str.YFPjZzCzUlcBlc9vKqAMMD_8NQ6PIq5h4q3LS8RekrjUptV7UMS9Q34wo5F56GkqWjUCHpyx06hsYk2eAeFiku8lAdCfz6r1
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.00407d90
test al, al
jne 0x41da26
push str.YFPjZzCzUlcBlc9vKqAMMD_8NQ6PIq5h4q3LS8RekrjUptV7UMS9Q34wo5F56GkqWjUCHpyx06hsYk2eAeFiku8lAdCfz6r1
lea ecx, [ebp - 0x220]
call fcn.0040d3e0
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00441990
add esp, 0xc
lea ecx, [ebp - 0x230]
push 0x20119
push dword [eax]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004093f0
mov edx, dword [ebp - 0x224]
or esi, 0xffffffff
mov edi, eax
add edx, 0xfffffff0
mov ecx, esi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x41da80
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x220]
mov eax, esi
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41daa1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x21c]
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x41dac0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x230]
test edi, edi
jne 0x41db26
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x208
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x224]
push eax
push 0
push str.UninstallString
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41db26
mov eax, dword [ebp - 0x224]
cmp eax, 1
je 0x41db0b
cmp eax, 2
jne 0x41db26
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x41db50
test al, 1
jne 0x41db26
shr eax, 1
cmp word [ebp + eax*2 - 0x21a], 0
je 0x41db59
xor edi, edi
test esi, esi
je 0x41db33
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00445670
mov esp, ebp
pop ebp
ret
xor eax, eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, eax
jmp 0x41db28
push 0x80004005
call fcn.00407d70
push 0x80004005
call fcn.00407d70
int3