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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4edf1c
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x521390]
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 esi, ecx
lea eax, [ebp - 0x220]
push eax
mov ecx, 0x4f5b64
mov dword [ebp - 0x22c], esi
call fcn.0045ab70
xor ebx, ebx
push 0x206
lea edx, [ebp - 0x216]
mov dword [ebp - 4], ebx
xor ecx, ecx
push ebx
push edx
mov dword [ebp - 0x228], ebx
mov word [ebp - 0x218], cx
call fcn.004cfd40
add esp, 0xc
cmp dword [esi + 4], ebx
je 0x46d9dd
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x224]
push edx
push 0x4f5b64
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsStormPlayer.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x21c], 0x102
mov dword [ebp - 0x224], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp eax, ebx
jne 0x46da6b
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x218]
call fcn.0045ab70
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x21c]
push 0x5c
push ecx
call fcn.004ce618
add esp, 8
cmp eax, ebx
jne 0x46d94f
or eax, 0xffffffff
jmp 0x46d957
sub eax, dword [ebp - 0x21c]
sar eax, 1
inc eax
lea ecx, [ebp - 0x224]
lea edx, [ebp - 0x21c]
call fcn.0045ccb0
lea edi, [ebp - 0x21c]
mov byte [ebp - 4], 2
call fcn.0045c2b0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46d99e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x21c]
lea edi, [ebp - 0x220]
call fcn.0045c2b0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46da6b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x46da6b
push 1
push 0x26
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
jmp 0x46da00
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x46da00
sub eax, edx
lea ecx, [ebp - 0x218]
sar eax, 1
push ecx
lea edx, [ebp - 0x220]
push edx
mov ebx, eax
call fcn.0045aa80
lea eax, [ebp - 0x220]
lea esi, [ebp - 0x224]
call fcn.0046dbe0
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46da57
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x14
push 0x4fab20
lea ebx, [ebp - 0x220]
call fcn.0045a6d0
xor ebx, ebx
mov eax, dword [ebp - 0x220]
lea ecx, [ebp - 0x228]
push 1
push ecx
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x224], esp
mov esi, esp
call fcn.0045c3c0
add eax, 0x10
mov dword [esi], eax
call fcn.00492590
cmp eax, ebx
je 0x46db46
cmp dword [ebp - 0x228], 0x64
jge 0x46db8d
lea edx, [ebp - 0x21c]
push edx
mov ecx, 0x4f5b64
call fcn.0045ab70
lea eax, [ebp - 0x21c]
push eax
mov byte [ebp - 4], 3
call fcn.0046dc50
test eax, eax
je 0x46db21
mov edx, 0x4fab4c
lea eax, [ebp - 0x21c]
call fcn.0045a690
mov edi, dword [ebp - 0x22c]
add edi, 0xc
lea eax, [ebp - 0x21c]
call fcn.0045c2b0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46dba1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x46dba1
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46db46
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46db6f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.004cbf11
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x22c]
add edi, 0xc
lea eax, [ebp - 0x220]
call fcn.0045c2b0
mov dword [ebp - 4], 0xffffffff
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 0x46dbca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x46db71