Function at 0x486860
Capabilities:
Check internet connectivity via wininet
Get common file path
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x506b32
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x54c2c0]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push esi
push edi
mov eax, dword [0x54c2c0]
xor eax, esp
push eax
lea eax, [esp + 0x2b8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 1
push 0x23
lea ecx, [esp + 0x7c]
push ecx
push 0
mov dword [esp + 0x40], eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x78]
call fcn.00459410
push 0x28
push str.BaofengStormPlayerProfilesConfig.ini
lea ebx, [esp + 0x48]
mov dword [esp + 0x2c8], 0
call fcn.0045ae80
mov eax, dword [0x54bf18]
mov edx, dword [eax + 0xc]
mov ecx, 0x54bf18
call edx
add eax, 0x10
mov dword [esp + 0x48], eax
mov byte [esp + 0x2c0], 1
mov eax, dword [0x54bf18]
mov edx, dword [eax + 0xc]
mov ecx, 0x54bf18
call edx
add eax, 0x10
mov dword [esp + 0x50], eax
mov byte [esp + 0x2c0], 2
mov eax, dword [0x54bf18]
mov edx, dword [eax + 0xc]
mov ecx, 0x54bf18
call edx
add eax, 0x10
mov dword [esp + 0x4c], eax
mov byte [esp + 0x2c0], 3
mov eax, dword [0x54bf18]
mov edx, dword [eax + 0xc]
mov ecx, 0x54bf18
call edx
lea ebx, [eax + 0x10]
mov dword [esp + 0x64], ebx
mov byte [esp + 0x2c0], 4
mov eax, dword [0x54bf18]
mov edx, dword [eax + 0xc]
mov ecx, 0x54bf18
call edx
add eax, 0x10
mov dword [esp + 0x5c], eax
push 2
push 0x518fb8
lea edi, [esp + 0x58]
mov byte [esp + 0x2c8], 5
call fcn.00458e60
mov eax, dword [esp + 0x38]
add esp, 8
lea esi, [esp + 0x2c]
call fcn.00489070
lea edi, [esp + 0x4c]
mov byte [esp + 0x2c0], 6
call fcn.0045c590
mov byte [esp + 0x2c0], 5
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4869d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x48]
mov eax, dword [edi - 8]
mov esi, dword [esp + 0x40]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x4869fe
mov eax, 0x104
lea ecx, [esp + 0x48]
call fcn.004592c0
mov edi, dword [esp + 0x48]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x104
push edi
push 0
push 0x518f44
push str.INSTALL
call esi
mov eax, dword [edi - 8]
push eax
push edi
call fcn.004e30a4
add esp, 8
test eax, eax
js 0x487367
cmp eax, dword [edi - 8]
jg 0x487367
xor ecx, ecx
mov dword [edi - 0xc], eax
lea edx, [esp + 0x3c]
mov word [edi + eax*2], cx
push edx
mov ecx, str.5.27.0731.1111
call fcn.00459410
mov byte [esp + 0x2c0], 7
mov eax, dword [ebx - 8]
mov edi, dword [esp + 0x40]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, 0x104
or eax, ecx
jge 0x486a81
mov eax, 0x104
lea ecx, [esp + 0x64]
call fcn.004592c0
mov ebx, dword [esp + 0x64]
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.004e30a4
add esp, 8
test eax, eax
js 0x487367
cmp eax, dword [ebx - 8]
jg 0x487367
mov edi, dword [esp + 0x5c]
mov dword [ebx - 0xc], eax
xor ecx, ecx
mov word [ebx + eax*2], cx
mov eax, dword [edi - 8]
mov esi, dword [esp + 0x40]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x486aeb
mov eax, 0x104
lea ecx, [esp + 0x5c]
call fcn.004592c0
mov edi, dword [esp + 0x5c]
push esi
push 0x104
push edi
push 0
push 0x520868
push str.Product
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [edi - 8]
push eax
push edi
call fcn.004e30a4
add esp, 8
test eax, eax
js 0x487367
cmp eax, dword [edi - 8]
jg 0x487367
mov esi, dword [esp + 0x30]
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 0x486be7
test ecx, ecx
jne 0x486be7
test edx, edx
jne 0x486be7
mov eax, dword [0x54bf18]
mov edx, dword [eax + 0xc]
mov ecx, 0x54bf18
call edx
add eax, 0x10
mov dword [esp + 0x34], eax
push edi
mov byte [esp + 0x2c4], 8
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esi + 0x54]
push ebx
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x60]
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, [esp + 0x58]
call fcn.00458e60
mov edi, dword [esp + 0x58]
add esp, 0x20
add edi, 0xfffffff0
mov eax, edi
mov dword [esp + 0x30], esp
mov ebx, esp
call fcn.0045c680
add eax, 0x10
mov dword [ebx], eax
call fcn.004731a0
mov dword [esp + 0x68], 1
mov byte [esp + 0x2c0], 7
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x486cd2
mov ecx, dword [edi]
push edi
jmp 0x486ccb
mov edx, dword [0x54bf18]
mov eax, dword [edx + 0xc]
mov ecx, 0x54bf18
call eax
add eax, 0x10
mov dword [esp + 0x38], eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c0], 9
call fcn.004589d0
mov edx, dword [0x54bf18]
mov eax, dword [edx + 0xc]
mov ecx, 0x54bf18
call eax
add eax, 0x10
mov dword [esp + 0x34], eax
push edi
mov byte [esp + 0x2c4], 0xa
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x40]
push ebx
push ecx
mov ecx, dword [esi + 0x54]
push edx
mov edx, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x64]
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, [esp + 0x5c]
call fcn.00458e60
mov edi, dword [esp + 0x5c]
add esp, 0x24
add edi, 0xfffffff0
mov eax, edi
mov dword [esp + 0x30], esp
mov ebx, esp
call fcn.0045c680
add eax, 0x10
mov dword [ebx], eax
call fcn.004731a0
mov dword [esp + 0x68], 0
mov byte [esp + 0x2c0], 9
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x486caa
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov byte [esp + 0x2c0], 7
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x486cd2
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x54bf18]
mov eax, dword [edx + 0xc]
mov ecx, 0x54bf18
call eax
add eax, 0x10
mov dword [esp + 0x34], eax
mov byte [esp + 0x2c0], 0xb
mov edx, dword [0x54bf18]
mov eax, dword [edx + 0xc]
mov ecx, 0x54bf18
call eax
add eax, 0x10
mov dword [esp + 0x60], eax
mov byte [esp + 0x2c0], 0xc
mov edx, dword [0x54bf18]
mov eax, dword [edx + 0xc]
mov ecx, 0x54bf18
call eax
add eax, 0x10
mov dword [esp + 0x6c], eax
mov byte [esp + 0x2c0], 0xd
mov edx, dword [0x54bf18]
mov eax, dword [edx + 0xc]
mov ecx, 0x54bf18
call eax
add eax, 0x10
mov dword [esp + 0x38], eax
push 0x51966c
lea ecx, [esp + 0x38]
push ecx
xor ebx, ebx
mov byte [esp + 0x2c8], 0xe
call fcn.00459320
mov edi, dword [esp + 0x30]
cmp dword [edi + 0x6c], ebx
mov ebx, 1
je 0x486d79
push 0x51b664
lea edx, [esp + 0x3c]
push edx
jmp 0x486d83
push 0x51b668
lea eax, [esp + 0x3c]
push eax
call fcn.00459320
lea esi, [esp + 0x2c]
mov eax, edi
call fcn.00472aa0
lea edi, [esp + 0x60]
mov byte [esp + 0x2c0], 0xf
call fcn.0045c590
mov byte [esp + 0x2c0], 0xe
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x486dcc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x30]
lea esi, [esp + 0x2c]
mov eax, ebx
call fcn.00472ad0
lea edi, [esp + 0x6c]
mov byte [esp + 0x2c0], 0x10
call fcn.0045c590
mov byte [esp + 0x2c0], 0xe
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x486e14
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x54bf18]
mov eax, dword [edx + 0xc]
mov ecx, 0x54bf18
call eax
add eax, 0x10
mov dword [esp + 0x44], eax
mov byte [esp + 0x2c0], 0x11
mov edx, dword [0x54bf18]
mov eax, dword [edx + 0xc]
mov ecx, 0x54bf18
call eax
add eax, 0x10
mov dword [esp + 0x58], eax
mov byte [esp + 0x2c0], 0x12
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x44]
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, [esp + 0x64]
call fcn.00458e60
mov eax, dword [esp + 0x64]
add esp, 0x1c
add eax, 0xfffffff0
mov dword [esp + 0x30], esp
mov esi, esp
call fcn.0045c680
add eax, 0x10
mov dword [esi], eax
mov esi, ebx
call fcn.004731a0
cmp dword [ebx + 0xcc], 0
jne 0x486eed
mov eax, dword [esp + 0x4c]
mov ecx, 0x51b668
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x486edb
test dx, dx
je 0x486ed7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x486edb
add eax, 4
add ecx, 4
test dx, dx
jne 0x486eb5
xor eax, eax
jmp 0x486ee0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x4870d8
mov edx, dword [0x54bf18]
mov eax, dword [edx + 0xc]
mov ecx, 0x54bf18
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x30], esi
lea ecx, [esp + 0x70]
push ecx
mov byte [esp + 0x2c4], 0x13
call fcn.0048d400
mov byte [esp + 0x2c0], 0x14
mov eax, dword [esi - 8]
mov edi, dword [esp + 0x40]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x486f48
mov eax, 0x104
lea ecx, [esp + 0x30]
call fcn.004592c0
mov esi, dword [esp + 0x30]
push edi
push 0x104
push esi
push 0
push 0x520868
push str.Product
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [ebx + 0x54]
push eax
push ecx
push edx
push esi
push str.http:__log.nvwa.baofeng.com_logger.php
push str._s_categoryinstallruid_sclientid_st1veriosn_sisnew_dmac_s
lea edi, [esp + 0x60]
call fcn.00458e60
add esp, 0x1c
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x58], 0
call dword [sym.imp.SensApi.dll_IsNetworkAlive]
test eax, eax
jne 0x486fc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x486fec
push 0
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x486fec
mov al, byte [esp + 0x54]
test al, 0x20
jne 0x486fec
test al, 7
je 0x486fec
mov eax, dword [esp + 0x44]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x58], esp
mov esi, esp
call fcn.0045c680
add eax, 0x10
mov dword [esi], eax
mov esi, ebx
call fcn.004731a0
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [ebx + 0x54]
push ecx
push edx
push eax
push esi
push str.categoryinstallruid_sclientid_st1veriosn_sbid_sisnew_dmac_s
lea edi, [esp + 0x74]
call fcn.00458e60
add esp, 0x1c
lea ecx, [esp + 0x2c]
push ecx
mov ecx, 0x51966c
call fcn.00459410
mov byte [esp + 0x2c0], 0x15
mov eax, dword [esp + 0x2c]
cmp dword [eax - 0xc], 0
je 0x487045
push eax
push str.wpfrom_s
call fcn.0048a090
add esp, 8
mov ecx, dword [esp + 0x58]
lea edx, [ebx + 0xd0]
push edx
lea edx, [esp + 0x34]
call fcn.0048c500
mov esi, dword [esp + 0x30]
mov ecx, esi
call fcn.0048d0d0
mov byte [esp + 0x2c0], 0x14
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48708c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c0], 0x13
mov eax, dword [esp + 0x70]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4870b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x2c0], 0x12
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4870d8
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 [esp + 0x3c]
push ecx
mov ecx, dword [ebx + 0x54]
push edx
sub esp, 0x20
fstp qword [esp + 0x18]
lea edi, [esp + 0x6c]
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.00458e60
mov edi, dword [esp + 0x7c]
add esp, 0x34
add edi, 0xfffffff0
mov eax, edi
mov dword [esp + 0x30], esp
mov esi, esp
call fcn.0045c680
add eax, 0x10
mov dword [esi], eax
mov esi, ebx
call fcn.004731a0
mov byte [esp + 0x2c0], 0x11
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x487165
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c0], 0xe
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x487186
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov byte [esp + 0x2c0], 0xd
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4871ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c0], 0xc
mov eax, dword [esp + 0x6c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4871d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c0], 0xb
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4871fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c0], 7
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x487226
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c0], 5
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48724e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c0], 4
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x487276
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c0], 3
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48729e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c0], 2
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4872c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c0], 1
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4872ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c0], 0
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x487316
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2c0], 0xffffffff
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x487341
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.004e0a00
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00459ec0
int3