Function at 0x41fc50
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 0x4af8d2
mov eax, dword fs:[0]
push eax
sub esp, 0x420
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 esi, ecx
xor ebx, ebx
cmp dword [esi + 0x230], ebx
je 0x42000f
lea eax, [ebp - 0x424]
push eax
mov ecx, 0x4bb300
call fcn.00402120
mov dword [ebp - 4], ebx
mov edi, dword [0x4eb380]
cmp dword [edi + 0x9c], ebx
jne 0x41fcdf
push 0x1a0
call fcn.004917be
add esp, 4
mov dword [ebp - 0x42c], eax
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x41fcd4
push ebx
push eax
call fcn.00422b70
jmp 0x41fcd6
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 0x41ff07
lea edx, [ebp - 0x216]
xor ecx, ecx
push edx
mov word [ebp - 0x218], cx
call fcn.004950a0
add esp, 0xc
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x42c]
push edx
push 0x4bb300
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsStormPlayer.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 0x41feac
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x218]
call fcn.00402120
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x428]
cmp dword [eax - 4], edi
jle 0x41fd8a
mov ecx, dword [eax - 0xc]
push ecx
lea edx, [ebp - 0x428]
push edx
call fcn.004021c0
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.004923b5
add esp, 8
cmp eax, ebx
jl 0x41fea2
mov ecx, dword [ebp - 0x428]
cmp eax, dword [ecx - 8]
jg 0x41fea2
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 0x41fe1b
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.004020e0
push 0x4bd158
push str.Baofeng
mov eax, edi
push eax
call fcn.00420520
jmp 0x41fe74
push 0x206
lea edx, [ebp - 0x41e]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x420], cx
call fcn.004950a0
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.004020e0
mov edx, 0x4bd17c
mov eax, edi
call fcn.0040a4e0
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 0x41ff7f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41ff7f
push 0x80070057
call fcn.00402bc0
push 0x206
lea edx, [ebp - 0x41e]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x420], cx
call fcn.004950a0
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.004020e0
mov edx, 0x4bd17c
mov eax, edi
call fcn.0040a4e0
jmp 0x41ff7f
lea eax, [ebp - 0x216]
xor edx, edx
push eax
mov word [ebp - 0x218], dx
call fcn.004950a0
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 0x41ff47
sub eax, edx
lea ecx, [ebp - 0x218]
sar eax, 1
push ecx
lea edx, [ebp - 0x424]
push edx
mov ebx, eax
call fcn.00402030
push 0x14
push 0x4bd17c
lea ebx, [ebp - 0x424]
call fcn.00409220
xor ebx, ebx
mov eax, dword [esi + 0x230]
mov ecx, dword [ebp - 0x424]
mov edx, dword [eax + 0x78]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov esi, dword [0x4eb380]
mov edi, dword [ebp - 0x424]
cmp dword [esi + 0x9c], ebx
jne 0x41ffd9
push 0x1a0
call fcn.004917be
add esp, 4
mov dword [ebp - 0x42c], eax
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x41ffce
push ebx
push eax
call fcn.00422b70
jmp 0x41ffd0
xor eax, eax
mov byte [ebp - 4], bl
mov dword [esi + 0x9c], eax
mov eax, dword [esi + 0x9c]
mov edx, edi
call fcn.00423db0
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 0x42000f
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.004912db
mov esp, ebp
pop ebp
ret