Function at 0x5b4fd0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65707d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x6cd05c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
push eax
call fcn.005b5390
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
cmp byte [0x6e8641], 0
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x5b5097
mov edx, 0x697bf0
mov dword [0x6e8644], 0x92
call fcn.00405650
mov byte [ebp - 4], 1
mov edx, dword [eax]
cmp byte [edx], 0
jne 0x5b503d
xor ecx, ecx
jmp 0x5b504b
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5b5042
sub ecx, esi
push ecx
push edx
mov ecx, 0x6e8ae0
call fcn.00401e90
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov ecx, dword [ebp - 0x14]
mov eax, esi
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x5b50cd
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5b50c9
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x5b50c9
push 0
push dword [edx + 4]
call ebx
jmp 0x5b50cd
mov edx, 0x697c10
mov dword [0x6e8644], 0x9d
call fcn.00405650
mov byte [ebp - 4], 2
mov edx, dword [eax]
cmp byte [edx], 0
jne 0x5b50ba
xor ecx, ecx
jmp 0x5b504b
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5b50c0
jmp 0x5b5049
mov ecx, edx
call edi
push dword [0x6e8644]
push dword [ebp - 0x10]
call fcn.005b1870
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x14], esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x5b50fb
mov eax, dword [ecx]
jmp 0x5b50fd
mov eax, ecx
push 0xffffffffffffffff
push 0
push 0x6e8ae0
mov byte [eax], 0
call fcn.00401f90
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.005affc0
mov byte [ebp - 4], 4
mov ecx, dword [eax]
push dword [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.005ae000
mov byte [ebp - 4], 0
mov bl, al
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x5b5158
mov ecx, esi
lock xadd dword [edi + 4], ecx
jne 0x5b5158
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x5b5158
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea ecx, [ebp - 0x1c]
call fcn.005affc0
test bl, bl
je 0x5b516f
mov byte [ebp - 4], 6
push 0x8bbc6
jmp 0x5b5178
mov byte [ebp - 4], 7
push 0x8bbc7
call fcn.005b0050
mov byte [ebp - 4], 0
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x5b51a7
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x5b51a7
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x5b51a7
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x5b51dc
push 0x696e3b
push dword [ebp - 0x10]
call fcn.005b1730
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, 0x1e
nop dword [eax]
push 0x1f4
call ebx
sub edi, 1
jne 0x5b51d0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], esi
dec esi
test esi, esi
jg 0x5b5232
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5b522e
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x5b522e
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edx
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret