Function at 0x511420
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
push 0
lea eax, [ebp - 0x50]
mov edi, ecx
push eax
mov dword [ebp - 4], edi
call fcn.00510a5a
push eax
call fcn.00520ffe
pop ecx
lea ecx, [ebp - 0x50]
call fcn.00403f80
push 1
sub esp, 0x18
mov ecx, esp
push str.QBPin.exe
call fcn.0040921d
lea eax, [ebp - 0x50]
push eax
call fcn.0050788d
mov ecx, eax
call fcn.005078bd
push eax
lea eax, [ebp - 0x20]
push 1
push eax
call fcn.005ad360
add esp, 0x10
lea ecx, [ebp - 0x50]
call fcn.00403f80
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x5114a0
lea eax, [ebp - 0x20]
push eax
call fcn.00521010
pop ecx
lea ebx, [edi + 0xd4]
mov ecx, ebx
call fcn.0050593f
mov ecx, ebx
movzx esi, al
call fcn.005058c4
test al, al
jne 0x5116a0
mov esi, dword [edi + 0x740]
lea ecx, [ebp - 0x38]
push 0x607d58
call fcn.0040921d
mov eax, esi
neg eax
sbb eax, eax
add eax, 5
push eax
lea eax, [ebp - 0x38]
push eax
push 2
call fcn.005aaa10
add esp, 0xc
lea ecx, [ebp - 0x38]
call fcn.00403f80
test esi, esi
je 0x511636
mov ecx, ebx
call fcn.0050594e
test al, al
je 0x511584
push dword [0x62a30c]
lea ecx, [ebp - 0x38]
call fcn.0040921d
mov esi, 0x601cd8
push esi
call fcn.00553a47
pop ecx
push eax
push esi
lea ecx, [ebp - 0x38]
call fcn.00409b94
mov esi, dword [str.daohang.qq.com__frshortcut]
push esi
call fcn.00553a47
pop ecx
push eax
push esi
lea ecx, [ebp - 0x38]
call fcn.00409b94
push dword [0x62a368]
lea ecx, [ebp - 0x50]
call fcn.0040921d
lea eax, [ebp - 0x68]
mov ecx, edi
push eax
call fcn.0050fefa
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x38]
push eax
push 1
lea ecx, [ebp - 4]
call fcn.0050d06c
lea ecx, [ebp - 0x68]
call fcn.00403f80
lea ecx, [ebp - 0x50]
call fcn.00403f80
lea ecx, [ebp - 0x38]
call fcn.00403f80
push dword [0x62a35c]
lea ecx, [ebp - 0x38]
call fcn.0040921d
push dword [0x62a30c]
lea ecx, [ebp - 0x50]
call fcn.0040921d
lea eax, [ebp - 0x68]
mov ecx, edi
push eax
call fcn.00510d16
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x50]
push eax
push 1
lea ecx, [ebp - 4]
call fcn.0050d06c
lea ecx, [ebp - 0x68]
call fcn.00403f80
lea ecx, [ebp - 0x50]
call fcn.00403f80
lea ecx, [ebp - 0x38]
call fcn.00403f80
mov esi, 0x5f9b70
lea ecx, [ebp - 0x38]
push esi
call fcn.0040921d
push esi
lea ecx, [ebp - 0x50]
call fcn.0040921d
lea eax, [ebp - 0x68]
mov ecx, edi
push eax
call fcn.00510d16
mov ecx, ebx
mov esi, eax
call fcn.00505793
lea ecx, [ebp - 0x38]
movzx eax, al
push ecx
push esi
lea ecx, [ebp - 0x50]
push ecx
push 0
push eax
push 0x68
push 0x7d6
mov ecx, edi
call fcn.0050eec7
lea ecx, [ebp - 0x68]
call fcn.00403f80
lea ecx, [ebp - 0x50]
call fcn.00403f80
lea ecx, [ebp - 0x38]
call fcn.00403f80
mov ecx, ebx
call fcn.00505930
test al, al
je 0x511693
push dword [0x62a35c]
lea ecx, [ebp - 0x38]
call fcn.0040921d
push dword [0x62a318]
lea ecx, [ebp - 0x50]
call fcn.0040921d
lea eax, [ebp - 0x68]
mov ecx, edi
push eax
call fcn.00510d16
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
lea ecx, [ebp - 4]
call fcn.0050d06c
lea ecx, [ebp - 0x68]
call fcn.00403f80
lea ecx, [ebp - 0x50]
call fcn.00403f80
lea ecx, [ebp - 0x38]
call fcn.00403f80
lea ecx, [ebp - 0x20]
call fcn.00403f80
pop edi
pop esi
pop ebx
leave
ret
mov ecx, edi
call fcn.0051071d
cmp eax, 1
je 0x5114f2
and dword [ebp - 8], 0
lea ecx, [ebp - 0x38]
push 0x607d58
call fcn.0040921d
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x38]
push eax
push 2
call fcn.005ab780
add esp, 0x10
lea ecx, [ebp - 0x38]
call fcn.00403f80
test esi, esi
je 0x511636
cmp dword [ebp - 8], 5
jmp 0x5114f4