Function at 0x411290
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4e418d
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x50f130]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x244]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x254]
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov dword [0x5156c4], ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24c], ebx
mov eax, dword [0x5143ac]
mov edx, dword [eax + 0xc]
mov ecx, 0x5143ac
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x24c], 1
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x411316
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea eax, [esp + 0x18]
push eax
push str.SOFTWARETencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], ebx
call esi
push str.InstallDir
lea ecx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x24]
call fcn.00409710
mov edi, dword [esp + 0x1c]
mov eax, dword [edi - 0xc]
cmp eax, ebx
jne 0x4113ab
mov dword [0x5156c8], ebx
push 0x4ef7d8
xor ebx, ebx
mov eax, 0x5156cc
call fcn.00401450
lea edi, [esp + 0x1c]
call fcn.00411130
test eax, eax
jne 0x4113a5
mov byte [esp + 0x24c], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41139a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
test eax, eax
jmp 0x411869
mov edi, dword [esp + 0x1c]
xor ebx, ebx
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4113e6
mov dword [0x5156c8], ebx
push 0x4ef7d8
xor ebx, ebx
mov eax, 0x5156cc
call fcn.00401450
lea eax, [edi - 0x10]
mov byte [esp + 0x24c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x41138e
lea eax, [esp + 0x1c]
mov edi, 0x5156cc
mov dword [0x5156c8], 1
call fcn.004013f0
mov eax, edi
call fcn.00421450
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x411414
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
push ecx
push str.SOFTWARETencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], ebx
call esi
push str.Version
lea edx, [esp + 0x1c]
push edx
mov eax, 0x5156d0
call fcn.00409710
cmp dword [0x5156a8], ebx
je 0x411487
mov eax, dword [0x5156d0]
mov eax, dword [eax - 0xc]
cmp eax, 4
jle 0x411487
lea ecx, [eax - 4]
push 0x5156d0
mov eax, 2
lea edx, [esp + 0x28]
call fcn.00409930
push eax
mov ecx, 0x4f0454
mov dword [esp + 0x2c], 1
call fcn.004138f0
add esp, 4
test al, al
mov byte [esp + 0x23], 1
jne 0x41148b
mov byte [esp + 0x23], bl
test byte [esp + 0x28], 1
je 0x4114b2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4114b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x23], bl
je 0x411528
cmp ebp, ebx
jne 0x4114d9
push ebx
mov ebx, dword [0x5156a4]
push 2
mov ecx, 0x67
mov edx, 0x4f1420
call fcn.004390a0
add esp, 8
xor ebx, ebx
push str.mini
mov ecx, 0x515890
call fcn.004899e0
mov byte [esp + 0x250], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411512
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x411521
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x411877
call fcn.00410e10
cmp ebp, ebx
mov edi, eax
jne 0x4118a1
lea ecx, [esp + 0x28]
push ecx
push str.SOFTWARETencentQQPCMgr
mov byte [esp + 0x254], 2
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call esi
cmp eax, ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
jne 0x4116a9
lea edx, [esp + 0x24]
push edx
push str.OemInfo
lea eax, [esp + 0x30]
call fcn.004096b0
mov eax, 1
cmp dword [esp + 0x24], eax
jne 0x41158b
mov dword [0x5156b0], eax
jmp 0x411593
cmp dword [0x5156b0], ebx
je 0x4115f2
push 0x4f147c
push ebx
mov ebx, dword [0x5156a4]
mov ecx, 0x66
mov edx, 0x4f149c
call fcn.004390a0
add esp, 8
cmp eax, 1
je 0x4116a9
push 4
mov eax, 0x64
call fcn.00423010
mov dword [0x515670], 4
lea esi, [esp + 0x28]
call fcn.00409880
lea ecx, [esp + 0x1c]
call fcn.00416ce0
lea esi, [esp + 0x18]
call fcn.00409880
xor eax, eax
jmp 0x411877
cmp edi, ebx
je 0x4116a9
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], ebx
push 0x5156cc
push eax
mov ebx, str.QQPCRTP.exe
call fcn.00413810
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0x258], 3
mov eax, dword [eax]
push 0xffffffffffffffff
push eax
mov ecx, 1
mov edx, str._uid
call fcn.00422020
add esp, 0x14
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24c], 2
call fcn.00416ce0
push 0x206
lea edx, [esp + 0x3a]
push 0
push edx
mov word [esp + 0x40], 0
call fcn.004be320
mov eax, dword [esp + 0x30]
add esp, 0xc
push eax
push 0x4f14cc
lea ecx, [esp + 0x3c]
push 0x103
push ecx
call fcn.004b946c
add esp, 0x10
push 0x4ef6a4
lea edx, [esp + 0x38]
push edx
call esi
test eax, eax
jne 0x4116a9
push 7
mov eax, 0x64
call fcn.00423010
mov dword [0x515670], 7
jmp 0x4115d0
lea eax, [esp + 0x2c]
push 0x5156cc
push eax
mov ebx, str.QQPCRTP.exe
call fcn.00413810
mov eax, dword [eax]
add esp, 8
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, eax
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 0x4116eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
je 0x41182b
lea ecx, [esp + 0x2c]
push 0x5156cc
push ecx
mov ebx, str.QQPCRTP.exe
mov dword [esp + 0x2c], 0
call fcn.00413810
lea edx, [esp + 0x2c]
push edx
mov ebx, 4
mov byte [esp + 0x258], bl
mov eax, dword [eax]
push 0xffffffffffffffff
push eax
lea ecx, [ebx - 3]
mov edx, 0x4f14d4
call fcn.00422020
add esp, 0x14
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24c], 2
call fcn.00416ce0
push 0x206
lea eax, [esp + 0x3a]
push 0
push eax
mov word [esp + 0x40], 0
call fcn.004be320
mov ecx, dword [esp + 0x30]
add esp, 0xc
push ecx
push 0x4f14cc
lea edx, [esp + 0x3c]
push 0x103
push edx
call fcn.004b946c
add esp, 0x10
push 0x4ef6a4
lea eax, [esp + 0x38]
push eax
call esi
test eax, eax
jne 0x4117a1
push ebx
lea eax, [ebx + 0x60]
call fcn.00423010
mov dword [0x515670], ebx
jmp 0x4115d0
lea ecx, [esp + 0x2c]
push 0x5156cc
push ecx
mov ebx, str.QQRepair.exe
call fcn.00413810
mov byte [esp + 0x254], 5
mov eax, dword [eax]
push eax
call fcn.004226f0
add esp, 0xc
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24c], 2
call fcn.00416ce0
lea edx, [esp + 0x30]
push 0x5156cc
push edx
mov ebx, str.QQRepair.exetmp
call fcn.00413810
mov esi, eax
lea eax, [esp + 0x34]
push 0x5156cc
push eax
mov ebx, str.QQRepair.exe
mov byte [esp + 0x25c], 6
call fcn.00413810
mov esi, dword [esi]
mov eax, dword [eax]
push esi
push eax
call fcn.004baee3
add esp, 0x18
lea ecx, [esp + 0x2c]
call fcn.00416ce0
lea ecx, [esp + 0x30]
call fcn.00416ce0
mov eax, dword [esp + 0x28]
test eax, eax
je 0x41183a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov byte [esp + 0x24c], bl
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 0x411863
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x411872
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
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.004b84de
add esp, 0x23c
ret 4
cmp edi, ebx
je 0x41183c
push 7
mov eax, 0x64
call fcn.00423010
push 0x4f1518
mov ecx, 0x515890
mov dword [0x515670], 7
call fcn.004899e0
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.00416ce0
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x411521
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x411877