Function at 0x407890
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525dc3
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x57f540]
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 dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
xor ecx, ecx
mov word [ebp - 0x30], cx
mov ecx, eax
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
lea esi, [ecx + 2]
jmp 0x4078e0
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x4078e0
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x30]
call fcn.004017b0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x407aff
push 0x55f000
xor edi, edi
mov ecx, esi
call fcn.00408cc0
cmp eax, ebx
je 0x407aff
mov eax, dword [0x583b98]
or edi, 0xffffffff
cmp eax, 0xffffffff
jae 0x40792c
mov edi, eax
mov ecx, dword [0x583b88]
mov esi, 8
cmp dword [0x583b9c], esi
jae 0x407944
mov ecx, 0x583b88
push ecx
lea ecx, [ebp - 0x30]
call fcn.00408cc0
cmp eax, ebx
je 0x4079b2
mov eax, dword [0x583bb4]
or edi, 0xffffffff
cmp eax, 0xffffffff
jae 0x407960
mov edi, eax
mov ecx, dword [0x583ba4]
cmp dword [0x583bb8], esi
jae 0x407973
mov ecx, 0x583ba4
push ecx
lea ecx, [ebp - 0x30]
call fcn.00408cc0
cmp eax, ebx
je 0x4079b2
lea edx, [ebp - 0x4c]
push 0x583ba4
push edx
lea ebx, [ebp - 0x30]
call fcn.00409450
add esp, 8
mov edi, eax
mov esi, ebx
mov byte [ebp - 4], 2
call fcn.00405a80
lea esi, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.004014a0
mov esi, 8
push 0x4e20
call fcn.0040ba93
mov eax, dword [ebp - 0x30]
add esp, 4
cmp dword [ebp - 0x1c], esi
jae 0x4079ca
lea eax, [ebp - 0x30]
push 0
push 1
push eax
call dword [sym.imp.WININET.dll_InternetCheckConnectionW]
test eax, eax
je 0x4079e1
cmp dword [ebp - 0x1c], esi
jmp 0x407b03
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x3e8
mov ebx, eax
call fcn.0040ba93
add esp, 4
mov edi, eax
push 0xa
push edi
push ebx
call fcn.0051a496
mov esi, 0xf
mov eax, edi
add esp, 0xc
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x74], 0
mov byte [ebp - 0x84], 0
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407a20
sub eax, edx
push eax
push edi
lea ecx, [ebp - 0x84]
call fcn.004016b0
lea ecx, [ebp - 0x4c]
push str.Error_Code:
push ecx
lea ebx, [ebp - 0x84]
mov byte [ebp - 4], 3
call fcn.00402160
mov edi, 0x10
add esp, 8
cmp dword [ebp - 0x38], edi
jb 0x407a67
mov edx, dword [ebp - 0x4c]
push edx
call fcn.0040ba88
add esp, 4
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x68]
call fcn.004067b0
add esp, 4
lea ecx, [ebp - 0x4c]
push str.InternetCheckConnection_failed_for
push ecx
lea ebx, [ebp - 0x68]
mov byte [ebp - 4], 4
call fcn.00402160
add esp, 8
cmp dword [ebp - 0x38], edi
jb 0x407a9f
mov edx, dword [ebp - 0x4c]
push edx
call fcn.0040ba88
add esp, 4
cmp dword [ebp - 0x54], edi
jb 0x407ab0
mov eax, dword [ebp - 0x68]
push eax
call fcn.0040ba88
add esp, 4
xor eax, eax
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x68], al
cmp dword [ebp - 0x70], edi
jb 0x407acf
mov ecx, dword [ebp - 0x84]
push ecx
call fcn.0040ba88
add esp, 4
cmp dword [ebp - 0x1c], 8
jb 0x407ae1
mov edx, dword [ebp - 0x30]
push edx
call fcn.0040ba88
add esp, 4
xor eax, 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.004ff71d
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1c], 8
jb 0x407b11
mov eax, dword [ebp - 0x30]
push eax
call fcn.0040ba88
add esp, 4
mov eax, 1
jmp 0x407ae3