Function at 0x492850
Capabilities:
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50adf8
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x5512c0]
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
mov edi, ecx
cmp dword [edi], 0
mov dword [ebp - 0x234], edi
jne 0x4928d3
push 0x1b8
call fcn.004e4985
add esp, 4
test eax, eax
jne 0x4928b5
xor al, al
mov byte [ebp - 0x222], al
push 0x535d2c
lea eax, [ebp - 0x222]
push eax
call fcn.004e9bcf
mov dword [ebp - 0x22c], eax
push 1
push eax
mov dword [ebp - 4], 0
call fcn.00473420
mov dword [ebp - 4], 0xffffffff
mov dword [edi], eax
mov eax, dword [edi]
lea esi, [ebp - 0x21c]
call fcn.00474a10
mov esi, 1
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x21c]
cmp dword [eax - 0xc], 0
je 0x49291e
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x492917
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x492b65
cmp dword [edi], 0
jne 0x492964
push 0x1b8
call fcn.004e4985
add esp, 4
test eax, eax
jne 0x49294d
push 0x535d2c
lea ecx, [ebp - 0x221]
xor al, al
push ecx
mov byte [ebp - 0x221], al
call fcn.004e9bcf
mov dword [ebp - 0x22c], eax
push esi
push eax
mov byte [ebp - 4], 2
call fcn.00473420
mov byte [ebp - 4], 1
mov dword [edi], eax
mov edi, dword [edi]
cmp dword [edi + 0x14], 0
push 0x206
push 0
je 0x4929fe
lea eax, [ebp - 0x216]
xor edx, edx
push eax
mov word [ebp - 0x218], dx
call fcn.004e8ae0
add esp, 0xc
lea ecx, [ebp - 0x228]
push ecx
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x220]
push eax
push 0x5191b4
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsStormPlayer.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x228], 0x102
mov dword [ebp - 0x220], esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x492a76
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea edx, [ebp - 0x218]
lea edi, [ebp - 0x21c]
call fcn.00459460
jmp 0x492a76
lea ecx, [ebp - 0x216]
xor eax, eax
push ecx
mov word [ebp - 0x218], ax
call fcn.004e8ae0
add esp, 0xc
push esi
push 0x26
lea edx, [ebp - 0x218]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x492a40
sub eax, edx
lea ecx, [ebp - 0x218]
sar eax, 1
push ecx
lea edx, [ebp - 0x21c]
push edx
mov ebx, eax
call fcn.004593b0
push 0x14
push 0x51dc64
lea ebx, [ebp - 0x21c]
call fcn.0045b2d0
mov edi, dword [ebp - 0x21c]
add edi, 0xfffffff0
mov eax, edi
mov dword [ebp - 0x220], 0
call fcn.0045cad0
lea esi, [eax + 0x10]
mov dword [ebp - 0x228], esi
mov byte [ebp - 4], 3
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x492ac7
mov eax, 0x104
lea ecx, [ebp - 0x228]
call fcn.00459610
mov esi, dword [ebp - 0x228]
push esi
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004e68a0
add esp, 8
test eax, eax
js 0x492cbd
cmp eax, dword [esi - 8]
jg 0x492cbd
mov dword [esi - 0xc], eax
xor ecx, ecx
lea edx, [ebp - 0x220]
mov word [esi + eax*2], cx
push edx
push ecx
add esi, 0xfffffff0
mov dword [ebp - 0x22c], esp
mov eax, esi
mov ebx, esp
mov dword [ebp - 0x22c], esi
call fcn.0045cad0
add eax, 0x10
mov dword [ebx], eax
call fcn.00472fb0
add esp, 8
test eax, eax
jne 0x492b81
mov byte [ebp - 4], 1
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x492b43
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x492b63
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
xor eax, eax
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.004e3e00
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x220], 0x64
jge 0x492c98
lea eax, [ebp - 0x220]
push eax
mov ecx, 0x5191b4
call fcn.004594a0
lea ecx, [ebp - 0x220]
push ecx
mov byte [ebp - 4], 4
call fcn.00473050
add esp, 4
test eax, eax
jne 0x492c22
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x492bdc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x492bf9
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x492b63
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
jmp 0x492b63
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x230]
push edx
mov ebx, 0x51dc64
call fcn.0045c900
add esp, 8
lea edi, [ebp - 0x21c]
mov byte [ebp - 4], 5
call fcn.0045c9e0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x230]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x492c72
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x492c98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x21c]
push ecx
mov eax, 1
lea ecx, [ebp - 0x230]
call fcn.0045d3c0
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
cmp ecx, 1
jne 0x492cd1
test ecx, ecx
jns 0x492cc7
push 0x80070057
call fcn.0045a310
cmp word [eax], 0x5c
jne 0x492cd1
xor bl, bl
jmp 0x492cd3
mov bl, 1
mov eax, dword [ebp - 0x230]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x492cf5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x492d06
push 0x5c
lea edi, [ebp - 0x21c]
call fcn.0046f6e0
mov esi, dword [ebp - 0x234]
call fcn.004927d0
mov esi, dword [ebp - 0x21c]
mov edx, esi
call fcn.00474960
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x22c]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x492d41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x492d64
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x492b65