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

Disassembly:
push 0xffffffffffffffff
push 0x4a581d
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x4d8b40]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d8b40]
xor eax, esp
push eax
lea eax, [esp + 0x244]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x254]
push str.CheckVersion
push 0
push 2
push 0x3b4
push str..AutoUpdateplusAutoUpdater.cpp
push str.CAutoUpdater::CheckVersion
mov esi, ecx
mov edi, edx
call fcn.00429740
push 0x103
lea eax, [esp + 0x151]
push 0
push eax
mov byte [esp + 0x158], 0
call fcn.00465b60
add esp, 0x24
lea ecx, [esp + 0x134]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [esp + 0x134]
push edx
lea ecx, [esp + 0x18]
call fcn.00402670
mov dword [esp + 0x24c], 0
cmp dword [esi + 4], 0
je 0x42cb38
push 0
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x42cb8d
push str.InternetOkay_failed.
push 0
push 2
push 0x3bb
push str..AutoUpdateplusAutoUpdater.cpp
push str.CAutoUpdater::CheckVersion
call fcn.00429740
mov dword [esp + 0x264], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0x18
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42cb83
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0xfffffffe
jmp 0x42cee3
push str.update.txt
lea ecx, [esp + 0x2c]
call fcn.00402670
push eax
lea ecx, [esp + 0x20]
push edi
push ecx
mov byte [esp + 0x258], 1
call fcn.00425bc0
add esp, 0xc
mov byte [esp + 0x24c], 3
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42cbda
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
lea edi, [esp + 0x20]
call fcn.0042a790
mov edi, eax
test edi, edi
jne 0x42cc66
push str._hSession_failed.
push eax
push 2
push 0x3c6
push str..AutoUpdateplusAutoUpdater.cpp
push str.CAutoUpdater::CheckVersion
call fcn.00429740
mov byte [esp + 0x264], 0
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
add esp, 0x18
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42cc31
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x24c], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42cc5c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0xfffffffd
jmp 0x42cee3
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
push eax
call fcn.00402a50
add eax, 0x10
add esp, 4
mov dword [esp + 0x18], eax
push 1
push 0x4c23cc
lea ecx, [esp + 0x20]
mov byte [esp + 0x254], 4
call fcn.00407720
push 0xa
push str.update.txt
lea ecx, [esp + 0x20]
call fcn.00407720
mov esi, dword [esp + 0x18]
push esi
push edi
call fcn.0042a8f0
push edi
mov bl, al
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test bl, bl
jne 0x42cd62
push str.DownloadFile_1_failed.
push 0
push 2
push 0x3d2
push str..AutoUpdateplusAutoUpdater.cpp
push str.CAutoUpdater::CheckVersion
call fcn.00429740
lea eax, [esi - 0x10]
add esp, 0x18
mov byte [esp + 0x24c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42cd05
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x24c], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42cd2d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x24c], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42cd58
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0xfffffffc
jmp 0x42cee3
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x42cd80
push 0
lea ecx, [esp + 0x1c]
call fcn.00402850
mov esi, dword [esp + 0x18]
push esi
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebp
call fcn.0042b6c0
push 0xff
lea edx, [esp + 0x39]
push 0
mov byte [esp + 0x254], 5
push edx
mov byte [esp + 0x40], 0
call fcn.00465b60
add esp, 0xc
lea eax, [esp + 0x34]
push eax
push ebp
call fcn.0042b190
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x28]
call fcn.00402670
mov bl, 6
mov byte [esp + 0x24c], bl
mov eax, dword [esp + 0x24]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x30], esp
mov edi, esp
push eax
call fcn.00402a50
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x254], 7
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov dword [esp + 0x38], esp
mov edi, esp
push eax
call fcn.00402a50
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov byte [esp + 0x254], bl
call fcn.0042ac40
mov edi, eax
mov byte [esp + 0x24c], 5
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42ce42
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x24c], 4
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42ce6a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 0xfffffff0
mov byte [esp + 0x24c], 3
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42ce8e
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov byte [esp + 0x24c], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42ceb6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x24c], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42cee1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x244]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.0045f97b
add esp, 0x23c
ret 4