Function at 0x4088a0
Capabilities:
Check internet connectivity via wininet

Disassembly:
push 0xffffffffffffffff
push 0x52f272
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x178
mov eax, dword [0x590f68]
push ebp
mov ebp, ecx
mov dword [esp + 0x178], eax
push edi
mov dword [esp + 0x24], ebp
push 0x400
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18c], 1
call fcn.00515ef3
mov byte [esp + 0x188], 2
call fcn.00503c89
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 8], edi
mov eax, dword [ebp + 8]
test eax, eax
mov byte [esp + 0x188], 3
mov dword [esp + 0x10], 0
je 0x40892f
push 0
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.wininet.dll_InternetGetConnectedState]
test eax, eax
jne 0x4089d3
mov ecx, dword [esp + 0x1a0]
test ecx, ecx
je 0x408944
push 0x54f134
call fcn.005093d7
lea eax, [edi - 0x10]
mov byte [esp + 0x188], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408966
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x28]
mov byte [esp + 0x188], 1
call fcn.005162e0
mov eax, dword [esp + 0x190]
add eax, 0xfffffff0
mov byte [esp + 0x188], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4089a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x194]
add eax, 0xfffffff0
mov dword [esp + 0x188], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4089cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x408e67
push esi
mov esi, dword [esp + 0x1a4]
test esi, esi
je 0x4089eb
push 0x54f110
mov ecx, esi
call fcn.005093d7
push ebx
lea eax, [esp + 0x198]
push eax
mov ecx, ebp
call fcn.00408510
mov ebx, eax
test ebx, ebx
je 0x408dcb
test esi, esi
je 0x408a87
mov eax, dword [esp + 0x198]
mov esi, dword [eax - 0xc]
push 0x2f
push eax
call fcn.004ea4f2
add esp, 8
test eax, eax
jne 0x408a27
or eax, 0xffffffff
jmp 0x408a2e
sub eax, dword [esp + 0x198]
sub esi, eax
dec esi
push esi
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x1a0]
call fcn.00402d10
mov eax, dword [eax]
mov ecx, dword [esp + 0x1a8]
push eax
mov byte [esp + 0x194], 4
call fcn.005093d7
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x190], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408a80
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [esp + 0x1a8]
mov eax, dword [esp + 0x1a4]
push esi
push eax
lea ecx, [esp + 0x38]
push ecx
push ebx
mov ecx, ebp
call fcn.004082f0
push ebx
call dword [sym.imp.wininet.dll_InternetCloseHandle]
mov eax, dword [ebp + 4]
test eax, eax
jne 0x408d2c
mov edx, dword [esp + 0x30]
push 0
push 0
push 0
lea ecx, [esp + 0x3c]
call dword [edx + 0x28]
lea ecx, [esp + 0x30]
call fcn.00516072
lea ecx, [esp + 0x30]
mov esi, eax
call fcn.00515fc0
push 0
push esi
push eax
mov dword [esp + 0x24], eax
call fcn.004d7ae0
mov ebx, eax
lea eax, [esp + 0x64]
push eax
push 0xffffffffffffffff
push ebx
mov dword [esp + 0x2c], ebx
call fcn.004d5680
mov eax, dword [esp + 0x70]
add esp, 0x18
xor ebp, ebp
test eax, eax
mov dword [esp + 0x1c], eax
jle 0x408d23
lea esp, [esp]
lea ecx, [esp + 0x58]
push ecx
push ebp
push ebx
call fcn.004d5680
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0x20]
push 0x54f100
push eax
call fcn.00404c00
mov ecx, dword [esp + 0x1c0]
mov edi, dword [esp + 0x28]
add esp, 0x18
test ecx, ecx
je 0x408b48
push edi
call fcn.005093d7
mov eax, dword [esp + 0x1a0]
test eax, eax
jne 0x408c14
lea eax, [esp + 0x5c]
lea ecx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408b60
sub eax, ecx
push eax
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x18]
call fcn.00401720
push 4
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x18]
call fcn.00402d10
mov ecx, eax
mov byte [esp + 0x190], 5
call fcn.00402cb0
mov eax, dword [eax]
push 0x54f0f8
push eax
call fcn.004ea679
mov ebx, eax
mov eax, dword [esp + 0x2c]
add esp, 8
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
mov byte [esp + 0x190], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408bd5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x408cfc
lea eax, [esp + 0x19c]
push eax
lea ecx, [esp + 0x14]
call fcn.00402e60
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x14]
call fcn.00405390
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push edi
push ebp
push edx
call fcn.004d7b90
add esp, 0xc
jmp 0x408d00
cmp dword [esp + 0x160], 0x10
je 0x408d04
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x14]
call fcn.004018b0
mov esi, dword [esp + 0x10]
push 0x2f
push esi
call fcn.004ea4f2
add esp, 8
test eax, eax
je 0x408c99
sub eax, esi
mov ecx, eax
cmp ecx, 0xffffffff
jle 0x408c99
mov eax, dword [esi - 0xc]
sub eax, ecx
dec eax
push eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x18]
call fcn.00402d10
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x194], 6
call fcn.00402e60
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x190], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408c99
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1a0]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.00402ed0
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x194], 7
call fcn.00402e60
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x190], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408ceb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edi, dword [esp + 0x10]
push edi
push ebp
push ebx
call fcn.004d7b90
add esp, 0xc
jmp 0x408d04
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x2c]
mov ecx, esi
call fcn.00408270
mov eax, dword [esi + 4]
test eax, eax
jne 0x408d23
mov eax, dword [esp + 0x1c]
inc ebp
cmp ebp, eax
jl 0x408b10
push ebx
call fcn.004d7ef0
add esp, 4
mov eax, dword [esp + 0x18]
push eax
call fcn.004ea481
lea eax, [edi - 0x10]
add esp, 4
mov byte [esp + 0x190], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408d5b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x30]
mov byte [esp + 0x190], 1
call fcn.005162e0
mov eax, dword [esp + 0x198]
add eax, 0xfffffff0
mov byte [esp + 0x190], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408d95
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x19c]
add eax, 0xfffffff0
mov dword [esp + 0x190], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408dc1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
jmp 0x408e65
test esi, esi
je 0x408ddb
push 0x54f0d4
mov ecx, esi
call fcn.005093d7
lea eax, [edi - 0x10]
mov byte [esp + 0x190], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408dfd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x30]
mov byte [esp + 0x190], 1
call fcn.005162e0
mov eax, dword [esp + 0x198]
add eax, 0xfffffff0
mov byte [esp + 0x190], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408e37
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x19c]
add eax, 0xfffffff0
mov dword [esp + 0x190], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408e63
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
pop ebx
pop esi
mov ecx, dword [esp + 0x180]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x178]
pop ebp
call fcn.004e9911
add esp, 0x184
ret 0x14