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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b908
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x5522c0]
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 0x493383
push 0x1b8
call fcn.004e5485
add esp, 4
test eax, eax
jne 0x493365
xor al, al
mov byte [ebp - 0x222], al
push 0x53708c
lea eax, [ebp - 0x222]
push eax
call fcn.004ea6cf
mov dword [ebp - 0x22c], eax
push 1
push eax
mov dword [ebp - 4], 0
call fcn.004736e0
mov dword [ebp - 4], 0xffffffff
mov dword [edi], eax
mov eax, dword [edi]
lea esi, [ebp - 0x21c]
call fcn.00474cd0
mov esi, 1
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x21c]
cmp dword [eax - 0xc], 0
je 0x4933ce
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 0x4933c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x493615
cmp dword [edi], 0
jne 0x493414
push 0x1b8
call fcn.004e5485
add esp, 4
test eax, eax
jne 0x4933fd
push 0x53708c
lea ecx, [ebp - 0x221]
xor al, al
push ecx
mov byte [ebp - 0x221], al
call fcn.004ea6cf
mov dword [ebp - 0x22c], eax
push esi
push eax
mov byte [ebp - 4], 2
call fcn.004736e0
mov byte [ebp - 4], 1
mov dword [edi], eax
mov edi, dword [edi]
cmp dword [edi + 0x14], 0
push 0x206
push 0
je 0x4934ae
lea eax, [ebp - 0x216]
xor edx, edx
push eax
mov word [ebp - 0x218], dx
call fcn.004e95e0
add esp, 0xc
lea ecx, [ebp - 0x228]
push ecx
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x220]
push eax
push 0x51d754
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 0x493526
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.004595c0
jmp 0x493526
lea ecx, [ebp - 0x216]
xor eax, eax
push ecx
mov word [ebp - 0x218], ax
call fcn.004e95e0
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 0x4934f0
sub eax, edx
lea ecx, [ebp - 0x218]
sar eax, 1
push ecx
lea edx, [ebp - 0x21c]
push edx
mov ebx, eax
call fcn.00459510
push 0x14
push 0x51ed5c
lea ebx, [ebp - 0x21c]
call fcn.0045b450
mov edi, dword [ebp - 0x21c]
add edi, 0xfffffff0
mov eax, edi
mov dword [ebp - 0x220], 0
call fcn.0045d020
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 0x493577
mov eax, 0x104
lea ecx, [ebp - 0x228]
call fcn.00459760
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.004e73a6
add esp, 8
test eax, eax
js 0x49376d
cmp eax, dword [esi - 8]
jg 0x49376d
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.0045d020
add eax, 0x10
mov dword [ebx], eax
call fcn.00473270
add esp, 8
test eax, eax
jne 0x493631
mov byte [ebp - 4], 1
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4935f3
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 0x493613
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.004e4900
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x220], 0x64
jge 0x493748
lea eax, [ebp - 0x220]
push eax
mov ecx, 0x51d754
call fcn.00459600
lea ecx, [ebp - 0x220]
push ecx
mov byte [ebp - 4], 4
call fcn.00473310
add esp, 4
test eax, eax
jne 0x4936d2
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 0x49368c
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 0x4936a9
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 0x493613
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
jmp 0x493613
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x230]
push edx
mov ebx, 0x51ed5c
call fcn.0045ce50
add esp, 8
lea edi, [ebp - 0x21c]
mov byte [ebp - 4], 5
call fcn.0045cf30
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 0x493722
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 0x493748
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.0045d910
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
cmp ecx, 1
jne 0x493781
test ecx, ecx
jns 0x493777
push 0x80070057
call fcn.0045a490
cmp word [eax], 0x5c
jne 0x493781
xor bl, bl
jmp 0x493783
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 0x4937a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4937b6
push 0x5c
lea edi, [ebp - 0x21c]
call fcn.0046fc70
mov esi, dword [ebp - 0x234]
call fcn.00493280
mov esi, dword [ebp - 0x21c]
mov edx, esi
call fcn.00474c20
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 0x4937f1
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 0x493814
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x493615