Function at 0x42b970
Capabilities:
Check internet connectivity via wininet
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56eeed
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x5d7f50]
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 ebx, dword [ebp + 8]
push str.CheckVersion
push 0
push 2
push 0x3c3
push str.AutoUpdateplusAutoUpdater.cpp
push str.CAutoUpdater::CheckVersion
mov esi, ecx
mov edi, edx
call fcn.004282b0
push 0x103
lea eax, [ebp - 0x11b]
push 0
push eax
mov byte [ebp - 0x11c], 0
call fcn.00543bb0
add esp, 0x24
lea ecx, [ebp - 0x11c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [ebp - 0x11c]
push edx
lea ecx, [ebp - 0x224]
call fcn.00402770
mov dword [ebp - 4], 0
cmp dword [esi + 4], 0
je 0x42ba23
push 0
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x42ba76
push str.InternetOkay_failed.
push 0
push 2
push 0x3ca
push str.AutoUpdateplusAutoUpdater.cpp
push str.CAutoUpdater::CheckVersion
call fcn.004282b0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
add esp, 0x18
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42ba6c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0xfffffffe
jmp 0x42bdcc
push str.update.txt
lea ecx, [ebp - 0x234]
call fcn.00402770
push eax
lea ecx, [ebp - 0x22c]
push edi
push ecx
mov byte [ebp - 4], 1
call fcn.00424720
add esp, 0xc
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x234]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42bac1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea edi, [ebp - 0x22c]
mov ecx, esi
call fcn.00429390
mov edi, eax
test edi, edi
jne 0x42bb4c
push str._hSession_failed.
push eax
push 2
push 0x3d5
push str.AutoUpdateplusAutoUpdater.cpp
push str.CAutoUpdater::CheckVersion
call fcn.004282b0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
add esp, 0x18
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42bb19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42bb42
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0xfffffffd
jmp 0x42bdcc
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
push eax
call fcn.00402b50
add eax, 0x10
add esp, 4
mov dword [ebp - 0x228], eax
push 1
push 0x5ae6dc
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 4
call fcn.004078f0
push 0xa
push str.update.txt
lea ecx, [ebp - 0x228]
call fcn.004078f0
mov esi, dword [ebp - 0x228]
push esi
push edi
call fcn.004294e0
push edi
mov byte [ebp - 0x21d], al
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp byte [ebp - 0x21d], 0
jne 0x42bc4f
push str.DownloadFile_1_failed.
push 0
push 2
push 0x3e1
push str.AutoUpdateplusAutoUpdater.cpp
push str.CAutoUpdater::CheckVersion
call fcn.004282b0
add esi, 0xfffffff0
add esp, 0x18
mov byte [ebp - 4], 3
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42bbf6
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42bc1c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42bc45
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0xfffffffc
jmp 0x42bdcc
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x42bc71
push 0
lea ecx, [ebp - 0x228]
call fcn.00402950
mov esi, dword [ebp - 0x228]
push ebx
push esi
lea ecx, [ebp - 0x230]
push ecx
call fcn.0042a3b0
push 0xff
lea edx, [ebp - 0x21b]
push 0
mov byte [ebp - 4], 5
push edx
mov byte [ebp - 0x21c], 0
call fcn.00543bb0
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
mov ecx, ebx
call fcn.00429e30
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x238]
call fcn.00402770
mov bl, 6
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x238]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x240], esp
mov edi, esp
push eax
call fcn.00402b50
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x230]
add eax, 0xfffffff0
mov dword [ebp - 0x23c], esp
mov edi, esp
push eax
call fcn.00402b50
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov byte [ebp - 4], bl
call fcn.00429830
mov edi, eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x238]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42bd35
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x230]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42bd5b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42bd7b
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42bda1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42bdca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
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.0053c99c
mov esp, ebp
pop ebp
ret 4