Function at 0x4387a0
Capabilities:
Get common file path
Get session user name
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ad1d7
mov eax, dword fs:[0]
push eax
sub esp, 0xc34
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
push 1
push 0x23
lea eax, [ebp - 0xc20]
push eax
push 0
mov esi, ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0xc2c]
push ecx
lea ecx, [ebp - 0xc20]
call fcn.00402120
lea edx, [ebp - 0xc2c]
push edx
lea eax, [ebp - 0xc3c]
push eax
mov ebx, str.BaofengStormPlayerProfilesConfig.ini
mov dword [ebp - 4], 0
call fcn.00404520
lea ecx, [ebp - 0xc2c]
push ecx
lea edx, [ebp - 0xc34]
push edx
mov ebx, str.BaofengStormPlayerProfiles
mov byte [ebp - 4], 1
call fcn.00404520
add esp, 0x10
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xc34]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x438853
mov ecx, dword [ebp - 0xc34]
call fcn.00403510
mov ecx, esi
call fcn.00439580
mov edx, dword [0x4e4f18]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e4f18
call eax
add eax, 0x10
mov dword [ebp - 0xc30], eax
push str.111111CFE08E1D4060FDBFB9A3428606
lea ecx, [ebp - 0xc30]
push ecx
mov ebx, 0x20
mov byte [ebp - 4], 3
call fcn.00402030
mov edx, dword [ebp - 0xc30]
push edx
push str.FILEMD5
mov edi, str.SoftwareBaofengStormPlayerZM
mov ebx, SysReAllocStringLen
call fcn.004048b0
lea eax, [ebp - 0xc2c]
push eax
lea ecx, [ebp - 0xc38]
push ecx
mov ebx, str.BaofengStormPlayerUpdateStormPlayerServerUpdate.xml
call fcn.00404520
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0xc38]
add esp, 0xc
add eax, 0xfffffff0
mov dword [ebp - 0xc24], esp
mov esi, esp
call fcn.004046f0
add eax, 0x10
mov dword [esi], eax
call fcn.00403aa0
mov ebx, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
add esp, 4
push 4
lea edx, [ebp - 0xc28]
push edx
push 4
push str.FirstUserCustomPictureSkin
push str.SoftwareBaofengStormPlayerUserConfig
push SysReAllocStringLen
mov dword [ebp - 0xc28], 1
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_GetUserNameW]
cmp eax, 5
jne 0x4389ee
lea eax, [ebp - 0xc24]
push eax
lea ecx, [ebp - 0x218]
push ecx
mov dword [ebp - 0xc24], 0x202
call esi
push str.SoftwareBaofengStormPlayerUserConfig
push str.CURRENT_USER
push str._s_s
lea edx, [ebp - 0xa18]
push 0x800
push edx
call fcn.00492772
add esp, 0x14
push 0xf003f
lea eax, [ebp - 0x218]
push eax
push 2
lea edi, [ebp - 0xa18]
call fcn.004051a0
test eax, eax
je 0x4389ee
push 4
lea ecx, [ebp - 0xc28]
push ecx
push 4
push str.FirstUserCustomPictureSkin
push str.SoftwareBaofengStormPlayerUserConfig
push SysReAllocStringLen
call ebx
lea edx, [ebp - 0xc24]
push edx
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0xc24], 0x202
call esi
push str.SoftwareBaofengStormPlayerUserConfig
push str.CURRENT_USER
push str._s_s
lea ecx, [ebp - 0xa18]
push 0x800
push ecx
call fcn.00492772
add esp, 0x14
push 2
lea edx, [ebp - 0x218]
push edx
push 3
lea edi, [ebp - 0xa18]
call fcn.004051a0
push 4
lea eax, [ebp - 0xc28]
push eax
push 4
push str.PlayMode
push str.SoftwareBaofengStormPlayerUserConfig
push SysReAllocStringLen
mov dword [ebp - 0xc28], 4
call ebx
cmp eax, 5
jne 0x438ae6
lea ecx, [ebp - 0xc24]
push ecx
lea edx, [ebp - 0x218]
push edx
mov dword [ebp - 0xc24], 0x202
call esi
push str.SoftwareBaofengStormPlayerUserConfig
push str.CURRENT_USER
push str._s_s
lea eax, [ebp - 0xa18]
push 0x800
push eax
call fcn.00492772
add esp, 0x14
push 0xf003f
lea ecx, [ebp - 0x218]
push ecx
push 2
lea edi, [ebp - 0xa18]
call fcn.004051a0
test eax, eax
je 0x438ae6
push 4
lea edx, [ebp - 0xc28]
push edx
push 4
push str.PlayMode
push str.SoftwareBaofengStormPlayerUserConfig
push SysReAllocStringLen
call ebx
lea eax, [ebp - 0xc24]
push eax
lea ecx, [ebp - 0x218]
push ecx
mov dword [ebp - 0xc24], 0x202
call esi
push str.SoftwareBaofengStormPlayerUserConfig
push str.CURRENT_USER
push str._s_s
lea edx, [ebp - 0xa18]
push 0x800
push edx
call fcn.00492772
add esp, 0x14
push 2
lea eax, [ebp - 0x218]
push eax
push 3
lea edi, [ebp - 0xa18]
call fcn.004051a0
push 4
lea ecx, [ebp - 0xc28]
push ecx
push 4
push str.BreeezeWelcomePageShow
push str.SoftwareBaofengStormPlayerUserConfig
push SysReAllocStringLen
mov dword [ebp - 0xc28], 1
call ebx
cmp eax, 5
jne 0x438bde
lea edx, [ebp - 0xc24]
push edx
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0xc24], 0x202
call esi
push str.SoftwareBaofengStormPlayerUserConfig
push str.CURRENT_USER
push str._s_s
lea ecx, [ebp - 0xa18]
push 0x800
push ecx
call fcn.00492772
add esp, 0x14
push 0xf003f
lea edx, [ebp - 0x218]
push edx
push 2
lea edi, [ebp - 0xa18]
call fcn.004051a0
test eax, eax
je 0x438bde
push 4
lea eax, [ebp - 0xc28]
push eax
push 4
push str.BreeezeWelcomePageShow
push str.SoftwareBaofengStormPlayerUserConfig
push SysReAllocStringLen
call ebx
lea ecx, [ebp - 0xc24]
push ecx
lea edx, [ebp - 0x218]
push edx
mov dword [ebp - 0xc24], 0x202
call esi
push str.SoftwareBaofengStormPlayerUserConfig
push str.CURRENT_USER
push str._s_s
lea eax, [ebp - 0xa18]
push 0x800
push eax
call fcn.00492772
add esp, 0x14
push 2
lea ecx, [ebp - 0x218]
push ecx
push 3
lea edi, [ebp - 0xa18]
call fcn.004051a0
push 4
lea edx, [ebp - 0xc28]
push edx
push 4
push str.AutoEnterBreezeAfterPlayListOver
push str.SoftwareBaofengStormPlayerUserConfig
push SysReAllocStringLen
mov dword [ebp - 0xc28], 1
call ebx
cmp eax, 5
jne 0x438cd6
lea eax, [ebp - 0xc24]
push eax
lea ecx, [ebp - 0x218]
push ecx
mov dword [ebp - 0xc24], 0x202
call esi
push str.SoftwareBaofengStormPlayerUserConfig
push str.CURRENT_USER
push str._s_s
lea edx, [ebp - 0xa18]
push 0x800
push edx
call fcn.00492772
add esp, 0x14
push 0xf003f
lea eax, [ebp - 0x218]
push eax
push 2
lea edi, [ebp - 0xa18]
call fcn.004051a0
test eax, eax
je 0x438cd6
push 4
lea ecx, [ebp - 0xc28]
push ecx
push 4
push str.AutoEnterBreezeAfterPlayListOver
push str.SoftwareBaofengStormPlayerUserConfig
push SysReAllocStringLen
call ebx
lea edx, [ebp - 0xc24]
push edx
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0xc24], 0x202
call esi
push str.SoftwareBaofengStormPlayerUserConfig
push str.CURRENT_USER
push str._s_s
lea ecx, [ebp - 0xa18]
push 0x800
push ecx
call fcn.00492772
add esp, 0x14
push 2
lea edx, [ebp - 0x218]
push edx
push 3
lea edi, [ebp - 0xa18]
call fcn.004051a0
push 4
lea eax, [ebp - 0xc28]
push eax
push 4
push str.DefaultBreezeMode
push str.SoftwareBaofengStormPlayerUserConfig
push SysReAllocStringLen
mov dword [ebp - 0xc28], 3
call ebx
cmp eax, 5
jne 0x438dce
lea ecx, [ebp - 0xc24]
push ecx
lea edx, [ebp - 0x218]
push edx
mov dword [ebp - 0xc24], 0x202
call esi
push str.SoftwareBaofengStormPlayerUserConfig
push str.CURRENT_USER
push str._s_s
lea eax, [ebp - 0xa18]
push 0x800
push eax
call fcn.00492772
add esp, 0x14
push 0xf003f
lea ecx, [ebp - 0x218]
push ecx
push 2
lea edi, [ebp - 0xa18]
call fcn.004051a0
test eax, eax
je 0x438dce
push 4
lea edx, [ebp - 0xc28]
push edx
push 4
push str.DefaultBreezeMode
push str.SoftwareBaofengStormPlayerUserConfig
push SysReAllocStringLen
call ebx
lea eax, [ebp - 0xc24]
push eax
lea ecx, [ebp - 0x218]
push ecx
mov dword [ebp - 0xc24], 0x202
call esi
push str.SoftwareBaofengStormPlayerUserConfig
push str.CURRENT_USER
push str._s_s
lea edx, [ebp - 0xa18]
push 0x800
push edx
call fcn.00492772
add esp, 0x14
push 2
lea eax, [ebp - 0x218]
push eax
push 3
lea edi, [ebp - 0xa18]
call fcn.004051a0
push 4
lea ecx, [ebp - 0xc28]
push ecx
push 4
push str.BreezeShowMode
push str.SoftwareBaofengStormPlayerUserConfig
push SysReAllocStringLen
mov dword [ebp - 0xc28], 0
call ebx
cmp eax, 5
jne 0x438ec6
lea edx, [ebp - 0xc24]
push edx
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0xc24], 0x202
call esi
push str.SoftwareBaofengStormPlayerUserConfig
push str.CURRENT_USER
push str._s_s
lea ecx, [ebp - 0xa18]
push 0x800
push ecx
call fcn.00492772
add esp, 0x14
push 0xf003f
lea edx, [ebp - 0x218]
push edx
push 2
lea edi, [ebp - 0xa18]
call fcn.004051a0
test eax, eax
je 0x438ec6
push 4
lea eax, [ebp - 0xc28]
push eax
push 4
push str.BreezeShowMode
push str.SoftwareBaofengStormPlayerUserConfig
push SysReAllocStringLen
call ebx
lea ecx, [ebp - 0xc24]
push ecx
lea edx, [ebp - 0x218]
push edx
mov dword [ebp - 0xc24], 0x202
call esi
push str.SoftwareBaofengStormPlayerUserConfig
push str.CURRENT_USER
push str._s_s
lea eax, [ebp - 0xa18]
push 0x800
push eax
call fcn.00492772
add esp, 0x14
push 2
lea ecx, [ebp - 0x218]
push ecx
push 3
lea edi, [ebp - 0xa18]
call fcn.004051a0
push 4
lea edx, [ebp - 0xc28]
push edx
push 4
push str.BreezeRememberChoice
push str.SoftwareBaofengStormPlayerUserConfig
push SysReAllocStringLen
mov dword [ebp - 0xc28], 0
call ebx
cmp eax, 5
jne 0x438fbe
lea eax, [ebp - 0xc24]
push eax
lea ecx, [ebp - 0x218]
push ecx
mov dword [ebp - 0xc24], 0x202
call esi
push str.SoftwareBaofengStormPlayerUserConfig
push str.CURRENT_USER
push str._s_s
lea edx, [ebp - 0xa18]
push 0x800
push edx
call fcn.00492772
add esp, 0x14
push 0xf003f
lea eax, [ebp - 0x218]
push eax
push 2
lea edi, [ebp - 0xa18]
call fcn.004051a0
test eax, eax
je 0x438fbe
push 4
lea ecx, [ebp - 0xc28]
push ecx
push 4
push str.BreezeRememberChoice
push str.SoftwareBaofengStormPlayerUserConfig
push SysReAllocStringLen
call ebx
lea edx, [ebp - 0xc24]
push edx
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0xc24], 0x202
call esi
push str.SoftwareBaofengStormPlayerUserConfig
push str.CURRENT_USER
push str._s_s
lea ecx, [ebp - 0xa18]
push 0x800
push ecx
call fcn.00492772
add esp, 0x14
push 2
lea edx, [ebp - 0x218]
push edx
push 3
lea edi, [ebp - 0xa18]
call fcn.004051a0
push 4
lea eax, [ebp - 0xc28]
push eax
push 4
push str.BarrageSettingFont
push str.SoftwareBaofengStormPlayerUserConfig
push SysReAllocStringLen
mov dword [ebp - 0xc28], 1
call ebx
cmp eax, 5
jne 0x4390b6
lea ecx, [ebp - 0xc24]
push ecx
lea edx, [ebp - 0x218]
push edx
mov dword [ebp - 0xc24], 0x202
call esi
push str.SoftwareBaofengStormPlayerUserConfig
push str.CURRENT_USER
push str._s_s
lea eax, [ebp - 0xa18]
push 0x800
push eax
call fcn.00492772
add esp, 0x14
push 0xf003f
lea ecx, [ebp - 0x218]
push ecx
push 2
lea edi, [ebp - 0xa18]
call fcn.004051a0
test eax, eax
je 0x4390b6
push 4
lea edx, [ebp - 0xc28]
push edx
push 4
push str.BarrageSettingFont
push str.SoftwareBaofengStormPlayerUserConfig
push SysReAllocStringLen
call ebx
lea eax, [ebp - 0xc24]
push eax
lea ecx, [ebp - 0x218]
push ecx
mov dword [ebp - 0xc24], 0x202
call esi
push str.SoftwareBaofengStormPlayerUserConfig
push str.CURRENT_USER
push str._s_s
lea edx, [ebp - 0xa18]
push 0x800
push edx
call fcn.00492772
add esp, 0x14
push 2
lea eax, [ebp - 0x218]
push eax
push 3
lea edi, [ebp - 0xa18]
call fcn.004051a0
push 4
lea ecx, [ebp - 0xc28]
push ecx
push 4
push str.BarrageSettingMode
push str.SoftwareBaofengStormPlayerUserConfig
push SysReAllocStringLen
mov dword [ebp - 0xc28], 0
call ebx
cmp eax, 5
jne 0x4391ae
lea edx, [ebp - 0xc24]
push edx
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0xc24], 0x202
call esi
push str.SoftwareBaofengStormPlayerUserConfig
push str.CURRENT_USER
push str._s_s
lea ecx, [ebp - 0xa18]
push 0x800
push ecx
call fcn.00492772
add esp, 0x14
push 0xf003f
lea edx, [ebp - 0x218]
push edx
push 2
lea edi, [ebp - 0xa18]
call fcn.004051a0
test eax, eax
je 0x4391ae
push 4
lea eax, [ebp - 0xc28]
push eax
push 4
push str.BarrageSettingMode
push str.SoftwareBaofengStormPlayerUserConfig
push SysReAllocStringLen
call ebx
lea ecx, [ebp - 0xc24]
push ecx
lea edx, [ebp - 0x218]
push edx
mov dword [ebp - 0xc24], 0x202
call esi
push str.SoftwareBaofengStormPlayerUserConfig
push str.CURRENT_USER
push str._s_s
lea eax, [ebp - 0xa18]
push 0x800
push eax
call fcn.00492772
add esp, 0x14
push 2
lea ecx, [ebp - 0x218]
push ecx
push 3
lea edi, [ebp - 0xa18]
call fcn.004051a0
push 4
lea edx, [ebp - 0xc28]
push edx
push 4
push str.BarrageSettingTransparency
push str.SoftwareBaofengStormPlayerUserConfig
push SysReAllocStringLen
mov dword [ebp - 0xc28], 0x50
call ebx
cmp eax, 5
jne 0x4392a6
lea eax, [ebp - 0xc24]
push eax
lea ecx, [ebp - 0x218]
push ecx
mov dword [ebp - 0xc24], 0x202
call esi
push str.SoftwareBaofengStormPlayerUserConfig
push str.CURRENT_USER
push str._s_s
lea edx, [ebp - 0xa18]
push 0x800
push edx
call fcn.00492772
add esp, 0x14
push 0xf003f
lea eax, [ebp - 0x218]
push eax
push 2
lea edi, [ebp - 0xa18]
call fcn.004051a0
test eax, eax
je 0x4392a6
push 4
lea ecx, [ebp - 0xc28]
push ecx
push 4
push str.BarrageSettingTransparency
push str.SoftwareBaofengStormPlayerUserConfig
push SysReAllocStringLen
call ebx
lea edx, [ebp - 0xc24]
push edx
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0xc24], 0x202
call esi
push str.SoftwareBaofengStormPlayerUserConfig
push str.CURRENT_USER
push str._s_s
lea ecx, [ebp - 0xa18]
push 0x800
push ecx
call fcn.00492772
add esp, 0x14
push 2
lea edx, [ebp - 0x218]
push edx
push 3
lea edi, [ebp - 0xa18]
call fcn.004051a0
push 4
lea eax, [ebp - 0xc28]
push eax
push 4
push str.BarrageSettingColor
push str.SoftwareBaofengStormPlayerUserConfig
push SysReAllocStringLen
mov dword [ebp - 0xc28], 0xffffff
call ebx
cmp eax, 5
jne 0x43939e
lea ecx, [ebp - 0xc24]
push ecx
lea edx, [ebp - 0x218]
push edx
mov dword [ebp - 0xc24], 0x202
call esi
push str.SoftwareBaofengStormPlayerUserConfig
push str.CURRENT_USER
push str._s_s
lea eax, [ebp - 0xa18]
push 0x800
push eax
call fcn.00492772
add esp, 0x14
push 0xf003f
lea ecx, [ebp - 0x218]
push ecx
push 2
lea edi, [ebp - 0xa18]
call fcn.004051a0
test eax, eax
je 0x43939e
push 4
lea edx, [ebp - 0xc28]
push edx
push 4
push str.BarrageSettingColor
push str.SoftwareBaofengStormPlayerUserConfig
push SysReAllocStringLen
call ebx
lea eax, [ebp - 0xc24]
push eax
lea ecx, [ebp - 0x218]
push ecx
mov dword [ebp - 0xc24], 0x202
call esi
push str.SoftwareBaofengStormPlayerUserConfig
push str.CURRENT_USER
push str._s_s
lea edx, [ebp - 0xa18]
push 0x800
push edx
call fcn.00492772
add esp, 0x14
push 2
lea eax, [ebp - 0x218]
push eax
push 3
lea edi, [ebp - 0xa18]
call fcn.004051a0
push 4
lea ecx, [ebp - 0xc28]
push ecx
push 4
push str.BarrageWindowHide
push str.SoftwareBaofengStormPlayerUserConfig
push SysReAllocStringLen
mov dword [ebp - 0xc28], 0
call ebx
cmp eax, 5
jne 0x439496
lea edx, [ebp - 0xc24]
push edx
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0xc24], 0x202
call esi
push str.SoftwareBaofengStormPlayerUserConfig
push str.CURRENT_USER
push str._s_s
lea ecx, [ebp - 0xa18]
push 0x800
push ecx
call fcn.00492772
add esp, 0x14
push 0xf003f
lea edx, [ebp - 0x218]
push edx
push 2
lea edi, [ebp - 0xa18]
call fcn.004051a0
test eax, eax
je 0x439496
push 4
lea eax, [ebp - 0xc28]
push eax
push 4
push str.BarrageWindowHide
push str.SoftwareBaofengStormPlayerUserConfig
push SysReAllocStringLen
call ebx
lea ecx, [ebp - 0xc24]
push ecx
lea edx, [ebp - 0x218]
push edx
mov dword [ebp - 0xc24], 0x202
call esi
push str.SoftwareBaofengStormPlayerUserConfig
push str.CURRENT_USER
push str._s_s
lea eax, [ebp - 0xa18]
push 0x800
push eax
call fcn.00492772
add esp, 0x14
push 2
lea ecx, [ebp - 0x218]
push ecx
push 3
lea edi, [ebp - 0xa18]
call fcn.004051a0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xc38]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4394bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xc30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4394e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xc34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x439508
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0xc3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43952e
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 - 0xc2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x439557
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
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