Function at 0x4188d0
Capabilities:
Check internet connectivity via wininet

Disassembly:
push 0xffffffffffffffff
push 0x4e54f6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x174
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x40]
push 3
xor ebp, ebp
mov ebx, 2
push ecx
mov ecx, edi
mov dword [esp + 0x1c], 1
mov dword [esp + 0x48], str.StormUpdate.exe
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], str.StormUpdate.dll
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], str.stormTray.exe
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebx
call fcn.00418d90
cmp eax, ebp
je 0x41897b
lea edx, [esp + 0x10]
mov ecx, edi
push edx
call fcn.00418ce0
cmp eax, ebp
je 0x41897b
call fcn.004c3eb0
mov ecx, eax
call fcn.004c3ee0
cmp eax, ebp
je 0x41897b
call fcn.00419040
mov ecx, eax
call fcn.00431f50
cmp eax, ebp
jne 0x418c3c
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
dec eax
push 0x10
neg eax
push 0x52ab10
push 0x52aae0
sbb eax, eax
push ebp
mov dword [esp + 0x20], eax
call esi
lea eax, [esp + 0x60]
push ebp
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
cmp eax, ebp
jne 0x4189dd
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call fcn.00418ce0
test eax, eax
push 0x10
push 0x52ab10
je 0x4189ce
push 0x52aa80
jmp 0x418c39
push 0x52aa24
push ebp
call esi
xor eax, eax
jmp 0x418c41
cmp dword [esp + 0x10], ebp
jne 0x418a1f
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
lea edx, [esp + 0x64]
push 0x104
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x64]
push str...StormUpdate.exe
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [esp + 0x64]
push ebp
push ecx
call fcn.004278e0
add esp, 8
jmp 0x418bb6
push ebp
lea ecx, [esp + 0x68]
call fcn.004227e0
push str.http:__download.baofeng.com_stormII_stormfix.exe
lea ecx, [esp + 0x68]
mov dword [esp + 0x190], ebp
call fcn.004229a0
lea ecx, [esp + 0x64]
call sub.MFC42.DLL_CDialog::DoModal
cmp eax, ebx
jne 0x418b4f
lea edx, [esp + 0x14]
mov ecx, edi
push edx
call fcn.00418ce0
cmp eax, ebp
push 0x10
push 0x52ab10
je 0x418ad9
push 0x52aa80
push ebp
call esi
lea ecx, [esp + 0x17c]
mov dword [esp + 0x18c], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14c]
mov byte [esp + 0x18c], 3
call fcn.004dd850
lea ecx, [esp + 0x108]
mov byte [esp + 0x18c], bl
call sub.MFC42.DLL_CProgressCtrl::CProgressCtrl
lea ecx, [esp + 0xc8]
mov byte [esp + 0x18c], 1
call sub.MFC42.DLL_CStatic::CStatic
lea ecx, [esp + 0x64]
mov dword [esp + 0x18c], 0xffffffff
call sub.MFC42.DLL_CDialog::CDialog
jmp 0x418c3c
push 0x52a984
push ebp
call esi
lea ecx, [esp + 0x17c]
mov dword [esp + 0x18c], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14c]
mov byte [esp + 0x18c], 7
call fcn.004dd850
lea ecx, [esp + 0x108]
mov byte [esp + 0x18c], 6
call sub.MFC42.DLL_CProgressCtrl::CProgressCtrl
lea ecx, [esp + 0xc8]
mov byte [esp + 0x18c], 5
call sub.MFC42.DLL_CStatic::CStatic
lea ecx, [esp + 0x64]
mov dword [esp + 0x18c], 0xffffffff
call sub.MFC42.DLL_CDialog::CDialog
xor eax, eax
jmp 0x418c41
lea ecx, [esp + 0x17c]
mov dword [esp + 0x18c], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14c]
mov byte [esp + 0x18c], 0xb
call fcn.004dd850
lea ecx, [esp + 0x108]
mov byte [esp + 0x18c], 0xa
call sub.MFC42.DLL_CProgressCtrl::CProgressCtrl
lea ecx, [esp + 0xc8]
mov byte [esp + 0x18c], 9
call sub.MFC42.DLL_CStatic::CStatic
lea ecx, [esp + 0x64]
mov dword [esp + 0x18c], 0xffffffff
call sub.MFC42.DLL_CDialog::CDialog
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.00418ce0
test eax, eax
jne 0x418bd9
push 0x10
push 0x52ab10
push 0x52a928
push ebp
call esi
xor eax, eax
jmp 0x418c41
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push 3
push edx
mov ecx, edi
mov dword [esp + 0x24], str.StormUpdate.exe
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], str.StormUpdate.dll
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], str.stormTray.exe
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebx
call fcn.00418d90
test eax, eax
jne 0x418c2e
push 0x10
push 0x52ab10
push 0x52a8c4
jmp 0x418c39
push ebp
push 0x52ab10
push 0x52a8a4
push ebp
call esi
mov eax, 1
mov ecx, dword [esp + 0x184]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x180
ret