Function at 0x406a70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x473990
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x228
push ebx
push esi
push edi
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x232]
push eax
call fcn.0044ecf0
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x234]
push eax
push str.ProductVersion
push esi
call fcn.00466c90
add esp, 0x18
test esi, esi
jne 0x406acc
xor ecx, ecx
jmp 0x406ae0
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406ad1
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, 0x4a4750
call fcn.00408f60
push esi
lea ecx, [ebp + 8]
call fcn.004016a0
push str.QQProtect.exe
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x406be6
cmp dword [0x4a3eb4], 0
push 1
push 0x47da80
push 0
lea eax, [ebp + 8]
push eax
push esi
je 0x406b6a
call fcn.00466df0
push 1
push 0x47da80
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.00466df0
push 1
push 0x47da80
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.00466df0
add esp, 0x3c
lea ecx, [ebp + 8]
push 4
push 0x47da84
call fcn.00402570
jmp 0x406b9c
call fcn.00466df0
push 1
push 0x47da80
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.00466df0
push 1
push 0x47da80
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.00466df0
add esp, 0x3c
push 7
push 0x47da90
lea ecx, [ebp + 8]
call fcn.00402570
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x406bcf
push eax
push dword [ebp + 8]
push 0x47daa0
push dword [0x4a3ec0]
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x406be6
lea eax, [ebp - 0x234]
push eax
push str.ProductVersion
push dword [ebp + 8]
call fcn.00466c90
add esp, 0xc
mov ebx, dword [ebp + 0xc]
push 1
push 0x47dac0
push 0
lea eax, [ebp - 0x234]
push ebx
push eax
call fcn.00466df0
add esp, 0x14
test eax, eax
je 0x406ceb
mov eax, dword [ebx]
sub eax, 0x10
push eax
call fcn.00402a30
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
mov eax, dword [ebx]
sub eax, 0x10
push eax
mov byte [ebp - 4], 1
call fcn.00402a30
add eax, 0x10
add esp, 8
mov dword [ebp + 0xc], eax
push 0x479cd0
push 0x47dac0
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.00408880
mov esi, dword [ebp + 0xc]
push esi
call fcn.0044d6f3
mov ecx, dword [0x4a3eb0]
mov edx, 1
push edx
push 0x47da80
push 0
cmp eax, 0x1c210e
push ebx
push dword [ebp + 8]
cmovge ecx, edx
mov dword [0x4a3eb8], eax
mov dword [0x4a3eb0], ecx
call fcn.00466df0
push 1
push 0x47da80
push 0
push ebx
push dword [ebx]
call fcn.00466df0
add esp, 0x2c
mov ecx, ebx
push 0xa
push 0x47dac4
call fcn.00402570
push dword [edi - 0xc]
mov ecx, ebx
push edi
call fcn.00402570
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406cce
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edi + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406ceb
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x406d04
push eax
push 0x479cd0
mov ecx, ebx
call fcn.00408f60
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
jne 0x406e6d
push 1
push 0x47da80
push 0
push ebx
push dword [ebp + 8]
call fcn.00466df0
push 1
push 0x47da80
push 0
push ebx
push dword [ebx]
call fcn.00466df0
push 4
call fcn.00429324
add esp, 0x2c
test eax, eax
je 0x406d48
lea ecx, [ebp - 0x34]
mov dword [eax], ecx
jmp 0x406d4a
xor eax, eax
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.0040a650
mov dword [ebp - 0x1c], eax
mov byte [eax + 0x11], 1
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [eax], eax
mov eax, dword [ebp - 0x1c]
mov dword [eax + 8], eax
mov dword [ebp - 0x18], 0
push 0
lea eax, [ebp - 0x34]
push eax
push dword [ebx]
mov byte [ebp - 4], 4
call fcn.00466050
add esp, 0xc
mov ecx, ebx
push 0
push 0x479cd0
call fcn.00408f60
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x34]
mov edi, dword [eax]
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], edi
lea ebx, [ebx]
mov edx, eax
mov dword [ebp + 0xc], edx
test esi, esi
je 0x406dbd
cmp esi, ecx
je 0x406dcb
call fcn.0044e19c
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp + 0xc]
cmp edi, edx
je 0x406e37
test esi, esi
jne 0x406ddc
call fcn.0044e19c
xor eax, eax
jmp 0x406dde
mov eax, dword [esi]
cmp edi, dword [eax + 0x18]
jne 0x406de8
call fcn.0044e19c
push str.Resource
push dword [edi + 0xc]
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x406e1e
test esi, esi
jne 0x406e07
call fcn.0044e19c
xor eax, eax
jmp 0x406e09
mov eax, dword [esi]
cmp edi, dword [eax + 0x18]
jne 0x406e13
call fcn.0044e19c
lea eax, [edi + 0xc]
push eax
mov ecx, ebx
call fcn.00401e70
lea ecx, [ebp - 0x14]
call fcn.0040a8a0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
jmp 0x406db0
push eax
push ecx
push dword [eax]
lea eax, [ebp - 0x14]
push ecx
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 5
call fcn.0040b090
push dword [ebp - 0x1c]
call fcn.00429353
push dword [ebp - 0x34]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.00429353
add esp, 8
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406e91
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret