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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50bde8
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 0x493973
push 0x1b8
call fcn.004e58e5
add esp, 4
test eax, eax
jne 0x493955
xor al, al
mov byte [ebp - 0x222], al
push 0x5371cc
lea eax, [ebp - 0x222]
push eax
call fcn.004eab2f
mov dword [ebp - 0x22c], eax
push 1
push eax
mov dword [ebp - 4], 0
call fcn.00473910
mov dword [ebp - 4], 0xffffffff
mov dword [edi], eax
mov eax, dword [edi]
lea esi, [ebp - 0x21c]
call fcn.00474f00
mov esi, 1
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x21c]
cmp dword [eax - 0xc], 0
je 0x4939be
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 0x4939b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x493c05
cmp dword [edi], 0
jne 0x493a04
push 0x1b8
call fcn.004e58e5
add esp, 4
test eax, eax
jne 0x4939ed
push 0x5371cc
lea ecx, [ebp - 0x221]
xor al, al
push ecx
mov byte [ebp - 0x221], al
call fcn.004eab2f
mov dword [ebp - 0x22c], eax
push esi
push eax
mov byte [ebp - 4], 2
call fcn.00473910
mov byte [ebp - 4], 1
mov dword [edi], eax
mov edi, dword [edi]
cmp dword [edi + 0x14], 0
push 0x206
push 0
je 0x493a9e
lea eax, [ebp - 0x216]
xor edx, edx
push eax
mov word [ebp - 0x218], dx
call fcn.004e9a40
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 0x493b16
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 0x493b16
lea ecx, [ebp - 0x216]
xor eax, eax
push ecx
mov word [ebp - 0x218], ax
call fcn.004e9a40
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 0x493ae0
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.0045b460
mov edi, dword [ebp - 0x21c]
add edi, 0xfffffff0
mov eax, edi
mov dword [ebp - 0x220], 0
call fcn.0045d030
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 0x493b67
mov eax, 0x104
lea ecx, [ebp - 0x228]
call fcn.00459770
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.004e7800
add esp, 8
test eax, eax
js 0x493d5d
cmp eax, dword [esi - 8]
jg 0x493d5d
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.0045d030
add eax, 0x10
mov dword [ebx], eax
call fcn.004734a0
add esp, 8
test eax, eax
jne 0x493c21
mov byte [ebp - 4], 1
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x493be3
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 0x493c03
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.004e4d50
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x220], 0x64
jge 0x493d38
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.00473540
add esp, 4
test eax, eax
jne 0x493cc2
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 0x493c7c
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 0x493c99
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 0x493c03
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
jmp 0x493c03
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x230]
push edx
mov ebx, 0x51ed5c
call fcn.0045ce60
add esp, 8
lea edi, [ebp - 0x21c]
mov byte [ebp - 4], 5
call fcn.0045cf40
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 0x493d12
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 0x493d38
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.0045d920
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
cmp ecx, 1
jne 0x493d71
test ecx, ecx
jns 0x493d67
push 0x80070057
call fcn.0045a4a0
cmp word [eax], 0x5c
jne 0x493d71
xor bl, bl
jmp 0x493d73
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 0x493d95
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x493da6
push 0x5c
lea edi, [ebp - 0x21c]
call fcn.0046fed0
mov esi, dword [ebp - 0x234]
call fcn.00493870
mov esi, dword [ebp - 0x21c]
mov edx, esi
call fcn.00474e50
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 0x493de1
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 0x493e04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x493c05