Function at 0x4932b0
Capabilities:
Check if file exists
Check internet connectivity via wininet
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee6b2
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x521390]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [ebx + 0x24], 0
je 0x4932f3
cmp byte [ebx + 0x26], 0
je 0x4932f3
mov dword [0x5284a8], 3
mov eax, dword [ebx + 0x1a0]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4934f4
lea ecx, [ebp - 0x21c]
xor esi, esi
push ecx
mov dword [ebp - 0x21c], esi
call dword [sym.imp.SensApi.dll_IsNetworkAlive]
test eax, eax
jne 0x49335b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
je 0x4934f4
push esi
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x4934f4
mov al, byte [ebp - 0x21c]
test al, 0x20
jne 0x4934f4
test al, 7
je 0x4934f4
cmp dword [ebx + 0x230], esi
jne 0x4934f4
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x21c], eax
push str.5.15.0730.1111
push str.http:__action.logger.baofeng.com_ninstall_action.html
push str._s_type3uidver_sstartmi_overendrls2envbitmovie
lea edi, [ebp - 0x21c]
mov dword [ebp - 4], esi
call fcn.00458b70
mov edi, dword [ebp - 0x21c]
add esp, 8
add edi, 0xfffffff0
mov esi, esp
mov eax, edi
mov dword [ebp - 0x224], esp
mov dword [ebp - 0x228], esi
call fcn.0045c3c0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 2
mov esi, dword [0x5284a0]
mov byte [ebp - 4], 0
call fcn.004674c0
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.004cfd40
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x218]
call fcn.0045ab70
mov edx, 0x4f8eb8
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.0045a690
mov edx, str.realEnc.xml
lea eax, [ebp - 0x220]
call fcn.0045a690
mov ecx, dword [ebp - 0x220]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49348a
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [ebp - 0x220]
push ecx
mov esi, esp
add eax, 0xfffffff0
mov dword [ebp - 0x228], esp
mov dword [ebp - 0x224], esi
call fcn.0045c3c0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 5
push ebx
mov byte [ebp - 4], 3
call fcn.00493510
call dword [sym.imp.ole32.dll_CoUninitialize]
mov edx, dword [ebx + 0x70]
mov eax, dword [edx + 0x3c]
lea ecx, [ebx + 0x70]
push 0xd927ca1
call eax
test eax, eax
je 0x4934a4
push eax
call fcn.004a7290
mov dword [ebx + 0x230], 1
mov byte [ebp - 4], 0
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 0x4934d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4934f4
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cbf11
mov esp, ebp
pop ebp
ret