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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55841d
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x5adf10]
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 0x35a
push str.AutoUpdateplusAutoUpdater.cpp
push str.CAutoUpdater::CheckVersion
mov esi, ecx
mov edi, edx
call fcn.0041c870
push 0x103
lea eax, [ebp - 0x11b]
push 0
push eax
mov byte [ebp - 0x11c], 0
call fcn.005344b0
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.00405fd0
mov dword [ebp - 4], 0
cmp dword [esi + 4], 0
je 0x41f713
push 0
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x41f766
push str.InternetOkay_failed.
push 0
push 2
push 0x361
push str.AutoUpdateplusAutoUpdater.cpp
push str.CAutoUpdater::CheckVersion
call fcn.0041c870
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 0x41f75c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0xfffffffe
jmp 0x41fabc
push str.update.txt
lea ecx, [ebp - 0x234]
call fcn.00405fd0
push eax
lea ecx, [ebp - 0x22c]
push edi
push ecx
mov byte [ebp - 4], 1
call fcn.00418c70
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 0x41f7b1
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.0041d900
mov edi, eax
test edi, edi
jne 0x41f83c
push str._hSession_failed.
push eax
push 2
push 0x36c
push str.AutoUpdateplusAutoUpdater.cpp
push str.CAutoUpdater::CheckVersion
call fcn.0041c870
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 0x41f809
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 0x41f832
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0xfffffffd
jmp 0x41fabc
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
push eax
call fcn.00406330
add eax, 0x10
add esp, 4
mov dword [ebp - 0x228], eax
push 1
push 0x586cac
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 4
call fcn.00405be0
push 0xa
push str.update.txt
lea ecx, [ebp - 0x228]
call fcn.00405be0
mov esi, dword [ebp - 0x228]
push esi
push edi
call fcn.0041da50
push edi
mov byte [ebp - 0x21d], al
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp byte [ebp - 0x21d], 0
jne 0x41f93f
push str.DownloadFile_1_failed.
push 0
push 2
push 0x378
push str.AutoUpdateplusAutoUpdater.cpp
push str.CAutoUpdater::CheckVersion
call fcn.0041c870
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 0x41f8e6
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 0x41f90c
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 0x41f935
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0xfffffffc
jmp 0x41fabc
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x41f961
push 0
lea ecx, [ebp - 0x228]
call fcn.004061b0
mov esi, dword [ebp - 0x228]
push ebx
push esi
lea ecx, [ebp - 0x230]
push ecx
call fcn.0041e920
push 0xff
lea edx, [ebp - 0x21b]
push 0
mov byte [ebp - 4], 5
push edx
mov byte [ebp - 0x21c], 0
call fcn.005344b0
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
mov ecx, ebx
call fcn.0041e3a0
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x238]
call fcn.00405fd0
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.00406330
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.00406330
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov byte [ebp - 4], bl
call fcn.0041dda0
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 0x41fa25
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 0x41fa4b
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 0x41fa6b
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 0x41fa91
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 0x41faba
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.0052d75c
mov esp, ebp
pop ebp
ret 4