Function at 0x40aa80
Capabilities:
Check internet connectivity via wininet

Disassembly:
mov eax, 0x466b5d
call fcn.00452ab4
sub esp, 0xb8
push ebx
push esi
push edi
mov esi, str.App::PreparePage_ApplyResources_964
mov dword [ebp - 0x10], esp
push esi
call fcn.00450e4d
pop ecx
mov dword [ebp - 0x20], eax
push dword [ebp + 0xc]
xor edi, edi
push esi
push str.___s__idx_d_
push edi
mov dword [ebp - 4], edi
call fcn.004418d2
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
add esp, 0x10
mov byte [ebp - 4], 1
call fcn.0040c6a2
push edi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x1c], eax
call fcn.004438e0
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x74]
push eax
push str.readyState
lea eax, [ebp - 0x5c]
push eax
mov byte [ebp - 4], 2
call fcn.00446900
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00445630
lea ecx, [ebp - 0x5c]
mov ebx, eax
mov byte [ebp - 4], 2
call fcn.00445e90
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 1
call fcn.00445e90
cmp ebx, 1
jge 0x40ab2c
push str.__no_resources_
push edi
call fcn.004418d2
pop ecx
pop ecx
jmp 0x40ae61
jle 0x40ab42
push ebx
push str.__already_done__rs_d
push edi
call fcn.004418d2
add esp, 0xc
jmp 0x40af24
push 0x472e5a
lea ecx, [ebp - 0x74]
call fcn.00443910
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x74]
push eax
push 0x475bdc
lea eax, [ebp - 0xc4]
push eax
mov byte [ebp - 4], 4
call fcn.00446900
lea ecx, [ebp - 0xb0]
push ecx
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.004454e0
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 8
call fcn.00445e90
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 7
call fcn.00445e90
mov dword [ebp - 0x18], edi
mov edi, str.controls
mov ecx, dword [ebp - 0x1c]
push edi
call fcn.00447310
mov ecx, eax
call fcn.00444a50
cmp dword [ebp - 0x18], eax
jae 0x40ae52
mov ecx, dword [ebp - 0x1c]
push edi
call fcn.00447310
push dword [ebp - 0x18]
mov ecx, eax
call fcn.00446c20
push 0x472e5a
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x24], eax
call fcn.00443910
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x5c]
push eax
push 0x475bdc
lea eax, [ebp - 0x8c]
push eax
mov byte [ebp - 4], 9
call fcn.00446900
lea ecx, [ebp - 0x40]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.004454e0
push str.browser
mov ecx, eax
mov byte [ebp - 4], 0xb
call fcn.00418f81
xor esi, esi
push esi
cmp eax, esi
push 1
lea ecx, [ebp - 0x40]
setne bl
call fcn.0041b413
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 9
call fcn.00445e90
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 7
call fcn.00445e90
test bl, bl
je 0x40ac50
inc dword [ebp - 0x18]
jmp 0x40aba0
push str.loadStart
lea ecx, [ebp - 0x40]
call fcn.0041c1c2
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push edi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xc
call fcn.0041018c
push esi
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
call fcn.0041b413
push str.mainoffer
lea ecx, [ebp - 0xb0]
call fcn.00418f81
cmp eax, esi
jne 0x40ad0a
push 0x472e5a
lea ecx, [ebp - 0x5c]
call fcn.00443910
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x5c]
push eax
push 0x475280
lea eax, [ebp - 0x8c]
push eax
mov byte [ebp - 4], 0xd
call fcn.00446900
lea ecx, [ebp - 0x40]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0xe
call fcn.004454e0
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0x11
call fcn.00445e90
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0x10
call fcn.00445e90
lea eax, [edi + 0x248]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040b001
push esi
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
call fcn.0041b413
jmp 0x40ad8d
push str.offer
lea ecx, [ebp - 0xb0]
call fcn.00418f81
cmp eax, esi
jne 0x40ad8d
push 0x472e5a
lea ecx, [ebp - 0x5c]
call fcn.00443910
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x5c]
push eax
push str.frame
lea eax, [ebp - 0x8c]
push eax
mov byte [ebp - 4], 0x12
call fcn.00446900
lea ecx, [ebp - 0x40]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x13
call fcn.004454e0
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0x16
call fcn.00445e90
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0x15
call fcn.00445e90
cmp dword [ebp - 0x2c], esi
jbe 0x40acf6
mov ecx, dword [ebp - 0x1c]
push str.offers
call fcn.00447310
jmp 0x40acec
mov edi, dword [ebp + 8]
xor esi, esi
push esi
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
setne al
test al, al
jne 0x40ae80
push 0x472e5a
lea ecx, [ebp - 0x94]
call fcn.0041c1c2
push str.INET_NEEDED
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 0x17
push dword [0x490704]
call fcn.0041db8b
mov byte [ebp - 4], 0x18
cmp dword [eax + 0x18], 0x10
jb 0x40addf
mov eax, dword [eax + 4]
jmp 0x40ade2
add eax, 4
push eax
lea ecx, [ebp - 0x40]
call fcn.0041c1c2
lea eax, [ebp - 0x40]
push eax
push 0x35
mov byte [ebp - 4], 0x19
mov ecx, dword [0x490700]
lea edi, [ebp - 0x94]
pop eax
call fcn.00409d02
cmp eax, 2
setne bl
xor edi, edi
push edi
push 1
lea ecx, [ebp - 0x40]
call fcn.0041b413
push edi
push 1
lea ecx, [ebp - 0x64]
call fcn.0041b413
push edi
push 1
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 7
call fcn.0041b413
test bl, bl
jne 0x40ad88
push str.__no_inet_
push 1
call fcn.004418d2
pop ecx
pop ecx
call fcn.0042018d
push 0
push 1
lea ecx, [ebp - 0xb0]
call fcn.0041b413
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x20]
call fcn.0041bdf9
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
push str.createStart
lea ecx, [ebp - 0x40]
call fcn.0041c1c2
push dword [ebp + 0xc]
lea ecx, [ebp - 0x40]
push edi
mov byte [ebp - 4], 0x1a
call fcn.0041018c
push esi
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
call fcn.0041b413
push dword [ebp + 0xc]
push dword [ebp - 0x24]
push edi
call fcn.0040b288
push str.createEnd
lea ecx, [ebp - 0x40]
call fcn.0041c1c2
push dword [ebp + 0xc]
lea ecx, [ebp - 0x40]
push edi
mov byte [ebp - 4], 0x1b
call fcn.0041018c
push esi
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
call fcn.0041b413
push 2
lea ecx, [ebp - 0x5c]
call fcn.004438e0
mov ecx, dword [ebp - 0x1c]
push str.readyState
mov byte [ebp - 4], 0x1c
call fcn.00447310
lea ecx, [ebp - 0x5c]
push ecx
mov ecx, eax
call fcn.00446810
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 7
call fcn.00445e90
push esi
push 1
lea ecx, [ebp - 0xb0]
call fcn.0041b413
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x20]
call fcn.0041bdf9
mov al, 1
jmp 0x40ae6f