Function at 0x491777
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x113c]
mov eax, 0x11bc
call fcn.004a1b30
mov eax, dword [0x4ffeb0]
xor eax, ebp
mov dword [ebp + 0x1138], eax
mov eax, dword [ebp + 0x1144]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x38], eax
call fcn.0048fb86
lea esi, [edi + 0x60]
push dword [esi]
lea ecx, [ebp - 0x20]
call fcn.00497211
push 0x1f7
push str.FILE
lea ecx, [ebp - 0x20]
call fcn.004990b1
cmp byte [0x505cd0], 0
je 0x49186f
push str.QHActiveDefense.exe
lea ecx, [ebp - 0x28]
call fcn.00404030
call fcn.00486fad
call fcn.0047fe3e
xor ebx, ebx
mov dword [ebp - 0x30], ebx
jmp 0x491804
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 5
ja 0x49181a
push 1
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x28]
call fcn.00490773
add esp, 0xc
cmp eax, 1
je 0x4917f3
push 1
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x28]
xor ebx, ebx
mov dword [ebp - 0x24], ebx
call fcn.00490773
add esp, 0xc
test eax, eax
je 0x491864
push dword [ebp - 0x24]
mov ecx, edi
call fcn.0048c89a
push 1
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x28]
call fcn.00490773
add esp, 0xc
test eax, eax
je 0x491864
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 5
jl 0x49183e
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.00404d60
lea eax, [ebp - 0x2c]
push eax
call fcn.0042d8c0
pop ecx
push 1
push dword [eax]
lea ecx, [ebp - 0x20]
call fcn.004978d4
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.00404d60
cmp byte [0x505cd0], 0
je 0x4918a0
push esi
call fcn.0049064f
pop ecx
mov ecx, edi
call fcn.0048ef82
mov ebx, dword [edi + 0x48]
sub ebx, dword [edi + 0x44]
and dword [ebp - 0x30], 0
and dword [ebp - 0x28], 0
sar ebx, 2
test ebx, ebx
jbe 0x4919d7
and dword [ebp - 0x24], 0
xor eax, eax
push 0x206
push eax
mov word [ebp + 0xf30], ax
lea eax, [ebp + 0xf32]
push eax
call fcn.004a0bd0
add esp, 0xc
push dword [ebp - 0x28]
lea ecx, [edi + 0x38]
call fcn.00438a10
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
push str.temp_files
lea eax, [edi + 0x5c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00406480
add esp, 0xc
push dword [ebp - 0x2c]
push dword [eax]
lea eax, [ebp + 0xf30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
call fcn.00404d60
xor eax, eax
push 0x206
push eax
mov word [ebp + 0xd28], ax
lea eax, [ebp + 0xd2a]
push eax
call fcn.004a0bd0
add esp, 0xc
push dword [ebp - 0x28]
lea ecx, [edi + 0x38]
call fcn.00438a10
push dword [eax]
lea eax, [ebp + 0xd28]
push dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp + 0xf30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x491976
mov dword [edi + 0x64], 0x6e
lea eax, [ebp + 0xd28]
push eax
lea eax, [ebp + 0xf30]
push eax
mov ecx, edi
call fcn.0048ebe2
test eax, eax
je 0x491992
inc dword [ebp - 0x30]
cmp byte [0x505cd0], 0
je 0x4919b0
push ecx
lea eax, [ebp + 0xd28]
mov ecx, esp
push eax
call fcn.00404030
call fcn.0048eb37
pop ecx
cmp dword [edi + 0x54], 0
je 0x4919c7
mov eax, dword [ebp - 0x24]
xor edx, edx
div ebx
push 0x46
mov ecx, edi
push eax
call fcn.0048c906
inc dword [ebp - 0x28]
add dword [ebp - 0x24], 0x46
cmp dword [ebp - 0x28], ebx
jb 0x4918c4
call fcn.0049160a
mov ecx, edi
call fcn.0048f679
push 0x46
push 0x46
mov ecx, edi
call fcn.0048c906
mov eax, dword [edi + 0x64]
xor ebx, ebx
cmp eax, ebx
jne 0x491cb4
mov ecx, edi
call fcn.0048e568
mov ecx, edi
call fcn.0048f533
push 0x5f
pop ebx
push ebx
push 0x48
mov ecx, edi
call fcn.0048c906
mov ecx, 0x505d18
call fcn.0047f3bc
call fcn.0047e384
push dword [esi]
call fcn.0042bb70
pop ecx
push ebx
push 0x4a
mov ecx, edi
call fcn.0048c906
push dword [esi]
call fcn.0042bd10
pop ecx
push ebx
push 0x4c
mov ecx, edi
call fcn.0048c906
push dword [esi]
call fcn.0042b840
pop ecx
push ebx
push 0x4e
mov ecx, edi
call fcn.0048c906
push dword [esi]
call fcn.0042b570
pop ecx
push ebx
push 0x50
mov ecx, edi
call fcn.0048c906
call fcn.0048c693
push dword [esi]
call fcn.0042b9e0
pop ecx
push ebx
push 0x52
mov ecx, edi
call fcn.0048c906
push dword [esi]
call fcn.0042b900
pop ecx
push ebx
push 0x54
mov ecx, edi
call fcn.0048c906
call fcn.0042d4f0
push dword [esi]
call fcn.0042b6f0
pop ecx
mov ecx, edi
call fcn.004910e2
push ebx
push 0x56
mov ecx, edi
call fcn.0048c906
mov ecx, edi
call fcn.0048da11
push ebx
push 0x58
mov ecx, edi
call fcn.0048c906
xor eax, eax
push eax
push eax
push eax
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
push str.updatecfg.ini
push esi
lea eax, [ebp - 0x30]
push eax
call fcn.00406480
add esp, 0xc
lea ecx, [ebp - 0x80]
call fcn.0047c2fd
push 0x1f9
push str.FILE
lea ecx, [ebp - 0x80]
call fcn.0048af0e
mov ebx, dword [ebp - 0x70]
sub ebx, dword [ebp - 0x74]
and dword [ebp - 0x24], 0
sar ebx, 2
test ebx, ebx
jle 0x491bbd
push dword [ebp - 0x24]
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x80]
call fcn.0048f1c0
push 0
push 0x4d996c
push dword [ebp - 0x28]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x80]
call fcn.0047e1ed
push 0
push 0x4e4288
push dword [ebp - 0x28]
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x80]
call fcn.0047e1ed
lea ecx, [ebp - 0x34]
call fcn.00404fb0
push dword [esi]
lea ecx, [ebp - 0x34]
push str._productpath_
call fcn.00413440
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
push 0x4d996c
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push 0x4e4288
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
call fcn.00404d60
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.00404d60
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.00404d60
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], ebx
jl 0x491b16
push 0x5f
pop ebx
push ebx
push 0x5a
mov ecx, edi
call fcn.0048c906
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x24], 1
call fcn.0049a017
push dword [esi]
lea ecx, [ebp - 0x44]
call fcn.0049a054
test eax, eax
je 0x491c04
lea eax, [ebp - 0x2c]
xor esi, esi
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x2c], esi
call fcn.0049a173
test eax, eax
je 0x491c04
cmp dword [ebp - 0x2c], esi
je 0x491c04
mov dword [ebp - 0x24], esi
push dword [ebp - 0x24]
call fcn.004299b0
pop ecx
lea ecx, [ebp - 0x44]
call fcn.0049a024
push ebx
push 0x5d
mov ecx, edi
call fcn.0048c906
mov ecx, edi
call fcn.00490ca6
test al, al
jne 0x491c34
mov dword [0x50649c], 1
push ebx
push ebx
mov ecx, edi
mov dword [ebp - 0x24], ebx
call fcn.0048c906
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, 0x3e8
push ebx
call esi
push str.QHActiveDefense.exe
lea ecx, [ebp - 0x2c]
call fcn.00404030
and dword [ebp - 0x34], 0
push 1
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x2c]
call fcn.00490773
add esp, 0xc
cmp eax, 1
je 0x491c92
inc dword [ebp - 0x24]
push 0x64
push dword [ebp - 0x24]
mov ecx, edi
call fcn.0048c906
push ebx
call esi
mov eax, dword [ebp - 0x24]
add eax, 0xffffffa1
cmp eax, 5
jl 0x491c5f
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.00404d60
lea ecx, [ebp - 0x80]
call fcn.0047abab
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.00404d60
xor ebx, ebx
jmp 0x491ce8
cmp eax, 0x6c
jne 0x491ce8
cmp dword [ebp - 0x30], ebx
jle 0x491ce8
cmp byte [0x505cd0], bl
jne 0x491ce8
push 0x505cb8
lea ecx, [ebp - 0x2c]
call fcn.00404d20
mov esi, dword [ebp - 0x2c]
push ebx
push esi
lea ecx, [ebp - 0x20]
call fcn.004978d4
lea ecx, [esi - 0x10]
call fcn.00404d60
push 0x1f7
push str.FILE
lea ecx, [ebp - 0x20]
call fcn.00498c2d
cmp dword [edi + 0x64], ebx
jne 0x491d07
cmp dword [ebp - 0x38], ebx
je 0x491d07
call dword [ebp - 0x38]
cmp dword [edi + 0x54], ebx
je 0x491d17
push 0x64
push 0x64
mov ecx, edi
call fcn.0048c906
cmp dword [edi + 0x64], ebx
lea ecx, [ebp - 0x20]
sete bl
call fcn.00497294
mov ecx, dword [ebp + 0x1138]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004a0e91
add ebp, 0x113c
leave
ret 4