Function at 0x50f885
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x5c8efa
call fcn.00541f9c
sub esp, 0xbc
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x1c], edi
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [edi + 0xd4]
call fcn.00504c8a
mov esi, dword [eax + 0x10]
lea ecx, [ebp - 0x80]
call fcn.00403f80
test esi, esi
jne 0x50fdd6
push 0xffffffffffffffff
push esi
mov ecx, edi
call fcn.00515fe6
xor ebx, ebx
inc ebx
push ebx
mov ecx, edi
call fcn.0050e57c
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x50f8f0
cmp dword [edi + 0x75c], esi
jne 0x50f8f0
mov dword [edi + 0x75c], 0xe
mov eax, dword [edi + 0x75c]
test eax, eax
jne 0x50f93e
mov dword [ebp - 0x38], ebx
push 0x5d32e4
lea ecx, [ebp - 0x34]
call fcn.0040921d
push dword [ebp - 0x38]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
push 7
call fcn.005ab780
add esp, 0x10
lea ecx, [ebp - 0x34]
call fcn.00403f80
push 0x5d3304
push 2
call fcn.005bb560
push eax
call fcn.005bb420
add esp, 0xc
jmp 0x50f979
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00510655
pop ecx
pop ecx
lea eax, [ebp - 0x34]
cmp dword [ebp - 0x20], 8
cmovae eax, dword [ebp - 0x34]
push eax
push dword [edi + 0x75c]
push 0x5d3310
push 4
call fcn.005bb560
push eax
call fcn.005bb420
add esp, 0x14
lea ecx, [ebp - 0x34]
call fcn.00403f80
mov ecx, edi
call fcn.005127cd
push 0x5f9b70
lea ecx, [ebp - 0x68]
call fcn.0040921d
push 0x5f9b70
lea ecx, [ebp - 0x34]
call fcn.0040921d
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [edi + 0x764]
push eax
push dword [ebp - 0x14]
push dword [edi + 0x760]
push dword [edi + 0x75c]
push 0x7d5
mov ecx, edi
call fcn.0050eec7
lea ecx, [ebp - 0x34]
call fcn.00403f80
lea ecx, [ebp - 0x68]
call fcn.00403f80
push str.InstallStep
lea ecx, [ebp - 0x34]
call fcn.0040921d
push 0xa1e
lea eax, [ebp - 0x34]
push eax
push ebx
call fcn.005aaa10
add esp, 0xc
lea ecx, [ebp - 0x34]
call fcn.00403f80
push str.InstallResult
lea ecx, [ebp - 0x34]
call fcn.0040921d
push dword [edi + 0x75c]
lea eax, [ebp - 0x34]
push eax
push ebx
call fcn.005aaa10
add esp, 0xc
lea ecx, [ebp - 0x34]
call fcn.00403f80
push str.InstallError
lea ecx, [ebp - 0x34]
call fcn.0040921d
push dword [edi + 0x760]
lea eax, [ebp - 0x34]
push eax
push ebx
call fcn.005aaa10
add esp, 0xc
lea ecx, [ebp - 0x34]
call fcn.00403f80
push ebx
lea eax, [ebp - 0x90]
push eax
lea ecx, [edi + 0xd4]
call fcn.0050317f
mov eax, dword [ebp - 0x8c]
mov ebx, dword [ebp - 0x90]
cmp ebx, eax
je 0x50fa9d
mov edi, eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
push ebx
lea ecx, [ebp - 0x18]
call fcn.004ff7a4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x50fa93
call fcn.004fb55d
add ebx, 8
cmp ebx, edi
jne 0x50fa70
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], 7
push 0x5ffa78
lea ecx, [ebp - 0x34]
call fcn.0040921d
sub esp, 0x18
mov ecx, esp
mov ebx, 0x5f9b70
push ebx
call fcn.0040921d
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x34]
push eax
push 2
call fcn.005aabd0
add esp, 0x24
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x34]
call fcn.00403f80
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x14], esi
je 0x50fb01
lea ecx, [ebp - 0x50]
cmp dword [ebp - 0x3c], 8
cmovae ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x38], eax
cmp dword [edi + 0x75c], esi
jne 0x50fb67
push ebx
lea ecx, [ebp - 0x80]
call fcn.0040921d
push ebx
lea ecx, [ebp - 0x68]
call fcn.0040921d
lea eax, [ebp - 0x50]
cmp dword [ebp - 0x3c], 8
cmovae eax, dword [ebp - 0x50]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040921d
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x38]
push dword [ebp - 0x14]
push 0x6e
push 0x7d6
mov ecx, edi
call fcn.0050eec7
lea ecx, [ebp - 0x34]
call fcn.00403f80
lea ecx, [ebp - 0x68]
call fcn.00403f80
lea ecx, [ebp - 0x80]
call fcn.00403f80
mov dword [ebp - 4], esi
mov ebx, esi
mov dword [ebp - 0x84], ebx
cmp ebx, 0xc
jge 0x50fb84
push 0xffffffffffffffff
push ebx
mov ecx, edi
call fcn.00515fe6
inc ebx
jmp 0x50fb6c
or dword [ebp - 4], 0xffffffff
jmp 0x50fb99
call fcn.004c98d0
lea ecx, [ebp - 0xc8]
call fcn.005afe10
push esi
lea ecx, [ebp - 0xc8]
call fcn.005adb50
cmp dword [edi + 0x75c], esi
jne 0x50fc51
lea eax, [ebp - 0x5c]
push eax
mov ecx, edi
call fcn.005101a3
mov ebx, dword [ebp - 0x5c]
jmp 0x50fc44
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
push ebx
lea ecx, [ebp - 0x34]
call fcn.00408766
sub esp, 0x18
mov ecx, esp
mov dword [ecx], esi
mov dword [ecx + 0x10], esi
mov dword [ecx + 0x14], esi
lea eax, [ebp - 0x34]
push eax
call fcn.00408766
lea ecx, [ebp - 0xc8]
call fcn.005adc60
mov eax, dword [ebp - 0x20]
cmp eax, 8
jb 0x50fc41
lea eax, [eax*2 + 2]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x14], ecx
cmp eax, 0x1000
jb 0x50fc38
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00403fef
pop ecx
pop ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
push eax
push ecx
call fcn.00541c01
pop ecx
pop ecx
add ebx, 0x18
cmp ebx, dword [ebp - 0x58]
jne 0x50fbd1
lea ecx, [ebp - 0x5c]
call fcn.00447014
mov ecx, edi
call fcn.0050e75d
push dword [edi + 0x75c]
push 0x5d3378
push 2
call fcn.005bb560
push eax
call fcn.005bb420
add esp, 0x10
cmp dword [edi + 0x75c], esi
jne 0x50fd6b
cmp byte [edi + 0x7b8], 0
jne 0x50fd6b
mov ecx, edi
call fcn.00510aa7
mov ecx, edi
test eax, eax
jne 0x50fcc6
push 1
sub esp, 0x18
mov eax, esp
push esi
push eax
call fcn.00510a5a
sub esp, 0x18
mov eax, esp
push 1
push eax
mov ecx, edi
call fcn.00510a5a
lea ecx, [ebp - 0xc8]
call fcn.005adef0
jmp 0x50fd6b
call fcn.0051071d
cmp eax, 1
je 0x50fd6b
push str.QBDelayUpdate.exe
lea ecx, [ebp - 0x80]
call fcn.0040921d
push 1
lea eax, [ebp - 0x80]
push eax
push 1
lea eax, [ebp - 0x34]
push eax
call fcn.005ad360
add esp, 0x10
lea ecx, [ebp - 0x80]
call fcn.00403f80
push 0x5f9b70
lea ecx, [ebp - 0x68]
call fcn.0040921d
push str.QQBrowser_Updater_Task_Post_
lea ecx, [ebp - 0x80]
call fcn.0040921d
push 5
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.005b1b70
add esp, 0x10
lea ecx, [ebp - 0x80]
call fcn.00403f80
lea ecx, [ebp - 0x68]
call fcn.00403f80
push str._check
lea ecx, [ebp - 0x80]
call fcn.0040921d
lea eax, [ebp - 0x80]
push eax
push esi
lea eax, [ebp - 0x34]
push eax
call fcn.005b3f90
add esp, 0xc
lea ecx, [ebp - 0x80]
call fcn.00403f80
lea ecx, [ebp - 0x34]
call fcn.00403f80
push esi
mov ecx, edi
call fcn.00513c29
lea ecx, [ebp - 0xc8]
call fcn.005afd10
mov eax, dword [ebp - 0x3c]
cmp eax, 8
jb 0x50fdbb
lea eax, [eax*2 + 2]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x14], ecx
cmp eax, 0x1000
jb 0x50fdb2
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00403fef
pop ecx
pop ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
push eax
push ecx
call fcn.00541c01
pop ecx
pop ecx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], 7
xor eax, eax
mov word [ebp - 0x50], ax
lea ecx, [ebp - 0x90]
call fcn.0050728e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret