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

Disassembly:
push 0xffffffffffffffff
push 0x4a58be
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x4d8b40]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d8b40]
xor eax, esp
push eax
lea eax, [esp + 0x250]
mov dword fs:[0], eax
mov eax, dword [esp + 0x264]
mov esi, dword [esp + 0x260]
push str.CheckForUpdate
push 0
push 2
push 0x36c
mov ebx, ecx
push str..AutoUpdateplusAutoUpdater.cpp
push str.CAutoUpdater::CheckForUpdate
mov dword [esp + 0x54], ebx
mov edi, edx
mov dword [esp + 0x58], eax
call fcn.00429740
push 0x103
lea ecx, [esp + 0x161]
push 0
push ecx
mov byte [esp + 0x168], 0
call fcn.00465b60
add esp, 0x24
lea edx, [esp + 0x144]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x144]
push eax
lea ecx, [esp + 0x20]
call fcn.00402670
mov dword [esp + 0x258], 0
cmp dword [ebx + 4], 0
je 0x42c4f7
push 0
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x42c54c
push str.InternetOkay_failed.
push 0
push 2
push 0x373
push str..AutoUpdateplusAutoUpdater.cpp
push str.CAutoUpdater::CheckForUpdate
call fcn.00429740
mov dword [esp + 0x270], 0xffffffff
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
add esp, 0x18
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42c542
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x42ca42
push str.update.txt
lea ecx, [esp + 0x3c]
call fcn.00402670
push eax
lea ecx, [esp + 0x24]
push edi
push ecx
mov byte [esp + 0x264], 1
call fcn.00425bc0
add esp, 0xc
mov byte [esp + 0x258], 3
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42c599
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
lea edi, [esp + 0x24]
call fcn.0042a790
mov ebp, eax
test ebp, ebp
jne 0x42c625
push str._hSession_failed.
push eax
push 2
push 0x37e
push str..AutoUpdateplusAutoUpdater.cpp
push str.CAutoUpdater::CheckForUpdate
call fcn.00429740
mov byte [esp + 0x270], 0
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
add esp, 0x18
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c5f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x258], 0xffffffff
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 0x42c61b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 2
jmp 0x42ca42
mov eax, dword [esp + 0x1c]
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 + 0x260], 4
call fcn.00407720
push 0xa
push str.update.txt
lea ecx, [esp + 0x20]
call fcn.00407720
mov edi, dword [esp + 0x18]
push edi
push ebp
call fcn.0042a8f0
push ebp
mov bl, al
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test bl, bl
jne 0x42c721
push str.DownloadFile_1_failed.
push 0
push 2
push 0x38a
push str..AutoUpdateplusAutoUpdater.cpp
push str.CAutoUpdater::CheckForUpdate
call fcn.00429740
add edi, 0xfffffff0
add esp, 0x18
mov byte [esp + 0x258], 3
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c6c4
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov byte [esp + 0x258], 0
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 0x42c6ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x258], 0xffffffff
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 0x42c717
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 3
jmp 0x42ca42
mov ecx, dword [edi - 8]
mov eax, 1
sub eax, dword [edi - 4]
or ecx, eax
jge 0x42c73f
push 0
lea ecx, [esp + 0x1c]
call fcn.00402850
mov edi, dword [esp + 0x18]
push edi
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call fcn.0042b6c0
push 0xff
lea edx, [esp + 0x49]
push 0
mov byte [esp + 0x260], 5
push edx
mov byte [esp + 0x50], 0
call fcn.00465b60
add esp, 0xc
lea eax, [esp + 0x44]
push eax
push esi
call fcn.0042b190
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x38]
call fcn.00402670
mov bl, 6
mov byte [esp + 0x258], bl
mov eax, dword [esp + 0x34]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x34], esp
mov ebp, esp
push eax
call fcn.00402a50
add eax, 0x10
mov dword [ebp], eax
mov byte [esp + 0x260], 7
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov dword [esp + 0x30], esp
mov ebp, esp
push eax
call fcn.00402a50
add eax, 0x10
mov dword [ebp], eax
add esp, 4
mov byte [esp + 0x260], bl
call fcn.0042ac40
cmp eax, 1
jne 0x42c979
push 0
lea ecx, [esp + 0x1c]
call fcn.004028a0
push eax
lea ecx, [esp + 0x28]
call fcn.0042be10
mov edx, dword [esp + 0x3c]
push edx
lea edi, [esp + 0x28]
mov byte [esp + 0x25c], 8
call fcn.0042a790
mov esi, eax
test esi, esi
jne 0x42c86e
push str._hSession_2_failed.
push eax
push 2
push 0x39d
push str..AutoUpdateplusAutoUpdater.cpp
push str.CAutoUpdater::CheckForUpdate
call fcn.00429740
add esp, 0x18
mov ecx, edi
call fcn.00402b20
lea ecx, [esp + 0x34]
call fcn.00402b20
lea ecx, [esp + 0x2c]
call fcn.00402b20
lea ecx, [esp + 0x18]
call fcn.00402b20
lea ecx, [esp + 0x20]
call fcn.00402b20
lea ecx, [esp + 0x1c]
call fcn.00402b20
lea eax, [esi + 2]
jmp 0x42ca42
push 0
lea ecx, [esp + 0x28]
call fcn.004028a0
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0042c350
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x264], 9
call fcn.00414470
add esp, 0xc
mov byte [esp + 0x258], 0xa
mov ecx, dword [esp + 0x28]
push ecx
push esi
call fcn.0042a8f0
push esi
mov bl, al
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test bl, bl
jne 0x42c935
push str.DownloadFile_2_failed.
push 0
push 2
push 0x3a6
push str..AutoUpdateplusAutoUpdater.cpp
push str.CAutoUpdater::CheckForUpdate
call fcn.00429740
add esp, 0x18
lea ecx, [esp + 0x28]
call fcn.00402b20
lea ecx, [esp + 0x30]
call fcn.00402b20
lea ecx, [esp + 0x24]
call fcn.00402b20
lea ecx, [esp + 0x34]
call fcn.00402b20
lea ecx, [esp + 0x2c]
call fcn.00402b20
lea ecx, [esp + 0x18]
call fcn.00402b20
lea ecx, [esp + 0x20]
call fcn.00402b20
lea ecx, [esp + 0x1c]
call fcn.00402b20
mov eax, 4
jmp 0x42ca42
mov esi, dword [esp + 0x40]
test esi, esi
je 0x42c95a
push 0
lea ecx, [esp + 0x2c]
call fcn.004028a0
mov edx, esi
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x42c950
lea ecx, [esp + 0x28]
call fcn.00402b20
lea ecx, [esp + 0x30]
call fcn.00402b20
lea ecx, [esp + 0x24]
call fcn.00402b20
mov edi, dword [esp + 0x18]
mov byte [esp + 0x258], 5
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42c9a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x258], 4
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c9c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0xfffffff0
mov byte [esp + 0x258], 3
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c9ed
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov byte [esp + 0x258], 0
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 0x42ca15
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x258], 0xffffffff
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 0x42ca40
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x250]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.0045f97b
add esp, 0x248
ret 8