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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ecbe8
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x58bd90]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x59684c], 0
mov esi, ecx
mov dword [ebp - 0x23c], esi
jne 0x49ea52
call fcn.0049e1b0
cmp eax, 1
je 0x49eb21
cmp byte [0x58db08], 0
je 0x49ea4b
mov edi, dword [sym.imp.SHLWAPI.dll_SHRegGetPathW]
push 0
lea eax, [ebp - 0x218]
push eax
push 0x52fcec
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsMediaInfo.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [0x58db08], 0
call edi
test eax, eax
je 0x49ea23
push 0
lea ecx, [ebp - 0x218]
push ecx
push str.DisplayIcon
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallMediaInfo
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x49ea4b
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
call fcn.0049e1b0
cmp eax, 1
je 0x49eb21
xor eax, eax
jmp 0x49ed19
push esi
lea ecx, [ebp - 0x238]
call fcn.00401830
mov dword [ebp - 4], 0
lea edi, [ebp - 0x238]
call fcn.00405820
xor edi, edi
cmp dword [0x58df60], edi
jle 0x49eaf8
mov ebx, dword [ebp - 0x238]
mov esi, dword [0x58df5c]
test edi, edi
js 0x49ecf6
cmp edi, dword [0x58df60]
jge 0x49ecf6
mov eax, dword [esi + edi*4]
xor ecx, ecx
test ebx, ebx
setne cl
test ecx, ecx
je 0x49eb6e
mov eax, dword [eax + 4]
mov ecx, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x49ead7
test dx, dx
je 0x49ead3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x49ead7
add eax, 4
add ecx, 4
test dx, dx
jne 0x49eab1
xor eax, eax
jmp 0x49eadc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x49eb78
inc edi
cmp edi, dword [0x58df60]
jl 0x49ea86
mov esi, dword [ebp - 0x23c]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x238]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49eb21
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49ea4b
push 4
call fcn.00415ec5
mov edi, eax
add esp, 4
mov dword [ebp - 0x238], edi
mov dword [ebp - 4], 3
test edi, edi
je 0x49ebb7
cmp dword [0x59684c], 0
jne 0x49ebab
call fcn.0049e1b0
cmp dword [0x59684c], 0
jne 0x49ebab
mov dword [edi], 0
mov ebx, edi
jmp 0x49ebb9
push 0x80004005
call fcn.004016a0
mov edi, dword [esi + edi*4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x238]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49eba4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
jmp 0x49ed19
call dword [0x596794]
mov dword [edi], eax
mov ebx, edi
jmp 0x49ebb9
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
xor ecx, ecx
mov eax, esi
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49ebe2
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea ecx, [ebp - 0x234]
call fcn.0040dde0
mov dword [ebp - 4], 4
mov eax, dword [ebx]
mov esi, 8
test eax, eax
je 0x49ec1a
cmp dword [0x59684c], 0
jne 0x49ec1e
xor edi, edi
jmp 0x49ec3c
mov ecx, dword [ebp - 0x234]
cmp dword [ebp - 0x220], esi
jae 0x49ec32
lea ecx, [ebp - 0x234]
push ecx
push eax
call dword [0x5967a4]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x220], esi
jb 0x49ec5a
mov edx, dword [ebp - 0x234]
push edx
call fcn.00415ef4
add esp, 4
xor eax, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], ax
test edi, edi
jne 0x49ecb3
mov eax, dword [ebx]
test eax, eax
je 0x49eca6
cmp dword [0x59684c], edi
je 0x49ec90
push eax
call dword [0x5967c0]
mov eax, dword [ebx]
test eax, eax
je 0x49eca6
cmp dword [0x59684c], 0
je 0x49eca6
push eax
call dword [0x59679c]
push ebx
call fcn.00415ef4
add esp, 4
xor eax, eax
jmp 0x49ed19
push esi
call fcn.00415ec5
add esp, 4
mov dword [ebp - 0x238], eax
mov dword [ebp - 4], 5
test eax, eax
je 0x49ecde
push ebx
mov ebx, dword [ebp - 0x23c]
push eax
call fcn.0049e6b0
mov ebx, eax
jmp 0x49ece0
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x58df60]
mov dword [ebp - 0x23c], eax
test eax, eax
jns 0x49ecfb
call fcn.0041d34a
lea edi, [eax + 1]
mov esi, 0x58df58
call fcn.004047b0
mov ecx, dword [0x58df5c]
mov edx, dword [ebp - 0x23c]
mov dword [ecx + edx*4], ebx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045463b
mov esp, ebp
pop ebp
ret