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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50bc98
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 0x493683
push 0x1b8
call fcn.004e5765
add esp, 4
test eax, eax
jne 0x493665
xor al, al
mov byte [ebp - 0x222], al
push 0x537094
lea eax, [ebp - 0x222]
push eax
call fcn.004ea9af
mov dword [ebp - 0x22c], eax
push 1
push eax
mov dword [ebp - 4], 0
call fcn.004739d0
mov dword [ebp - 4], 0xffffffff
mov dword [edi], eax
mov eax, dword [edi]
lea esi, [ebp - 0x21c]
call fcn.00474fd0
mov esi, 1
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x21c]
cmp dword [eax - 0xc], 0
je 0x4936ce
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 0x4936c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x493915
cmp dword [edi], 0
jne 0x493714
push 0x1b8
call fcn.004e5765
add esp, 4
test eax, eax
jne 0x4936fd
push 0x537094
lea ecx, [ebp - 0x221]
xor al, al
push ecx
mov byte [ebp - 0x221], al
call fcn.004ea9af
mov dword [ebp - 0x22c], eax
push esi
push eax
mov byte [ebp - 4], 2
call fcn.004739d0
mov byte [ebp - 4], 1
mov dword [edi], eax
mov edi, dword [edi]
cmp dword [edi + 0x14], 0
push 0x206
push 0
je 0x4937ae
lea eax, [ebp - 0x216]
xor edx, edx
push eax
mov word [ebp - 0x218], dx
call fcn.004e98c0
add esp, 0xc
lea ecx, [ebp - 0x228]
push ecx
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x220]
push eax
push 0x51a1b4
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 0x493826
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.00459590
jmp 0x493826
lea ecx, [ebp - 0x216]
xor eax, eax
push ecx
mov word [ebp - 0x218], ax
call fcn.004e98c0
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 0x4937f0
sub eax, edx
lea ecx, [ebp - 0x218]
sar eax, 1
push ecx
lea edx, [ebp - 0x21c]
push edx
mov ebx, eax
call fcn.004594e0
push 0x14
push 0x51ed14
lea ebx, [ebp - 0x21c]
call fcn.0045b440
mov edi, dword [ebp - 0x21c]
add edi, 0xfffffff0
mov eax, edi
mov dword [ebp - 0x220], 0
call fcn.0045d010
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 0x493877
mov eax, 0x104
lea ecx, [ebp - 0x228]
call fcn.00459740
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.004e7680
add esp, 8
test eax, eax
js 0x493a6d
cmp eax, dword [esi - 8]
jg 0x493a6d
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.0045d010
add eax, 0x10
mov dword [ebx], eax
call fcn.00473560
add esp, 8
test eax, eax
jne 0x493931
mov byte [ebp - 4], 1
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4938f3
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 0x493913
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.004e4be0
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x220], 0x64
jge 0x493a48
lea eax, [ebp - 0x220]
push eax
mov ecx, 0x51a1b4
call fcn.004595d0
lea ecx, [ebp - 0x220]
push ecx
mov byte [ebp - 4], 4
call fcn.00473600
add esp, 4
test eax, eax
jne 0x4939d2
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 0x49398c
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 0x4939a9
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 0x493913
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
jmp 0x493913
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x230]
push edx
mov ebx, 0x51ed14
call fcn.0045ce40
add esp, 8
lea edi, [ebp - 0x21c]
mov byte [ebp - 4], 5
call fcn.0045cf20
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 0x493a22
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 0x493a48
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.0045d900
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
cmp ecx, 1
jne 0x493a81
test ecx, ecx
jns 0x493a77
push 0x80070057
call fcn.0045a480
cmp word [eax], 0x5c
jne 0x493a81
xor bl, bl
jmp 0x493a83
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 0x493aa5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x493ab6
push 0x5c
lea edi, [ebp - 0x21c]
call fcn.0046fdb0
mov esi, dword [ebp - 0x234]
call fcn.00493580
mov esi, dword [ebp - 0x21c]
mov edx, esi
call fcn.00474f20
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 0x493af1
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 0x493b14
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x493915