Function at 0x4870e0
Capabilities:
Check internet connectivity via wininet
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50608c
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x54b2c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 1
push 0x23
lea ecx, [ebp - 0x21c]
push ecx
push 0
mov dword [ebp - 0x224], eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [ebp - 0x244]
push edx
lea ecx, [ebp - 0x21c]
call fcn.00459530
push 0x28
push str.BaofengStormPlayerProfilesConfig.ini
lea ebx, [ebp - 0x244]
mov dword [ebp - 4], 0
call fcn.0045af80
mov eax, dword [0x54af18]
mov edx, dword [eax + 0xc]
mov ecx, 0x54af18
call edx
add eax, 0x10
mov dword [ebp - 0x23c], eax
mov byte [ebp - 4], 1
mov eax, dword [0x54af18]
mov edx, dword [eax + 0xc]
mov ecx, 0x54af18
call edx
add eax, 0x10
mov dword [ebp - 0x250], eax
mov byte [ebp - 4], 2
mov eax, dword [0x54af18]
mov edx, dword [eax + 0xc]
mov ecx, 0x54af18
call edx
add eax, 0x10
mov dword [ebp - 0x240], eax
mov byte [ebp - 4], 3
mov eax, dword [0x54af18]
mov edx, dword [eax + 0xc]
mov ecx, 0x54af18
call edx
lea ebx, [eax + 0x10]
mov dword [ebp - 0x254], ebx
mov byte [ebp - 4], 4
mov eax, dword [0x54af18]
mov edx, dword [eax + 0xc]
mov ecx, 0x54af18
call edx
add eax, 0x10
mov dword [ebp - 0x24c], eax
push 2
push 0x517fa8
lea edi, [ebp - 0x250]
mov byte [ebp - 4], 5
call fcn.00458f90
mov eax, dword [ebp - 0x224]
add esp, 8
lea esi, [ebp - 0x220]
call fcn.00489110
lea edi, [ebp - 0x240]
mov byte [ebp - 4], 6
call fcn.0045ca50
mov byte [ebp - 4], 5
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 0x48723c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x23c]
mov eax, dword [edi - 8]
mov esi, dword [ebp - 0x244]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x487272
mov eax, 0x104
lea ecx, [ebp - 0x23c]
call fcn.004593e0
mov edi, dword [ebp - 0x23c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x104
push edi
push 0
push 0x517f34
push str.INSTALL
call esi
mov eax, dword [edi - 8]
push eax
push edi
call fcn.004e26e4
add esp, 8
test eax, eax
js 0x487b65
cmp eax, dword [edi - 8]
jg 0x487b65
xor ecx, ecx
mov dword [edi - 0xc], eax
lea edx, [ebp - 0x234]
mov word [edi + eax*2], cx
push edx
mov ecx, str.5.21.0131.1111
call fcn.00459530
mov byte [ebp - 4], 7
mov eax, dword [ebx - 8]
mov edi, dword [ebp - 0x244]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, 0x104
or eax, ecx
jge 0x4872f9
mov eax, 0x104
lea ecx, [ebp - 0x254]
call fcn.004593e0
mov ebx, dword [ebp - 0x254]
push edi
push 0x104
push ebx
push 0
push str.BBID
push str.Product
call esi
mov eax, dword [ebx - 8]
push eax
push ebx
call fcn.004e26e4
add esp, 8
test eax, eax
js 0x487b65
cmp eax, dword [ebx - 8]
jg 0x487b65
mov edi, dword [ebp - 0x24c]
mov dword [ebx - 0xc], eax
xor ecx, ecx
mov word [ebx + eax*2], cx
mov eax, dword [edi - 8]
mov esi, dword [ebp - 0x244]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x48736b
mov eax, 0x104
lea ecx, [ebp - 0x24c]
call fcn.004593e0
mov edi, dword [ebp - 0x24c]
push esi
push 0x104
push edi
push 0
push 0x51f370
push str.Product
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [edi - 8]
push eax
push edi
call fcn.004e26e4
add esp, 8
test eax, eax
js 0x487b65
cmp eax, dword [edi - 8]
jg 0x487b65
mov esi, dword [ebp - 0x224]
mov dword [edi - 0xc], eax
xor edx, edx
mov word [edi + eax*2], dx
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
test eax, eax
jne 0x487469
test ecx, ecx
jne 0x487469
test edx, edx
jne 0x487469
mov eax, dword [0x54af18]
mov edx, dword [eax + 0xc]
mov ecx, 0x54af18
call edx
add eax, 0x10
mov dword [ebp - 0x220], eax
push edi
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x234]
mov edx, dword [esi + 0x54]
push ebx
push eax
mov eax, dword [ebp - 0x240]
push ecx
mov ecx, dword [ebp - 0x250]
push edx
push eax
push ecx
push str.http:__active.baofeng.com_active5
push str._s_pid_sid_suid_st1ver_sidate_sinstallday0fixedid_schannel_s
lea edi, [ebp - 0x220]
call fcn.00458f90
mov edi, dword [ebp - 0x220]
add esp, 0x20
add edi, 0xfffffff0
mov eax, edi
mov dword [ebp - 0x248], esp
mov ebx, esp
call fcn.0045cb40
add eax, 0x10
mov dword [ebx], eax
call fcn.00473d30
mov byte [ebp - 4], 7
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x487554
mov ecx, dword [edi]
push edi
jmp 0x48754d
mov edx, dword [0x54af18]
mov eax, dword [edx + 0xc]
mov ecx, 0x54af18
call eax
add eax, 0x10
mov dword [ebp - 0x228], eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 9
call fcn.00458990
mov edx, dword [0x54af18]
mov eax, dword [edx + 0xc]
mov ecx, 0x54af18
call eax
add eax, 0x10
mov dword [ebp - 0x220], eax
push edi
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x228]
mov edx, dword [ebp - 0x23c]
mov eax, dword [ebp - 0x234]
push ebx
push ecx
mov ecx, dword [esi + 0x54]
push edx
mov edx, dword [ebp - 0x240]
push eax
mov eax, dword [ebp - 0x250]
push ecx
push edx
push eax
push str.http:__active.baofeng.com_active5
push str._s_pid_sid_suid_st8ver_sidate_sinstallday_sfixedid_schannel_s
lea edi, [ebp - 0x220]
call fcn.00458f90
mov edi, dword [ebp - 0x220]
add esp, 0x24
add edi, 0xfffffff0
mov eax, edi
mov dword [ebp - 0x248], esp
mov ebx, esp
call fcn.0045cb40
add eax, 0x10
mov dword [ebx], eax
call fcn.00473d30
mov byte [ebp - 4], 9
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48752e
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x487554
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x54af18]
mov eax, dword [edx + 0xc]
mov ecx, 0x54af18
call eax
add eax, 0x10
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 0xb
mov edx, dword [0x54af18]
mov eax, dword [edx + 0xc]
mov ecx, 0x54af18
call eax
add eax, 0x10
mov dword [ebp - 0x248], eax
mov byte [ebp - 4], 0xc
mov edx, dword [0x54af18]
mov eax, dword [edx + 0xc]
mov ecx, 0x54af18
call eax
add eax, 0x10
mov dword [ebp - 0x258], eax
mov byte [ebp - 4], 0xd
mov edx, dword [0x54af18]
mov eax, dword [edx + 0xc]
mov ecx, 0x54af18
call eax
add eax, 0x10
mov dword [ebp - 0x228], eax
push 0x51517c
lea ecx, [ebp - 0x220]
push ecx
xor ebx, ebx
mov byte [ebp - 4], 0xe
call fcn.00459440
mov edi, dword [ebp - 0x224]
cmp dword [edi + 0x6c], ebx
mov ebx, 1
je 0x4875f9
push 0x51a4fc
lea edx, [ebp - 0x228]
push edx
jmp 0x487605
push 0x51a500
lea eax, [ebp - 0x228]
push eax
call fcn.00459440
lea esi, [ebp - 0x230]
mov eax, edi
call fcn.00473640
lea edi, [ebp - 0x248]
mov byte [ebp - 4], 0xf
call fcn.0045ca50
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x230]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48764c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x224]
lea esi, [ebp - 0x230]
mov eax, ebx
call fcn.00473670
lea edi, [ebp - 0x258]
mov byte [ebp - 4], 0x10
call fcn.0045ca50
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x230]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x487694
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x54af18]
mov eax, dword [edx + 0xc]
mov ecx, 0x54af18
call eax
add eax, 0x10
mov dword [ebp - 0x22c], eax
mov byte [ebp - 4], 0x11
mov edx, dword [0x54af18]
mov eax, dword [edx + 0xc]
mov ecx, 0x54af18
call eax
add eax, 0x10
mov dword [ebp - 0x230], eax
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x228]
mov edx, dword [ebp - 0x258]
mov eax, dword [ebp - 0x248]
push ecx
mov ecx, dword [ebp - 0x220]
push edx
mov edx, dword [ebp - 0x234]
push eax
mov eax, dword [ebx + 0x54]
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 - 0x22c]
call fcn.00458f90
mov eax, dword [ebp - 0x22c]
add esp, 0x1c
add eax, 0xfffffff0
mov dword [ebp - 0x238], esp
mov esi, esp
call fcn.0045cb40
add eax, 0x10
mov dword [esi], eax
mov esi, ebx
call fcn.00473d30
cmp dword [ebx + 0xcc], 0
jne 0x48777b
mov eax, dword [ebp - 0x240]
mov ecx, 0x51a500
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x487769
test dx, dx
je 0x487765
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x487769
add eax, 4
add ecx, 4
test dx, dx
jne 0x487743
xor eax, eax
jmp 0x48776e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x4878f2
mov edx, dword [0x54af18]
mov eax, dword [edx + 0xc]
mov ecx, 0x54af18
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x224], esi
mov byte [ebp - 4], 0x13
mov eax, dword [esi - 8]
mov edi, dword [ebp - 0x244]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x4877c8
mov eax, 0x104
lea ecx, [ebp - 0x224]
call fcn.004593e0
mov esi, dword [ebp - 0x224]
push edi
push 0x104
push esi
push 0
push 0x51f370
push str.Product
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [ebp - 0x234]
mov edx, dword [ebx + 0x54]
push ecx
push edx
push esi
push str.http:__log.nvwa.baofeng.com_logger.php
push str._s_categoryinstallruid_sclientid_st1veriosn_s
lea edi, [ebp - 0x22c]
call fcn.00458f90
add esp, 0x14
push esi
push str.http:__log.nvwa.baofeng.com_logger.php
push 0x520a08
call fcn.00458f90
add esp, 0xc
lea eax, [ebp - 0x238]
push eax
mov dword [ebp - 0x238], 0
call dword [sym.imp.SensApi.dll_IsNetworkAlive]
test eax, eax
jne 0x48785e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x487887
push 0
lea ecx, [ebp - 0x238]
push ecx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x487887
mov al, byte [ebp - 0x238]
test al, 0x20
jne 0x487887
test al, 7
je 0x487887
mov eax, dword [ebp - 0x22c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x238], esp
mov esi, esp
call fcn.0045cb40
add eax, 0x10
mov dword [esi], eax
mov esi, ebx
call fcn.00473d30
mov esi, dword [ebp - 0x224]
mov edx, dword [ebp - 0x240]
mov eax, dword [ebp - 0x234]
mov ecx, dword [ebx + 0x54]
push edx
push eax
push ecx
push esi
push str.categoryinstallruid_sclientid_st1veriosn_sbid_s
lea edi, [ebp - 0x230]
call fcn.00458f90
mov ecx, dword [ebp - 0x230]
add esp, 0x14
lea edx, [ebx + 0xd0]
push edx
lea edx, [ebp - 0x224]
call fcn.0048bee0
mov esi, dword [ebp - 0x224]
mov ecx, esi
call fcn.0048cab0
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0x12
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4878f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebx + 0x40]
fld qword [ebx + 0x38]
mov edx, dword [ebx + 0x44]
mov eax, dword [ebp - 0x234]
push ecx
mov ecx, dword [ebx + 0x54]
push edx
sub esp, 0x20
fstp qword [esp + 0x18]
lea edi, [ebp - 0x22c]
fld qword [ebx + 0x30]
fstp qword [esp + 0x10]
fld qword [ebx + 0x28]
fstp qword [esp + 8]
fld qword [ebx + 0x20]
fstp qword [esp]
push eax
push ecx
push str.http:__action.logger.baofeng.com_ninstall_action.html
push str._s_type4uid_sver_send1release_.2fprepare_.2finstallation_.2fdelay_.2fspandirinstall_dsystemdirinstall_d
call fcn.00458f90
mov edi, dword [ebp - 0x22c]
add esp, 0x34
add edi, 0xfffffff0
mov eax, edi
mov dword [ebp - 0x238], esp
mov esi, esp
call fcn.0045cb40
add eax, 0x10
mov dword [esi], eax
mov esi, ebx
call fcn.00473d30
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0x230]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x487985
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xe
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4879a2
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4879c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x258]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4879ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x248]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x487a14
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 7
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 0x487a3a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 5
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 0x487a60
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 - 0x24c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x487a86
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 - 0x254]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x487aac
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 - 0x240]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x487ad2
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 - 0x250]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x487af8
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 0x487b1e
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 - 0x244]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x487b47
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 - 0x14]
xor ecx, ebp
call fcn.004e0040
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00459fc0
int3