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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a88d
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x5522c0]
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 - 0x22c], eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [ebp - 0x234]
push edx
lea ecx, [ebp - 0x21c]
call fcn.00459600
push 0x28
push str.BaofengStormPlayerProfilesConfig.ini
lea ebx, [ebp - 0x234]
mov dword [ebp - 4], 0
call fcn.0045b450
mov eax, dword [0x551f18]
mov edx, dword [eax + 0xc]
mov ecx, 0x551f18
call edx
add eax, 0x10
mov dword [ebp - 0x240], eax
mov byte [ebp - 4], 1
mov eax, dword [0x551f18]
mov edx, dword [eax + 0xc]
mov ecx, 0x551f18
call edx
add eax, 0x10
mov dword [ebp - 0x258], eax
mov byte [ebp - 4], 2
mov eax, dword [0x551f18]
mov edx, dword [eax + 0xc]
mov ecx, 0x551f18
call edx
add eax, 0x10
mov dword [ebp - 0x23c], eax
mov byte [ebp - 4], 3
mov eax, dword [0x551f18]
mov edx, dword [eax + 0xc]
mov ecx, 0x551f18
call edx
lea ebx, [eax + 0x10]
mov dword [ebp - 0x264], ebx
mov byte [ebp - 4], 4
mov eax, dword [0x551f18]
mov edx, dword [eax + 0xc]
mov ecx, 0x551f18
call edx
add eax, 0x10
mov dword [ebp - 0x24c], eax
push 2
push 0x51cfe0
lea edi, [ebp - 0x258]
mov byte [ebp - 4], 5
call fcn.00459840
mov eax, dword [ebp - 0x22c]
add esp, 8
lea esi, [ebp - 0x224]
call fcn.0048c240
lea edi, [ebp - 0x23c]
mov byte [ebp - 4], 6
call fcn.0045cf30
mov byte [ebp - 4], 5
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 0x4895cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x240]
mov eax, dword [edi - 8]
mov esi, dword [ebp - 0x234]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x489602
mov eax, 0x104
lea ecx, [ebp - 0x240]
call fcn.00459760
mov edi, dword [ebp - 0x240]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x104
push edi
push 0
push 0x51cf6c
push str.INSTALL
call esi
mov eax, dword [edi - 8]
push eax
push edi
call fcn.004e73a6
add esp, 8
test eax, eax
js 0x489fcf
cmp eax, dword [edi - 8]
jg 0x489fcf
xor ecx, ecx
mov dword [edi - 0xc], eax
lea edx, [ebp - 0x230]
mov word [edi + eax*2], cx
push edx
mov ecx, str.5.36.0428.1111
call fcn.00459600
mov byte [ebp - 4], 7
mov eax, dword [ebx - 8]
mov edi, dword [ebp - 0x234]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, 0x104
or eax, ecx
jge 0x489689
mov eax, 0x104
lea ecx, [ebp - 0x264]
call fcn.00459760
mov ebx, dword [ebp - 0x264]
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.004e73a6
add esp, 8
test eax, eax
js 0x489fcf
cmp eax, dword [ebx - 8]
jg 0x489fcf
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 - 0x234]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x4896fb
mov eax, 0x104
lea ecx, [ebp - 0x24c]
call fcn.00459760
mov edi, dword [ebp - 0x24c]
push esi
push 0x104
push edi
push 0
push 0x5250c8
push str.Product
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [edi - 8]
push eax
push edi
call fcn.004e73a6
add esp, 8
test eax, eax
js 0x489fcf
cmp eax, dword [edi - 8]
jg 0x489fcf
mov esi, dword [ebp - 0x22c]
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 0x489803
test ecx, ecx
jne 0x489803
test edx, edx
jne 0x489803
mov eax, dword [0x551f18]
mov edx, dword [eax + 0xc]
mov ecx, 0x551f18
call edx
add eax, 0x10
mov dword [ebp - 0x224], eax
push edi
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x240]
mov ecx, dword [ebp - 0x230]
mov edx, dword [esi + 0x54]
push ebx
push eax
mov eax, dword [ebp - 0x23c]
push ecx
mov ecx, dword [ebp - 0x258]
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 - 0x224]
call fcn.00459840
mov edi, dword [ebp - 0x224]
add esp, 0x20
add edi, 0xfffffff0
mov eax, edi
mov dword [ebp - 0x244], esp
mov ebx, esp
call fcn.0045d020
add eax, 0x10
mov dword [ebx], eax
call fcn.00474770
mov dword [ebp - 0x254], 1
mov byte [ebp - 4], 7
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4898f8
mov ecx, dword [edi]
push edi
jmp 0x4898f1
mov edx, dword [0x551f18]
mov eax, dword [edx + 0xc]
mov ecx, 0x551f18
call eax
add eax, 0x10
mov dword [ebp - 0x228], eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 9
call fcn.00458be0
mov edx, dword [0x551f18]
mov eax, dword [edx + 0xc]
mov ecx, 0x551f18
call eax
add eax, 0x10
mov dword [ebp - 0x224], eax
push edi
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x228]
mov edx, dword [ebp - 0x240]
mov eax, dword [ebp - 0x230]
push ebx
push ecx
mov ecx, dword [esi + 0x54]
push edx
mov edx, dword [ebp - 0x23c]
push eax
mov eax, dword [ebp - 0x258]
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 - 0x224]
call fcn.00459840
mov edi, dword [ebp - 0x224]
add esp, 0x24
add edi, 0xfffffff0
mov eax, edi
mov dword [ebp - 0x244], esp
mov ebx, esp
call fcn.0045d020
add eax, 0x10
mov dword [ebx], eax
call fcn.00474770
mov dword [ebp - 0x254], 0
mov byte [ebp - 4], 9
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4898d2
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 0x4898f8
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x551f18]
mov eax, dword [edx + 0xc]
mov ecx, 0x551f18
call eax
add eax, 0x10
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 0xb
mov edx, dword [0x551f18]
mov eax, dword [edx + 0xc]
mov ecx, 0x551f18
call eax
add eax, 0x10
mov dword [ebp - 0x244], eax
mov byte [ebp - 4], 0xc
mov edx, dword [0x551f18]
mov eax, dword [edx + 0xc]
mov ecx, 0x551f18
call eax
add eax, 0x10
mov dword [ebp - 0x260], eax
mov byte [ebp - 4], 0xd
mov edx, dword [0x551f18]
mov eax, dword [edx + 0xc]
mov ecx, 0x551f18
call eax
add eax, 0x10
mov dword [ebp - 0x228], eax
push 0x51d754
lea ecx, [ebp - 0x224]
push ecx
xor ebx, ebx
mov byte [ebp - 4], 0xe
call fcn.00459510
mov edi, dword [ebp - 0x22c]
cmp dword [edi + 0x6c], ebx
mov ebx, 1
je 0x48999d
push 0x51fa04
lea edx, [ebp - 0x228]
push edx
jmp 0x4899a9
push 0x51fa08
lea eax, [ebp - 0x228]
push eax
call fcn.00459510
lea esi, [ebp - 0x220]
mov eax, edi
call fcn.00473e70
lea edi, [ebp - 0x244]
mov byte [ebp - 4], 0xf
call fcn.0045cf30
mov byte [ebp - 4], 0xe
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 0x4899f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x22c]
lea esi, [ebp - 0x220]
mov eax, ebx
call fcn.00473ea0
lea edi, [ebp - 0x260]
mov byte [ebp - 4], 0x10
call fcn.0045cf30
mov byte [ebp - 4], 0xe
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 0x489a38
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x551f18]
mov eax, dword [edx + 0xc]
mov ecx, 0x551f18
call eax
add eax, 0x10
mov dword [ebp - 0x238], eax
mov byte [ebp - 4], 0x11
mov edx, dword [0x551f18]
mov eax, dword [edx + 0xc]
mov ecx, 0x551f18
call eax
add eax, 0x10
mov dword [ebp - 0x250], eax
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x228]
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x244]
push ecx
mov ecx, dword [ebp - 0x224]
push edx
mov edx, dword [ebp - 0x230]
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 - 0x238]
call fcn.00459840
mov eax, dword [ebp - 0x238]
add esp, 0x1c
add eax, 0xfffffff0
mov dword [ebp - 0x220], esp
mov esi, esp
call fcn.0045d020
add eax, 0x10
mov dword [esi], eax
mov esi, ebx
call fcn.00474770
mov edx, dword [0x551f18]
mov eax, dword [edx + 0xc]
mov ecx, 0x551f18
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x248], esi
lea ecx, [ebp - 0x25c]
push ecx
mov byte [ebp - 4], 0x13
call fcn.00490980
mov byte [ebp - 4], 0x14
mov eax, dword [esi - 8]
mov edi, dword [ebp - 0x234]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x489b30
mov eax, 0x104
lea ecx, [ebp - 0x248]
call fcn.00459760
mov esi, dword [ebp - 0x248]
push edi
push 0x104
push esi
push 0
push 0x5250c8
push str.Product
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edx, dword [ebp - 0x25c]
mov eax, dword [ebp - 0x254]
mov ecx, dword [ebp - 0x23c]
push edx
mov edx, dword [ebp - 0x230]
push eax
mov eax, dword [ebx + 0x54]
push ecx
push edx
push eax
push esi
push str.http:__log.nvwa.baofeng.com_logger.php
push str._s_categoryinstallruid_sclientid_st1veriosn_sbid_sisnew_dmac_s
lea edi, [ebp - 0x238]
call fcn.00459840
add esp, 0x20
lea ecx, [ebp - 0x220]
push ecx
mov dword [ebp - 0x220], 0
call dword [sym.imp.SensApi.dll_IsNetworkAlive]
test eax, eax
jne 0x489bd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x489c64
push 0
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x489c64
mov al, byte [ebp - 0x220]
test al, 0x20
jne 0x489c64
test al, 7
je 0x489c64
add ebx, 0xb4
push ebx
lea eax, [ebp - 0x220]
push eax
mov ebx, str.crt.dll
call fcn.0045ce50
add esp, 8
mov edi, dword [ebp - 0x22c]
mov byte [ebp - 4], 0x15
cmp dword [edi + 0x4c], 0
jne 0x489c17
mov ecx, dword [ebp - 0x220]
push 8
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [edi + 0x4c], eax
mov eax, dword [edi + 0x4c]
test eax, eax
je 0x489c3c
push str.CrtNavigateHttpUrl_Direct
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x489c3c
mov edx, dword [ebp - 0x238]
push 1
push edx
call eax
add esp, 8
mov byte [ebp - 4], 0x14
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 0x489c62
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, edi
mov ecx, dword [ebp - 0x25c]
mov edx, dword [ebp - 0x254]
mov eax, dword [ebp - 0x23c]
push ecx
mov ecx, dword [ebp - 0x230]
push edx
mov edx, dword [ebx + 0x54]
push eax
push ecx
push edx
push esi
push str.categoryinstallruid_sclientid_st1veriosn_sbid_sisnew_dmac_s
lea edi, [ebp - 0x250]
call fcn.00459840
add esp, 0x1c
lea eax, [ebp - 0x268]
push eax
mov ecx, 0x51d754
call fcn.00459600
mov byte [ebp - 4], 0x16
mov eax, dword [ebp - 0x268]
cmp dword [eax - 0xc], 0
je 0x489cc7
push eax
push str.wpfrom_s
call fcn.0048d900
add esp, 8
lea ecx, [ebx + 0xd0]
push ecx
mov ecx, dword [ebp - 0x250]
lea edx, [ebp - 0x248]
call fcn.0048fa80
mov ecx, dword [ebp - 0x248]
call fcn.00490650
fld qword [ebx + 0x38]
mov edx, dword [ebx + 0x40]
mov eax, dword [ebx + 0x44]
mov ecx, dword [ebp - 0x230]
push edx
mov edx, dword [ebx + 0x54]
push eax
sub esp, 0x20
fstp qword [esp + 0x18]
lea edi, [ebp - 0x238]
fld qword [ebx + 0x30]
fstp qword [esp + 0x10]
fld qword [ebx + 0x28]
fstp qword [esp + 8]
fld qword [ebx + 0x20]
fstp qword [esp]
push ecx
push edx
push str.http:__action.logger.baofeng.com_ninstall_action.html
push str._s_type4uid_sver_send1release_.2fprepare_.2finstallation_.2fdelay_.2fspandirinstall_dsystemdirinstall_d
call fcn.00459840
mov edi, dword [ebp - 0x238]
add esp, 0x34
add edi, 0xfffffff0
mov eax, edi
mov dword [ebp - 0x254], esp
mov esi, esp
call fcn.0045d020
add eax, 0x10
mov dword [esi], eax
mov esi, ebx
call fcn.00474770
mov byte [ebp - 4], 0x14
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x489d7d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x13
mov eax, dword [ebp - 0x25c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x489da3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x12
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 0x489dc9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x11
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 0x489def
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 0x489e0c
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 0x489e32
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 - 0x260]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x489e58
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 - 0x244]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x489e7e
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 - 0x224]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x489ea4
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 - 0x230]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x489eca
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 0x489ef0
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 - 0x264]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x489f16
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 - 0x23c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x489f3c
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 - 0x258]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x489f62
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 - 0x240]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x489f88
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 - 0x234]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x489fb1
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.004e4900
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.0045a490
int3