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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48a907
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x4b22c8]
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.00460e20
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 0x41e04a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
push 0x490c08
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 1
call fcn.00407d90
test al, al
jne 0x41debd
push 0x490c08
lea ecx, [ebp - 0x21c]
call fcn.0040d3e0
mov byte [ebp - 4], 2
call fcn.00408700
mov ecx, eax
test ecx, ecx
je 0x41e054
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 0x41df06
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.004424e0
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 0x41df60
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 0x41df81
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 0x41dfa0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x230]
test edi, edi
jne 0x41e006
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 0x41e006
mov eax, dword [ebp - 0x224]
cmp eax, 1
je 0x41dfeb
cmp eax, 2
jne 0x41e006
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x41e030
test al, 1
jne 0x41e006
shr eax, 1
cmp word [ebp + eax*2 - 0x21a], 0
je 0x41e039
xor edi, edi
test esi, esi
je 0x41e013
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.00446191
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 0x41e008
push 0x80004005
call fcn.00407d70
push 0x80004005
call fcn.00407d70
int3