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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5584be
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x5adf10]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push str.CheckForUpdate
push 0
push 2
push 0x30e
mov esi, ecx
push str.AutoUpdateplusAutoUpdater.cpp
push str.CAutoUpdater::CheckForUpdate
mov dword [ebp - 0x248], esi
mov edi, edx
mov dword [ebp - 0x244], eax
call fcn.0041c870
push 0x103
lea ecx, [ebp - 0x117]
push 0
push ecx
mov byte [ebp - 0x118], 0
call fcn.005344b0
add esp, 0x24
lea edx, [ebp - 0x118]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x220]
call fcn.00405fd0
mov dword [ebp - 4], 0
cmp dword [esi + 4], 0
je 0x41efc2
push 0
lea ecx, [ebp - 0x240]
push ecx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x41efe2
push str.InternetOkay_failed.
push 0
push 2
push 0x315
push str.AutoUpdateplusAutoUpdater.cpp
push str.CAutoUpdater::CheckForUpdate
call fcn.0041c870
add esp, 0x18
push str.update.txt
lea ecx, [ebp - 0x240]
call fcn.00405fd0
push eax
lea edx, [ebp - 0x230]
push edi
push edx
mov byte [ebp - 4], 1
call fcn.00418c70
add esp, 0xc
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x240]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f02d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea edi, [ebp - 0x230]
mov ecx, esi
call fcn.0041d900
mov edi, eax
test edi, edi
jne 0x41f0b8
push str._hSession_failed.
push eax
push 2
push 0x320
push str.AutoUpdateplusAutoUpdater.cpp
push str.CAutoUpdater::CheckForUpdate
call fcn.0041c870
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x230]
add eax, 0xfffffff0
add esp, 0x18
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f085
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 - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f0ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 2
jmp 0x41f639
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
push eax
call fcn.00406330
add eax, 0x10
add esp, 4
mov dword [ebp - 0x21c], eax
push 1
push 0x586cac
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 4
call fcn.00405be0
push 0xa
push str.update.txt
lea ecx, [ebp - 0x21c]
call fcn.00405be0
mov esi, dword [ebp - 0x21c]
push esi
push edi
call fcn.0041da50
push edi
mov byte [ebp - 0x225], al
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp byte [ebp - 0x225], 0
jne 0x41f1bb
push str.DownloadFile_1_failed.
push 0
push 2
push 0x32c
push str.AutoUpdateplusAutoUpdater.cpp
push str.CAutoUpdater::CheckForUpdate
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 0x41f162
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 - 0x230]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f188
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 - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f1b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 3
jmp 0x41f639
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x41f1dd
push 0
lea ecx, [ebp - 0x21c]
call fcn.004061b0
mov esi, dword [ebp - 0x21c]
push ebx
push esi
lea ecx, [ebp - 0x238]
push ecx
call fcn.0041e920
push 0xff
lea edx, [ebp - 0x217]
push 0
mov byte [ebp - 4], 5
push edx
mov byte [ebp - 0x218], 0
call fcn.005344b0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
mov ecx, ebx
call fcn.0041e3a0
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x234]
call fcn.00405fd0
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x234]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x23c], 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 - 0x238]
add eax, 0xfffffff0
mov dword [ebp - 0x22c], esp
mov edi, esp
push eax
call fcn.00406330
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov byte [ebp - 4], 6
call fcn.0041dda0
cmp eax, 1
jne 0x41f57c
sub eax, dword [esi - 4]
mov ecx, dword [esi - 8]
or ecx, eax
jge 0x41f29f
push 0
lea ecx, [ebp - 0x21c]
call fcn.004061b0
mov esi, dword [ebp - 0x21c]
push esi
lea edx, [ebp - 0x224]
push edx
mov ecx, ebx
call fcn.0041ebf0
mov ecx, dword [ebp - 0x248]
lea edi, [ebp - 0x224]
mov byte [ebp - 4], 8
call fcn.0041d900
mov edi, eax
test edi, edi
jne 0x41f3db
push str._hSession_2_failed.
push eax
push 2
push 0x340
push str.AutoUpdateplusAutoUpdater.cpp
push str.CAutoUpdater::CheckForUpdate
call fcn.0041c870
mov byte [ebp - 4], 6
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 0x41f312
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x234]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f338
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 - 0x238]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f35e
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 0x41f37e
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 - 0x230]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f3a4
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 - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f0ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 2
jmp 0x41f639
mov edx, dword [ebp - 0x224]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x41f403
push 0
lea ecx, [ebp - 0x224]
call fcn.004061b0
mov edx, dword [ebp - 0x224]
push edx
lea ecx, [ebp - 0x23c]
push ecx
call fcn.0041ee40
lea edx, [ebp - 0x23c]
push edx
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x22c]
push ecx
mov byte [ebp - 4], 9
call fcn.00413c50
add esp, 0xc
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x22c]
push edx
push edi
call fcn.0041da50
push edi
mov bl, al
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test bl, bl
jne 0x41f4d5
push str.DownloadFile_2_failed.
push 0
push 2
push 0x349
push str.AutoUpdateplusAutoUpdater.cpp
push str.CAutoUpdater::CheckForUpdate
call fcn.0041c870
add esp, 0x18
lea ecx, [ebp - 0x22c]
call fcn.00406410
lea ecx, [ebp - 0x23c]
call fcn.00406410
lea ecx, [ebp - 0x224]
call fcn.00406410
lea ecx, [ebp - 0x234]
call fcn.00406410
lea ecx, [ebp - 0x238]
call fcn.00406410
lea ecx, [ebp - 0x21c]
call fcn.00406410
lea ecx, [ebp - 0x230]
call fcn.00406410
lea ecx, [ebp - 0x220]
call fcn.00406410
mov eax, 4
jmp 0x41f639
mov esi, dword [ebp - 0x244]
test esi, esi
je 0x41f51a
mov eax, dword [ebp - 0x22c]
mov ecx, 1
sub ecx, dword [eax - 4]
or ecx, dword [eax - 8]
jge 0x41f505
push 0
lea ecx, [ebp - 0x22c]
call fcn.004061b0
mov eax, dword [ebp - 0x22c]
mov edx, esi
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x41f510
lea ecx, [ebp - 0x22c]
call fcn.00406410
lea ecx, [ebp - 0x23c]
call fcn.00406410
lea ecx, [ebp - 0x224]
call fcn.00406410
lea ecx, [ebp - 0x234]
call fcn.00406410
lea ecx, [ebp - 0x238]
call fcn.00406410
lea ecx, [ebp - 0x21c]
call fcn.00406410
lea ecx, [ebp - 0x230]
call fcn.00406410
lea ecx, [ebp - 0x220]
call fcn.00406410
mov eax, 9
jmp 0x41f639
mov byte [ebp - 4], 5
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 0x41f5a2
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 - 0x238]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f5c8
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 0x41f5e8
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 - 0x230]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f60e
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 - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f637
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 - 0x10]
xor ecx, ebp
call fcn.0052d75c
mov esp, ebp
pop ebp
ret 8