Function at 0x41f990
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 0x4ada82
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x4e42d0]
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
xor ebx, ebx
cmp dword [esi + 0x14c], ebx
je 0x41fd4f
lea eax, [ebp - 0x424]
push eax
mov ecx, 0x4ba358
call fcn.00402b20
mov dword [ebp - 4], ebx
mov edi, dword [0x4ea688]
cmp dword [edi + 0x9c], ebx
jne 0x41fa1f
push 0x1a0
call fcn.0048fbae
add esp, 4
mov dword [ebp - 0x42c], eax
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x41fa14
push ebx
push eax
call fcn.00424e20
jmp 0x41fa16
xor eax, eax
mov byte [ebp - 4], bl
mov dword [edi + 0x9c], eax
mov edi, dword [edi + 0x9c]
push 0x206
push ebx
cmp dword [edi + 0x14], ebx
je 0x41fc47
lea edx, [ebp - 0x216]
xor ecx, ecx
push edx
mov word [ebp - 0x218], cx
call fcn.00493520
add esp, 0xc
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x42c]
push edx
push 0x4ba358
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsStormPlayer9.exe
mov edi, 1
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x428], 0x102
mov dword [ebp - 0x42c], edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp eax, ebx
jne 0x41fbec
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x218]
call fcn.00402b20
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x428]
cmp dword [eax - 4], edi
jle 0x41faca
mov ecx, dword [eax - 0xc]
push ecx
lea edx, [ebp - 0x428]
push edx
call fcn.00402bc0
mov eax, dword [ebp - 0x428]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
mov eax, dword [ebp - 0x428]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004907a5
add esp, 8
cmp eax, ebx
jl 0x41fbe2
mov ecx, dword [ebp - 0x428]
cmp eax, dword [ecx - 8]
jg 0x41fbe2
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x428]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x41fb5b
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 - 0x424]
call fcn.00402ae0
push 0x4bc1c4
push str.BaofengVideo
mov eax, edi
push eax
call fcn.00420590
jmp 0x41fbb4
push 0x206
lea edx, [ebp - 0x41e]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x420], cx
call fcn.00493520
add esp, 0xc
push edi
push 0x26
lea eax, [ebp - 0x420]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x420]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea edx, [ebp - 0x420]
lea edi, [ebp - 0x424]
call fcn.00402ae0
mov edx, 0x4bc1fc
mov eax, edi
call fcn.0040ae90
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x428]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41fcbf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41fcbf
push 0x80070057
call fcn.004035c0
push 0x206
lea edx, [ebp - 0x41e]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x420], cx
call fcn.00493520
add esp, 0xc
push edi
push 0x26
lea eax, [ebp - 0x420]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x420]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea edx, [ebp - 0x420]
lea edi, [ebp - 0x424]
call fcn.00402ae0
mov edx, 0x4bc1fc
mov eax, edi
call fcn.0040ae90
jmp 0x41fcbf
lea eax, [ebp - 0x216]
xor edx, edx
push eax
mov word [ebp - 0x218], dx
call fcn.00493520
add esp, 0xc
push 1
push 0x26
lea ecx, [ebp - 0x218]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41fc87
sub eax, edx
lea ecx, [ebp - 0x218]
sar eax, 1
push ecx
lea edx, [ebp - 0x424]
push edx
mov ebx, eax
call fcn.00402a30
push 0x1a
push 0x4bc1fc
lea ebx, [ebp - 0x424]
call fcn.00409bd0
xor ebx, ebx
mov eax, dword [esi + 0x14c]
mov ecx, dword [ebp - 0x424]
mov edx, dword [eax + 0x78]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov esi, dword [0x4ea688]
mov edi, dword [ebp - 0x424]
cmp dword [esi + 0x9c], ebx
jne 0x41fd19
push 0x1a0
call fcn.0048fbae
add esp, 4
mov dword [ebp - 0x42c], eax
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x41fd0e
push ebx
push eax
call fcn.00424e20
jmp 0x41fd10
xor eax, eax
mov byte [ebp - 4], bl
mov dword [esi + 0x9c], eax
mov eax, dword [esi + 0x9c]
mov edx, edi
call fcn.00426000
mov dword [ebp - 4], 0xffffffff
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 0x41fd4f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call 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.0048f6cb
mov esp, ebp
pop ebp
ret