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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ac4d
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.004595d0
push 0x28
push str.BaofengStormPlayerProfilesConfig.ini
lea ebx, [ebp - 0x234]
mov dword [ebp - 4], 0
call fcn.0045b440
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.00459820
mov eax, dword [ebp - 0x22c]
add esp, 8
lea esi, [ebp - 0x224]
call fcn.0048c420
lea edi, [ebp - 0x23c]
mov byte [ebp - 4], 6
call fcn.0045cf20
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 0x48954c
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 0x489582
mov eax, 0x104
lea ecx, [ebp - 0x240]
call fcn.00459740
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.004e7680
add esp, 8
test eax, eax
js 0x489f4f
cmp eax, dword [edi - 8]
jg 0x489f4f
xor ecx, ecx
mov dword [edi - 0xc], eax
lea edx, [ebp - 0x230]
mov word [edi + eax*2], cx
push edx
mov ecx, str.5.34.0227.1111
call fcn.004595d0
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 0x489609
mov eax, 0x104
lea ecx, [ebp - 0x264]
call fcn.00459740
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.004e7680
add esp, 8
test eax, eax
js 0x489f4f
cmp eax, dword [ebx - 8]
jg 0x489f4f
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 0x48967b
mov eax, 0x104
lea ecx, [ebp - 0x24c]
call fcn.00459740
mov edi, dword [ebp - 0x24c]
push esi
push 0x104
push edi
push 0
push 0x5250a0
push str.Product
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [edi - 8]
push eax
push edi
call fcn.004e7680
add esp, 8
test eax, eax
js 0x489f4f
cmp eax, dword [edi - 8]
jg 0x489f4f
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 0x489783
test ecx, ecx
jne 0x489783
test edx, edx
jne 0x489783
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.00459820
mov edi, dword [ebp - 0x224]
add esp, 0x20
add edi, 0xfffffff0
mov eax, edi
mov dword [ebp - 0x244], esp
mov ebx, esp
call fcn.0045d010
add eax, 0x10
mov dword [ebx], eax
call fcn.00474a70
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 0x489878
mov ecx, dword [edi]
push edi
jmp 0x489871
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.00458ba0
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.00459820
mov edi, dword [ebp - 0x224]
add esp, 0x24
add edi, 0xfffffff0
mov eax, edi
mov dword [ebp - 0x244], esp
mov ebx, esp
call fcn.0045d010
add eax, 0x10
mov dword [ebx], eax
call fcn.00474a70
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 0x489852
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 0x489878
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 0x51a1b4
lea ecx, [ebp - 0x224]
push ecx
xor ebx, ebx
mov byte [ebp - 4], 0xe
call fcn.004594e0
mov edi, dword [ebp - 0x22c]
cmp dword [edi + 0x6c], ebx
mov ebx, 1
je 0x48991d
push 0x51f9bc
lea edx, [ebp - 0x228]
push edx
jmp 0x489929
push 0x51f9c0
lea eax, [ebp - 0x228]
push eax
call fcn.004594e0
lea esi, [ebp - 0x220]
mov eax, edi
call fcn.00474170
lea edi, [ebp - 0x244]
mov byte [ebp - 4], 0xf
call fcn.0045cf20
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 0x489970
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.004741a0
lea edi, [ebp - 0x260]
mov byte [ebp - 4], 0x10
call fcn.0045cf20
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 0x4899b8
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.00459820
mov eax, dword [ebp - 0x238]
add esp, 0x1c
add eax, 0xfffffff0
mov dword [ebp - 0x220], esp
mov esi, esp
call fcn.0045d010
add eax, 0x10
mov dword [esi], eax
mov esi, ebx
call fcn.00474a70
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.00490ce0
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 0x489ab0
mov eax, 0x104
lea ecx, [ebp - 0x248]
call fcn.00459740
mov esi, dword [ebp - 0x248]
push edi
push 0x104
push esi
push 0
push 0x5250a0
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.00459820
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 0x489b58
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x489be4
push 0
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x489be4
mov al, byte [ebp - 0x220]
test al, 0x20
jne 0x489be4
test al, 7
je 0x489be4
add ebx, 0xb4
push ebx
lea eax, [ebp - 0x220]
push eax
mov ebx, str.crt.dll
call fcn.0045ce40
add esp, 8
mov edi, dword [ebp - 0x22c]
mov byte [ebp - 4], 0x15
cmp dword [edi + 0x4c], 0
jne 0x489b97
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 0x489bbc
push str.CrtNavigateHttpUrl_Direct
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x489bbc
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 0x489be2
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.00459820
add esp, 0x1c
lea eax, [ebp - 0x268]
push eax
mov ecx, 0x51a1b4
call fcn.004595d0
mov byte [ebp - 4], 0x16
mov eax, dword [ebp - 0x268]
cmp dword [eax - 0xc], 0
je 0x489c47
push eax
push str.wpfrom_s
call fcn.0048d9a0
add esp, 8
lea ecx, [ebx + 0xd0]
push ecx
mov ecx, dword [ebp - 0x250]
lea edx, [ebp - 0x248]
call fcn.0048fde0
mov ecx, dword [ebp - 0x248]
call fcn.004909b0
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.00459820
mov edi, dword [ebp - 0x238]
add esp, 0x34
add edi, 0xfffffff0
mov eax, edi
mov dword [ebp - 0x254], esp
mov esi, esp
call fcn.0045d010
add eax, 0x10
mov dword [esi], eax
mov esi, ebx
call fcn.00474a70
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 0x489cfd
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 0x489d23
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 0x489d49
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 0x489d6f
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 0x489d8c
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 0x489db2
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 0x489dd8
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 0x489dfe
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 0x489e24
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 0x489e4a
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 0x489e70
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 0x489e96
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 0x489ebc
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 0x489ee2
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 0x489f08
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 0x489f31
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.004e4be0
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.0045a480
int3