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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4afd63
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x4e52d0]
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 - 0x438], edi
jne 0x44024e
push 0x1a0
call fcn.004917be
add esp, 4
mov dword [ebp - 0x430], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x440243
push 1
push eax
call fcn.00422b70
jmp 0x440245
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [edi], eax
mov eax, dword [edi]
lea esi, [ebp - 0x428]
call fcn.00423e60
mov esi, 1
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x428]
cmp dword [eax - 0xc], 0
je 0x440299
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 0x440292
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x4405c5
cmp dword [edi], 0
jne 0x4402ca
push 0x1a0
call fcn.004917be
add esp, 4
mov dword [ebp - 0x430], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x4402c2
push esi
push eax
call fcn.00422b70
jmp 0x4402c4
xor eax, eax
mov byte [ebp - 4], 1
mov dword [edi], eax
mov eax, dword [edi]
xor ecx, ecx
push 0x206
lea edx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], cx
push edx
cmp dword [eax + 0x14], ecx
je 0x44046d
call fcn.004950a0
add esp, 0xc
lea eax, [ebp - 0x42c]
push eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x424]
push edx
push 0x4bb300
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsStormPlayer.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x42c], 0x102
mov dword [ebp - 0x424], esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4404d6
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x218]
call fcn.00402120
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x424]
cmp dword [eax - 4], esi
jle 0x44036c
mov ecx, dword [eax - 0xc]
push ecx
lea edx, [ebp - 0x424]
push edx
call fcn.004021c0
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
mov eax, dword [ebp - 0x424]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004923b5
add esp, 8
test eax, eax
js 0x4406e0
mov ecx, dword [ebp - 0x424]
cmp eax, dword [ecx - 8]
jg 0x4406e0
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x424]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4403eb
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 - 0x428]
call fcn.004020e0
jmp 0x440445
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x41e]
push ecx
mov word [ebp - 0x420], ax
call fcn.004950a0
add esp, 0xc
push esi
push 0x26
lea edx, [ebp - 0x420]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea edx, [ebp - 0x420]
lea edi, [ebp - 0x428]
call fcn.004020e0
mov edx, 0x4bd17c
mov eax, edi
call fcn.0040a4e0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x424]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4404d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4404d6
call fcn.004950a0
add esp, 0xc
push esi
push 0x26
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4404a0
sub eax, edx
lea edx, [ebp - 0x218]
sar eax, 1
push edx
lea ecx, [ebp - 0x428]
push ecx
mov ebx, eax
call fcn.00402030
push 0x14
push 0x4bd17c
lea ebx, [ebp - 0x428]
call fcn.00409220
mov ebx, dword [ebp - 0x428]
add ebx, 0xfffffff0
mov eax, ebx
mov dword [ebp - 0x424], 0
call fcn.004046f0
lea esi, [eax + 0x10]
mov dword [ebp - 0x42c], esi
mov byte [ebp - 4], 4
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x440527
mov eax, 0x104
lea ecx, [ebp - 0x42c]
call fcn.00402280
mov esi, dword [ebp - 0x42c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004923b5
add esp, 8
test eax, eax
js 0x4406e0
cmp eax, dword [esi - 8]
jg 0x4406e0
mov dword [esi - 0xc], eax
xor edx, edx
mov word [esi + eax*2], dx
lea eax, [ebp - 0x424]
push eax
push ecx
add esi, 0xfffffff0
mov dword [ebp - 0x430], esp
mov eax, esi
mov edi, esp
mov dword [ebp - 0x430], esi
call fcn.004046f0
add eax, 0x10
mov dword [edi], eax
call fcn.00422250
add esp, 8
test eax, eax
jne 0x4405e1
mov byte [ebp - 4], 1
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4405a3
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4405c3
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
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.004912db
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x424], 0x64
jge 0x4406bb
lea ecx, [ebp - 0x424]
push ecx
mov ecx, 0x4bb300
call fcn.00402120
lea edx, [ebp - 0x424]
push edx
mov byte [ebp - 4], 5
call fcn.004222f0
add esp, 4
test eax, eax
jne 0x440645
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x424]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x440586
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x440586
lea ecx, [ebp - 0x424]
push ecx
lea edx, [ebp - 0x434]
push edx
mov ebx, 0x4bd17c
call fcn.00404520
add esp, 8
lea edi, [ebp - 0x428]
mov byte [ebp - 4], 6
call fcn.00404600
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x434]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x440695
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x424]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4406bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x428]
push ecx
mov eax, 1
lea ecx, [ebp - 0x434]
call fcn.00405450
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
cmp ecx, 1
jne 0x4406f4
test ecx, ecx
jns 0x4406ea
push 0x80070057
call fcn.00402bc0
cmp word [eax], 0x5c
jne 0x4406f4
xor bl, bl
jmp 0x4406f6
mov bl, 1
mov eax, dword [ebp - 0x434]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x440718
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x440729
push 0x5c
lea edi, [ebp - 0x428]
call fcn.00420aa0
mov esi, dword [ebp - 0x438]
call fcn.00440160
mov esi, dword [ebp - 0x428]
mov edx, esi
call fcn.00423db0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x430]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x440764
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 0x440787
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x4405c5