Function at 0x50f879
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x5c8efa
call fcn.00541f90
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 0x50fdca
push 0xffffffffffffffff
push esi
mov ecx, edi
call fcn.00515fd7
xor ebx, ebx
inc ebx
push ebx
mov ecx, edi
call fcn.0050e570
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x50f8e4
cmp dword [edi + 0x75c], esi
jne 0x50f8e4
mov dword [edi + 0x75c], 0xe
mov eax, dword [edi + 0x75c]
test eax, eax
jne 0x50f932
mov dword [ebp - 0x38], ebx
push 0x5d32f4
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 0x5d3314
push 2
call fcn.005bb560
push eax
call fcn.005bb420
add esp, 0xc
jmp 0x50f96d
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00510649
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 0x5d3320
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.005127c1
push 0x5f9b84
lea ecx, [ebp - 0x68]
call fcn.0040921d
push 0x5f9b84
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.0050eebb
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 0x50fa91
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 0x50fa87
call fcn.004fb55d
add ebx, 8
cmp ebx, edi
jne 0x50fa64
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], 7
push 0x5ffa88
lea ecx, [ebp - 0x34]
call fcn.0040921d
sub esp, 0x18
mov ecx, esp
mov ebx, 0x5f9b84
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 0x50faf5
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 0x50fb5b
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.0050eebb
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 0x50fb78
push 0xffffffffffffffff
push ebx
mov ecx, edi
call fcn.00515fd7
inc ebx
jmp 0x50fb60
or dword [ebp - 4], 0xffffffff
jmp 0x50fb8d
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 0x50fc45
lea eax, [ebp - 0x5c]
push eax
mov ecx, edi
call fcn.00510197
mov ebx, dword [ebp - 0x5c]
jmp 0x50fc38
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 0x50fc35
lea eax, [eax*2 + 2]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x14], ecx
cmp eax, 0x1000
jb 0x50fc2c
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.00541bf5
pop ecx
pop ecx
add ebx, 0x18
cmp ebx, dword [ebp - 0x58]
jne 0x50fbc5
lea ecx, [ebp - 0x5c]
call fcn.00447014
mov ecx, edi
call fcn.0050e751
push dword [edi + 0x75c]
push 0x5d3388
push 2
call fcn.005bb560
push eax
call fcn.005bb420
add esp, 0x10
cmp dword [edi + 0x75c], esi
jne 0x50fd5f
cmp byte [edi + 0x7b8], 0
jne 0x50fd5f
mov ecx, edi
call fcn.00510a9b
mov ecx, edi
test eax, eax
jne 0x50fcba
push 1
sub esp, 0x18
mov eax, esp
push esi
push eax
call fcn.00510a4e
sub esp, 0x18
mov eax, esp
push 1
push eax
mov ecx, edi
call fcn.00510a4e
lea ecx, [ebp - 0xc8]
call fcn.005adef0
jmp 0x50fd5f
call fcn.00510711
cmp eax, 1
je 0x50fd5f
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 0x5f9b84
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.00513c1d
lea ecx, [ebp - 0xc8]
call fcn.005afd10
mov eax, dword [ebp - 0x3c]
cmp eax, 8
jb 0x50fdaf
lea eax, [eax*2 + 2]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x14], ecx
cmp eax, 0x1000
jb 0x50fda6
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.00541bf5
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.00507282
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret