Function at 0x477210
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0554
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x4c4330]
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 - 0x218]
push eax
push 0
mov esi, ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x238]
push ecx
lea ecx, [ebp - 0x218]
call fcn.0045a880
push 0x28
push str.BaofengStormPlayerProfilesConfig.ini
lea ebx, [ebp - 0x238]
mov dword [ebp - 4], 0
call fcn.0045a3e0
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x23c], ebx
mov byte [ebp - 4], 1
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x22c], eax
mov byte [ebp - 4], 2
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x234], eax
push 2
push 0x4a9720
lea edi, [ebp - 0x22c]
mov byte [ebp - 4], 3
call fcn.00458a90
push 0x3af
push 0x4a9720
lea edi, [ebp - 0x234]
call fcn.00458a90
mov eax, dword [ebx - 8]
mov edi, dword [ebp - 0x238]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, 0x104
add esp, 0x10
or eax, ecx
jge 0x47732f
mov eax, 0x104
lea ecx, [ebp - 0x23c]
call fcn.00458c00
mov ebx, dword [ebp - 0x23c]
push edi
push 0x104
push ebx
push 0
push 0x4a96b0
push str.INSTALL
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x224]
push ecx
mov ecx, str.5.12.0523.1111
call fcn.0045a880
mov byte [ebp - 4], 4
mov eax, dword [esi + 8]
mov ecx, dword [esi]
mov edx, dword [esi + 4]
test eax, eax
jne 0x47740d
test ecx, ecx
jne 0x47740d
test edx, edx
jne 0x47740d
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x224]
mov edx, dword [esi + 0x58]
mov eax, dword [ebp - 0x234]
push ebx
push ecx
mov ecx, dword [ebp - 0x22c]
push edx
push eax
push ecx
push str.http:__active.baofeng.com_active5
push str._s_pid_sid_suid_st1ver_sidate_sinstallday0
lea edi, [ebp - 0x21c]
call fcn.00458a90
mov edi, dword [ebp - 0x21c]
add esp, 0x18
add edi, 0xfffffff0
mov eax, edi
mov dword [ebp - 0x228], esp
mov ebx, esp
call fcn.0045c0b0
add eax, 0x10
mov dword [ebx], eax
call fcn.00468df0
mov byte [ebp - 4], 4
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4774f0
mov ecx, dword [edi]
push edi
jmp 0x4774e9
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 6
call fcn.00458920
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ebp - 0x224]
mov eax, dword [esi + 0x58]
push ecx
mov ecx, dword [ebp - 0x234]
push ebx
push edx
mov edx, dword [ebp - 0x22c]
push eax
push ecx
push edx
push str.http:__active.baofeng.com_active5
push str._s_pid_sid_suid_st8ver_sidate_sinstallday_s
lea edi, [ebp - 0x220]
call fcn.00458a90
mov edi, dword [ebp - 0x220]
add esp, 0x1c
add edi, 0xfffffff0
mov eax, edi
mov dword [ebp - 0x228], esp
mov ebx, esp
call fcn.0045c0b0
add eax, 0x10
mov dword [ebx], eax
call fcn.00468df0
mov byte [ebp - 4], 6
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4774ca
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4774f0
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 8
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 9
cmp dword [esi + 0x64], 0
je 0x477543
push 0x4aadd0
lea ecx, [ebp - 0x21c]
push ecx
mov ebx, 1
jmp 0x477551
push 0x4a691c
lea edx, [ebp - 0x21c]
push edx
xor ebx, ebx
call fcn.0045a790
cmp dword [esi + 0x60], 0
mov ebx, 1
je 0x47756f
push 0x4aadd0
lea eax, [ebp - 0x220]
push eax
jmp 0x47757b
push 0x4aadd4
lea ecx, [ebp - 0x220]
push ecx
call fcn.0045a790
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x230], eax
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x220]
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
push ecx
mov ecx, dword [ebp - 0x21c]
push edx
mov edx, dword [ebp - 0x224]
push eax
mov eax, dword [esi + 0x58]
push ecx
push edx
push eax
push str.http:__action.logger.baofeng.com_ninstall_action.html
push str._s_type3uid_sver_sstartmi_overend1rls_senv_sbit_smovie_s
lea edi, [ebp - 0x230]
call fcn.00458a90
mov edi, dword [ebp - 0x230]
add esp, 0x1c
add edi, 0xfffffff0
mov eax, edi
mov dword [ebp - 0x228], esp
mov ebx, esp
call fcn.0045c0b0
add eax, 0x10
mov dword [ebx], eax
call fcn.00468df0
cmp dword [esi + 0x80], 0
je 0x4776d7
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x240], ebx
mov byte [ebp - 4], 0xb
mov eax, dword [ebx - 8]
mov edi, dword [ebp - 0x238]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, 0x104
or eax, ecx
jge 0x477652
mov eax, 0x104
lea ecx, [ebp - 0x240]
call fcn.00458c00
mov ebx, dword [ebp - 0x240]
push edi
push 0x104
push ebx
push 0
push 0x4ae648
push str.Product
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [ebp - 0x224]
mov edx, dword [esi + 0x58]
push ecx
push edx
push ebx
push str.http:__vip.log.baofeng.net_nvwa_logger.php
push str._s_categoryinstallruid_sclientid_st1veriosn_s
lea edi, [ebp - 0x230]
call fcn.00458a90
mov edi, dword [ebp - 0x230]
add esp, 0x10
add edi, 0xfffffff0
mov dword [ebp - 0x228], esp
mov eax, edi
mov dword [ebp - 0x228], esp
call fcn.0045c0b0
add eax, 0x10
mov ecx, esp
mov dword [ecx], eax
call fcn.00468df0
add ebx, 0xfffffff0
mov byte [ebp - 4], 0xa
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4776d7
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov byte [ebp - 4], 9
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4776f4
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47771a
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 - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x477740
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x477766
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 - 0x234]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47778c
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 - 0x22c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4777b2
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 - 0x23c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4777d8
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 - 0x238]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x477801
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.00485631
mov esp, ebp
pop ebp
ret