Function at 0x408c90
Capabilities:
Check internet connectivity via wininet
Print debug messages

Disassembly:
mov eax, 0x1001c
call fcn.00464800
mov eax, dword [0x48b2b0]
xor eax, esp
mov dword [esp + 0x10018], eax
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
push edi
lea esi, [ebx + 0x38]
push esi
call ebp
xor edi, edi
push esi
mov dword [ebx + 0x34], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x408d03
push str.No_Internet_Sleep
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
xor al, al
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x10018]
xor ecx, esp
call fcn.004584fe
add esp, 0x1001c
ret
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x18]
push edx
push edi
push str.rpcap:__
call sub.wpcap.dll_pcap_findalldevs_ex
add esp, 0x10
cmp eax, 0xffffffff
jne 0x408d45
push str.emnu_pcap_findalldevs_ex_error_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor al, al
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x10018]
xor ecx, esp
call fcn.004584fe
add esp, 0x1001c
ret
lea eax, [ebx + 0x68]
push eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x1c], eax
call ebp
mov esi, dword [esp + 0x14]
mov dword [esp + 0xc], esi
cmp esi, edi
je 0x408ec7
jmp 0x408d74
mov esi, dword [esp + 0xc]
cmp dword [esi + 8], edi
je 0x408ec7
push 0x108
call fcn.00458595
mov ecx, dword [esi + 4]
mov ebp, eax
add esp, 4
mov edx, ebp
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x408d91
mov esi, dword [esi + 0xc]
cmp esi, edi
je 0x408db0
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
mov dword [ebp + 0x100], ecx
jmp 0x408dba
mov dword [ebp + 0x100], 0xffffff
mov eax, dword [esp + 0x10]
mov dword [ebp + 0x104], eax
inc eax
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x2c], eax
mov eax, ebp
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], edi
mov dword [esp + 0x38], esp
mov byte [esi + 4], 0
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408de5
sub eax, ecx
push eax
push ebp
mov ecx, esi
call fcn.00403510
mov ecx, ebx
call fcn.00408f10
test al, al
jne 0x408eb5
push 0x60
call fcn.00458595
add esp, 4
cmp eax, edi
je 0x408e48
mov dword [eax + 0x28], edi
mov dword [eax + 0x2c], 0xf
mov byte [eax + 0x18], 0
mov dword [eax + 0x38], edi
mov dword [eax + 0x3c], edi
mov dword [eax + 0x30], edi
mov dword [eax + 0x34], edi
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0x40], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov dword [eax + 0x50], 1
mov edi, eax
push edi
lea esi, [ebx + 0x28]
call fcn.0041a9e0
lea esi, [ebx + 0x38]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [ebx + 0x34]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
sub esp, 0x1c
mov dword [edi + 8], eax
mov ecx, esp
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], 0xf
mov byte [ecx + 4], al
mov eax, ebp
mov dword [esp + 0x38], esp
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408e85
sub eax, esi
push eax
push ebp
call fcn.00403510
push edi
call fcn.00455b90
push ebx
push 0x409100
push ebp
mov ecx, edi
mov dword [edi + 0x5c], 0x4099e0
mov dword [edi + 0x48], ebx
call fcn.00455a70
xor edi, edi
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
mov dword [esp + 0xc], eax
cmp eax, edi
jne 0x408d70
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x14]
push ecx
call sub.wpcap.dll_pcap_freealldevs
add esp, 4
push edi
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x408cd3
mov ecx, dword [esp + 0x10024]
pop edi
pop esi
pop ebp
xor ecx, esp
mov al, 1
call fcn.004584fe
add esp, 0x1001c
ret