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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b858
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 0x4932d3
push 0x1b8
call fcn.004e53c6
add esp, 4
test eax, eax
jne 0x4932b5
xor al, al
mov byte [ebp - 0x222], al
push 0x5370dc
lea eax, [ebp - 0x222]
push eax
call fcn.004ea60f
mov dword [ebp - 0x22c], eax
push 1
push eax
mov dword [ebp - 4], 0
call fcn.00473660
mov dword [ebp - 4], 0xffffffff
mov dword [edi], eax
mov eax, dword [edi]
lea esi, [ebp - 0x21c]
call fcn.00474c50
mov esi, 1
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x21c]
cmp dword [eax - 0xc], 0
je 0x49331e
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 0x493317
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x493565
cmp dword [edi], 0
jne 0x493364
push 0x1b8
call fcn.004e53c6
add esp, 4
test eax, eax
jne 0x49334d
push 0x5370dc
lea ecx, [ebp - 0x221]
xor al, al
push ecx
mov byte [ebp - 0x221], al
call fcn.004ea60f
mov dword [ebp - 0x22c], eax
push esi
push eax
mov byte [ebp - 4], 2
call fcn.00473660
mov byte [ebp - 4], 1
mov dword [edi], eax
mov edi, dword [edi]
cmp dword [edi + 0x14], 0
push 0x206
push 0
je 0x4933fe
lea eax, [ebp - 0x216]
xor edx, edx
push eax
mov word [ebp - 0x218], dx
call fcn.004e9520
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 0x493476
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.00459570
jmp 0x493476
lea ecx, [ebp - 0x216]
xor eax, eax
push ecx
mov word [ebp - 0x218], ax
call fcn.004e9520
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 0x493440
sub eax, edx
lea ecx, [ebp - 0x218]
sar eax, 1
push ecx
lea edx, [ebp - 0x21c]
push edx
mov ebx, eax
call fcn.004594c0
push 0x14
push 0x51ed5c
lea ebx, [ebp - 0x21c]
call fcn.0045b400
mov edi, dword [ebp - 0x21c]
add edi, 0xfffffff0
mov eax, edi
mov dword [ebp - 0x220], 0
call fcn.0045cfd0
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 0x4934c7
mov eax, 0x104
lea ecx, [ebp - 0x228]
call fcn.00459710
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.004e72e4
add esp, 8
test eax, eax
js 0x4936bd
cmp eax, dword [esi - 8]
jg 0x4936bd
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.0045cfd0
add eax, 0x10
mov dword [ebx], eax
call fcn.004731f0
add esp, 8
test eax, eax
jne 0x493581
mov byte [ebp - 4], 1
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x493543
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 0x493563
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.004e4840
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x220], 0x64
jge 0x493698
lea eax, [ebp - 0x220]
push eax
mov ecx, 0x51a1b4
call fcn.004595b0
lea ecx, [ebp - 0x220]
push ecx
mov byte [ebp - 4], 4
call fcn.00473290
add esp, 4
test eax, eax
jne 0x493622
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 0x4935dc
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 0x4935f9
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 0x493563
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
jmp 0x493563
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x230]
push edx
mov ebx, 0x51ed5c
call fcn.0045ce00
add esp, 8
lea edi, [ebp - 0x21c]
mov byte [ebp - 4], 5
call fcn.0045cee0
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 0x493672
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 0x493698
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.0045d8c0
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
cmp ecx, 1
jne 0x4936d1
test ecx, ecx
jns 0x4936c7
push 0x80070057
call fcn.0045a440
cmp word [eax], 0x5c
jne 0x4936d1
xor bl, bl
jmp 0x4936d3
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 0x4936f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x493706
push 0x5c
lea edi, [ebp - 0x21c]
call fcn.0046fbf0
mov esi, dword [ebp - 0x234]
call fcn.004931d0
mov esi, dword [ebp - 0x21c]
mov edx, esi
call fcn.00474ba0
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 0x493741
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 0x493764
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x493565