Function at 0x4383f0
Capabilities:
Check os version
Get common file path
Get session user name
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ab65d
mov eax, dword fs:[0]
push eax
sub esp, 0xc38
mov eax, dword [0x4e42d0]
xor eax, esp
mov dword [esp + 0xc30], eax
push ebx
push esi
push edi
mov eax, dword [0x4e42d0]
xor eax, esp
push eax
lea eax, [esp + 0xc48]
mov dword fs:[0], eax
push 1
push 0x23
lea eax, [esp + 0x23c]
push eax
mov esi, ecx
push 0
mov dword [esp + 0x24], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x238]
call fcn.00402b20
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
push eax
mov ebx, str.BaofengVideoStormPlayer9ProfilesConfig.ini
mov dword [esp + 0xc58], 0
call fcn.00404f20
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
mov ebx, str.BaofengVideoStormPlayer9Profiles
mov byte [esp + 0xc60], 1
call fcn.00404f20
add esp, 0x10
mov byte [esp + 0xc50], 2
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4384b9
mov ecx, dword [esp + 0x1c]
call fcn.00403f10
mov ecx, esi
call fcn.00438900
mov edx, dword [0x4e3f18]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e3f18
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
push str.BaofengPlatform9
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov edi, SysReAllocString
mov byte [esp + 0xc54], 3
call fcn.00405330
mov ecx, dword [esp + 0x18]
add esp, 4
lea edx, [esp + 0x10]
push 0x4bcb40
add ecx, 0xa0
push edx
call fcn.0043bd90
push eax
lea eax, [esp + 0x20]
push eax
mov ebx, str.Baofengplatform9.exe___autorun
mov byte [esp + 0xc60], 4
call fcn.00404f20
add esp, 0x10
lea edi, [esp + 0x20]
mov byte [esp + 0xc50], 5
call fcn.00405000
mov byte [esp + 0xc50], 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x438563
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xc50], 3
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43858b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
push ecx
push str.BaofengPlatform9
mov edi, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.004052a0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x30]
push eax
mov ebx, str.BaofengVideoStormPlayer9UpdateStormPlayerServerUpdate.xml
call fcn.00404f20
mov byte [esp + 0xc60], 8
mov eax, dword [esp + 0x34]
add esp, 0xc
add eax, 0xfffffff0
mov dword [esp + 0x14], esp
mov edi, esp
call fcn.004050f0
add eax, 0x10
mov dword [edi], eax
call fcn.004044a0
mov ebx, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
add esp, 4
push 4
lea ecx, [esp + 0x18]
push ecx
push 4
push str.FirstUserCustomPictureSkin
push str.SoftwareBaofengVideoStormPlayer9UserConfig
push SysReAllocString
mov dword [esp + 0x2c], 1
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_GetUserNameW]
cmp eax, 5
jne 0x4386d4
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x18], 0x202
call esi
push str.SoftwareBaofengVideoStormPlayer9UserConfig
push str.CURRENT_USER
push str._s_s
lea ecx, [esp + 0x448]
push 0x800
push ecx
call fcn.00490c40
add esp, 0x14
push 0xf003f
lea edx, [esp + 0x30]
push edx
push 2
lea edi, [esp + 0x448]
call fcn.00405b90
test eax, eax
je 0x4386d4
push 4
lea eax, [esp + 0x18]
push eax
push 4
push str.FirstUserCustomPictureSkin
push str.SoftwareBaofengVideoStormPlayer9UserConfig
push SysReAllocString
call ebx
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x18], 0x202
call esi
push str.SoftwareBaofengVideoStormPlayer9UserConfig
push str.CURRENT_USER
push str._s_s
lea eax, [esp + 0x448]
push 0x800
push eax
call fcn.00490c40
add esp, 0x14
push 2
lea ecx, [esp + 0x30]
push ecx
push 3
lea edi, [esp + 0x448]
call fcn.00405b90
push 4
lea edx, [esp + 0x18]
push edx
push 4
push str.PlayMode
push str.SoftwareBaofengVideoStormPlayer9UserConfig
push SysReAllocString
mov dword [esp + 0x2c], 4
call ebx
cmp eax, 5
jne 0x4387ba
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x18], 0x202
call esi
push str.SoftwareBaofengVideoStormPlayer9UserConfig
push str.CURRENT_USER
push str._s_s
lea edx, [esp + 0x448]
push 0x800
push edx
call fcn.00490c40
add esp, 0x14
push 0xf003f
lea eax, [esp + 0x30]
push eax
push 2
lea edi, [esp + 0x448]
call fcn.00405b90
test eax, eax
je 0x4387ba
push 4
lea ecx, [esp + 0x18]
push ecx
push 4
push str.PlayMode
push str.SoftwareBaofengVideoStormPlayer9UserConfig
push SysReAllocString
call ebx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x18], 0x202
call esi
push str.SoftwareBaofengVideoStormPlayer9UserConfig
push str.CURRENT_USER
push str._s_s
lea ecx, [esp + 0x448]
push 0x800
push ecx
call fcn.00490c40
add esp, 0x14
push 2
lea edx, [esp + 0x30]
push edx
push 3
lea edi, [esp + 0x448]
call fcn.00405b90
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x30], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x30], 6
jb 0x438806
mov edx, str.BFHD9.exe
call fcn.00424720
mov edx, 0x4bd158
call fcn.00424720
mov edx, 0x4bdf30
call fcn.00424720
mov edx, str.BFPush9.exe
call fcn.00424720
mov edx, 0x4bd4f4
call fcn.00424720
mov byte [esp + 0xc50], 3
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43882e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xc50], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x438856
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xc50], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43887e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xc50], 0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4388a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xc50], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4388d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0xc48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc30]
xor ecx, esp
call fcn.0048f6cb
mov esp, ebp
pop ebp
ret