Function at 0x501dc0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57a420
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x64], ebx
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebx + 0xc4]
call fcn.004f4ba0
mov esi, dword [eax + 0x10]
cmp dword [ebp - 0x90], 8
jb 0x501e15
push dword [ebp - 0xa4]
call fcn.00412895
add esp, 4
test esi, esi
jne 0x5025d1
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x501e34
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x501e34
mov dword [ebx + 0x48], eax
mov ecx, ebx
call fcn.005069d0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
xor eax, eax
mov word [ebp - 0x28], ax
push eax
push 0x594314
lea ecx, [ebp - 0x28]
call fcn.00408679
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
xor eax, eax
mov word [ebp - 0x58], ax
push eax
push 0x594314
lea ecx, [ebp - 0x58]
call fcn.00408679
lea eax, [ebx + 0x488]
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x58]
push ecx
push eax
mov ecx, ebx
call fcn.00501820
push eax
push dword [ebx + 0x484]
push dword [ebx + 0x480]
push 0x7d5
mov ecx, ebx
call fcn.00502870
cmp dword [ebp - 0x44], 8
jb 0x501ebf
push dword [ebp - 0x58]
call fcn.00412895
add esp, 4
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
xor eax, eax
mov word [ebp - 0x58], ax
cmp dword [ebp - 0x14], 8
jb 0x501ee4
push dword [ebp - 0x28]
call fcn.00412895
add esp, 4
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
xor eax, eax
mov word [ebp - 0x28], ax
push 0xb
push str.InstallStep
lea ecx, [ebp - 0x28]
call fcn.00408679
push 0xa1e
lea eax, [ebp - 0x28]
push eax
push 1
call fcn.004bfa00
add esp, 0xc
cmp dword [ebp - 0x14], 8
jb 0x501f2b
push dword [ebp - 0x28]
call fcn.00412895
add esp, 4
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
xor eax, eax
mov word [ebp - 0x28], ax
push 0xd
push str.InstallResult
lea ecx, [ebp - 0x28]
call fcn.00408679
push dword [ebx + 0x480]
lea eax, [ebp - 0x28]
push eax
push 1
call fcn.004bfa00
add esp, 0xc
cmp dword [ebp - 0x14], 8
jb 0x501f73
push dword [ebp - 0x28]
call fcn.00412895
add esp, 4
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
xor eax, eax
mov word [ebp - 0x28], ax
push 0xc
push str.InstallError
lea ecx, [ebp - 0x28]
call fcn.00408679
push dword [ebx + 0x484]
lea eax, [ebp - 0x28]
push eax
push 1
call fcn.004bfa00
add esp, 0xc
cmp dword [ebp - 0x14], 8
jb 0x501fbb
push dword [ebp - 0x28]
call fcn.00412895
add esp, 4
push 1
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebx + 0xc4]
call fcn.004f33c0
mov edi, dword [ebp - 0x88]
mov esi, dword [ebp - 0x8c]
cmp esi, edi
je 0x50202c
nop
mov ebx, dword [esi + 4]
mov ecx, dword [esi]
test ebx, ebx
je 0x501ff5
lea eax, [ebx + 4]
mov edx, 1
lock xadd dword [eax], edx
mov eax, dword [ecx]
call dword [eax]
test ebx, ebx
je 0x502022
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x502022
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
lea eax, [ebx + 8]
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x502022
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
add esi, 8
cmp esi, edi
jne 0x501fe0
mov ebx, dword [ebp - 0x64]
mov dword [ebp - 0x68], 7
mov dword [ebp - 0x6c], 0
xor eax, eax
mov word [ebp - 0x7c], ax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
push 3
push 0x5a2440
lea ecx, [ebp - 0x28]
call fcn.00408679
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
xor eax, eax
mov word [ecx], ax
push eax
push 0x594314
call fcn.00408679
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x28]
push eax
push 2
call fcn.004bf6a0
add esp, 0x24
mov edi, eax
mov dword [ebp - 0x60], edi
cmp dword [ebp - 0x14], 8
jb 0x5020a8
push dword [ebp - 0x28]
call fcn.00412895
add esp, 4
xor esi, esi
test edi, edi
je 0x5020c2
lea eax, [ebp - 0x7c]
cmp dword [ebp - 0x68], 8
cmovae eax, dword [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
cmp dword [ebx + 0x480], 0
jne 0x5021d3
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
xor eax, eax
mov word [ebp - 0x40], ax
push eax
push 0x594314
lea ecx, [ebp - 0x40]
call fcn.00408679
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
xor eax, eax
mov word [ebp - 0x28], ax
push eax
push 0x594314
lea ecx, [ebp - 0x28]
call fcn.00408679
lea edx, [ebp - 0x7c]
cmp dword [ebp - 0x68], 8
cmovae edx, dword [ebp - 0x7c]
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
xor eax, eax
mov word [ebp - 0x58], ax
cmp word [edx], ax
jne 0x50213b
xor ecx, ecx
jmp 0x502152
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x502140
sub ecx, edi
sar ecx, 1
mov edi, dword [ebp - 0x60]
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.00408679
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push edi
push 0x6e
push 0x7d6
mov ecx, ebx
call fcn.00502870
cmp dword [ebp - 0x44], 8
jb 0x502189
push dword [ebp - 0x58]
call fcn.00412895
add esp, 4
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
xor eax, eax
mov word [ebp - 0x58], ax
cmp dword [ebp - 0x14], 8
jb 0x5021ae
push dword [ebp - 0x28]
call fcn.00412895
add esp, 4
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
xor eax, eax
mov word [ebp - 0x28], ax
cmp dword [ebp - 0x2c], 8
jb 0x5021d3
push dword [ebp - 0x40]
call fcn.00412895
add esp, 4
mov eax, dword [ebx + 0x480]
test eax, eax
je 0x502241
cmp eax, 3
je 0x502241
lea ecx, [ebx + 0xc4]
call fcn.004f5680
test al, al
jne 0x502241
push dword [ebx + 0x480]
lea eax, [ebp - 0x40]
push eax
call fcn.00503ac0
add esp, 8
lea ecx, [ebx + 0x488]
cmp dword [ecx + 0x14], 8
jb 0x502211
mov ecx, dword [ecx]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push ecx
push dword [ebx + 0x484]
push 0
push 0x10
push eax
call fcn.004c0730
add esp, 0x14
cmp dword [ebp - 0x2c], 8
jb 0x502241
push dword [ebp - 0x40]
call fcn.00412895
add esp, 4
mov dword [ebp - 4], 0
xor esi, esi
mov dword [ebp - 0x80], esi
cmp esi, 0xb
jge 0x50225f
push 0xffffffffffffffff
push esi
mov ecx, ebx
call fcn.005098d0
inc esi
jmp 0x50224a
mov dword [ebp - 4], 0xffffffff
jmp 0x502278
call fcn.004c6150
lea ecx, [ebp - 0xdc]
call fcn.004b4160
push 0
lea ecx, [ebp - 0xdc]
call fcn.004b67b0
cmp dword [ebx + 0x480], 0
jne 0x502576
lea eax, [ebp - 0x4c]
push eax
mov ecx, ebx
call fcn.00503320
mov eax, dword [ebp - 0x4c]
mov esi, eax
mov edi, dword [ebp - 0x48]
cmp eax, edi
je 0x50232a
lea esp, [esp]
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
xor eax, eax
mov word [ebp - 0x40], ax
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x40]
call fcn.0040759d
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
xor eax, eax
mov word [ecx], ax
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040759d
lea ecx, [ebp - 0xdc]
call fcn.004b6550
cmp dword [ebp - 0x2c], 8
jb 0x502320
push dword [ebp - 0x40]
call fcn.00412895
add esp, 4
add esi, 0x18
cmp esi, edi
jne 0x5022c0
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x50236a
mov esi, eax
cmp eax, edi
je 0x502361
cmp dword [esi + 0x14], 8
jb 0x502344
push dword [esi]
call fcn.00412895
add esp, 4
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
xor eax, eax
mov word [esi], ax
add esi, 0x18
cmp esi, edi
jne 0x502334
mov eax, dword [ebp - 0x4c]
push eax
call fcn.00412895
add esp, 4
cmp dword [ebx + 0x480], 0
jne 0x502576
cmp byte [ebx + 0x4dc], 0
jne 0x502576
mov ecx, ebx
call fcn.00503cf0
test eax, eax
jne 0x502471
push 1
sub esp, 0x18
mov esi, esp
push 1
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], eax
mov word [ecx], ax
push 0xd
push str.QQBrowser.exe
call fcn.00408679
lea eax, [ebp - 0x40]
push eax
call fcn.004f9f40
mov ecx, eax
call fcn.004f9fa0
push eax
push 0
push esi
call fcn.004bc990
add esp, 0x10
cmp dword [ebp - 0x2c], 8
jb 0x5023e7
push dword [ebp - 0x40]
call fcn.00412895
add esp, 4
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
xor eax, eax
mov word [ebp - 0x40], ax
sub esp, 0x18
mov esi, esp
push 1
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], eax
mov word [ecx], ax
push 0xd
push str.QQBrowser.exe
call fcn.00408679
lea eax, [ebp - 0x28]
push eax
call fcn.004f9f40
mov ecx, eax
call fcn.004f9fa0
push eax
push 3
push esi
call fcn.004bc990
add esp, 0x10
cmp dword [ebp - 0x14], 8
jb 0x50244d
push dword [ebp - 0x28]
call fcn.00412895
add esp, 4
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
xor eax, eax
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0xdc]
call fcn.004b6170
jmp 0x502576
mov ecx, ebx
call fcn.00503bb0
cmp eax, 1
je 0x502576
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
xor eax, eax
mov word [ebp - 0x58], ax
push eax
push 0x594314
lea ecx, [ebp - 0x58]
call fcn.00408679
push str.QBDelayUpdate.exe
lea ecx, [ebp - 0x28]
call fcn.00408738
push str.QQBrowser_Update_Post_Task
lea ecx, [ebp - 0x40]
call fcn.00408738
push 5
lea eax, [ebp - 0x58]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push 3
lea eax, [ebp - 0xa4]
push eax
call fcn.004bc990
add esp, 0x10
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004c3ec0
add esp, 0x10
cmp dword [ebp - 0x90], 8
jb 0x5024fe
push dword [ebp - 0xa4]
call fcn.00412895
add esp, 4
mov dword [ebp - 0x90], 7
mov dword [ebp - 0x94], 0
xor eax, eax
mov word [ebp - 0xa4], ax
cmp dword [ebp - 0x2c], 8
jb 0x50252c
push dword [ebp - 0x40]
call fcn.00412895
add esp, 4
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
xor eax, eax
mov word [ebp - 0x40], ax
cmp dword [ebp - 0x14], 8
jb 0x502551
push dword [ebp - 0x28]
call fcn.00412895
add esp, 4
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
xor eax, eax
mov word [ebp - 0x28], ax
cmp dword [ebp - 0x44], 8
jb 0x502576
push dword [ebp - 0x58]
call fcn.00412895
add esp, 4
lea ecx, [ebp - 0xdc]
call fcn.004b41a0
cmp dword [ebp - 0x68], 8
jb 0x502592
push dword [ebp - 0x7c]
call fcn.00412895
add esp, 4
mov dword [ebp - 0x68], 7
mov dword [ebp - 0x6c], 0
xor eax, eax
mov word [ebp - 0x7c], ax
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x5025d1
push dword [ebp - 0x60]
lea ecx, [ebp - 0x59]
push ecx
push dword [ebp - 0x88]
push eax
call fcn.004ecce0
push dword [ebp - 0x8c]
call fcn.00412895
add esp, 0x14
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret