Function at 0x418720
Capabilities:
Check internet connectivity via wininet

Disassembly:
push 0xffffffffffffffff
push 0x4e2b86
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.00418be0
cmp eax, ebp
je 0x4187cb
lea edx, [esp + 0x10]
mov ecx, edi
push edx
call fcn.00418b30
cmp eax, ebp
je 0x4187cb
call fcn.004c15f0
mov ecx, eax
call fcn.004c1620
cmp eax, ebp
je 0x4187cb
call fcn.00418e90
mov ecx, eax
call fcn.00431ca0
cmp eax, ebp
jne 0x418a8c
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
dec eax
push 0x10
neg eax
push 0x527b00
push 0x527ad0
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 0x41882d
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call fcn.00418b30
test eax, eax
push 0x10
push 0x527b00
je 0x41881e
push 0x527a70
jmp 0x418a89
push 0x527a14
push ebp
call esi
xor eax, eax
jmp 0x418a91
cmp dword [esp + 0x10], ebp
jne 0x41886f
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.00427710
add esp, 8
jmp 0x418a06
push ebp
lea ecx, [esp + 0x68]
call fcn.00422450
push str.http:__download.baofeng.com_stormII_stormfix.exe
lea ecx, [esp + 0x68]
mov dword [esp + 0x190], ebp
call fcn.00422610
lea ecx, [esp + 0x64]
call sub.MFC42.DLL_CDialog::DoModal
cmp eax, ebx
jne 0x41899f
lea edx, [esp + 0x14]
mov ecx, edi
push edx
call fcn.00418b30
cmp eax, ebp
push 0x10
push 0x527b00
je 0x418929
push 0x527a70
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.004daf40
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 0x418a8c
push 0x527974
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.004daf40
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 0x418a91
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.004daf40
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.00418b30
test eax, eax
jne 0x418a29
push 0x10
push 0x527b00
push 0x527918
push ebp
call esi
xor eax, eax
jmp 0x418a91
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.00418be0
test eax, eax
jne 0x418a7e
push 0x10
push 0x527b00
push 0x5278b4
jmp 0x418a89
push ebp
push 0x527b00
push 0x527894
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