Function at 0x4bc310
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5679e0
mov eax, dword fs:[0]
push eax
sub esp, 0x74
push ebx
push esi
push edi
mov eax, dword [0x5c5678]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
cmp byte [ebx + 0x18], 0
je 0x4bc366
cmp byte [ebx + 0x1a], 0
jne 0x4bc366
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [ebx + 0xb0]
jne 0x4bc383
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4bc366
cmp dword [ebx + 0x9c], 0x20
jg 0x4bc366
mov eax, dword [ebx + 0xec]
mov eax, dword [eax]
mov esi, dword [ebx + 0xd4]
mov edi, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], edi
jmp 0x4bc3c0
mov ecx, dword [ebp + 8]
mov ebx, dword [ebx + 0xec]
mov eax, dword [ecx + 0xd4]
test esi, esi
je 0x4bc3d7
cmp esi, eax
je 0x4bc3dc
call fcn.0053ecd6
cmp edi, ebx
je 0x4bc429
test esi, esi
jne 0x4bc41c
call fcn.0053ecd6
cmp edi, dword [esi + 0x18]
jne 0x4bc3f3
call fcn.0053ecd6
mov eax, dword [edi + 0x14]
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx]
push eax
push ecx
call fcn.0053e4dd
add esp, 8
test eax, eax
je 0x4bc420
lea esi, [ebp - 0x1c]
call fcn.004660a0
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp + 8]
jmp 0x4bc3c0
mov esi, dword [esi]
jmp 0x4bc3e9
mov eax, dword [ebp + 8]
push eax
jmp 0x4bc5ba
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
xor ebx, ebx
push ebx
push 0x42000000
push 3
push ebx
push 3
push 1
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, 0xffffffff
je 0x4bc54d
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, eax
test ebx, ebx
je 0x4bc54d
push 0x5cea3e
push 0x7de
call fcn.0053ef06
add esp, 8
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4bc54d
push 0x5cea3e
push 0x14
call fcn.0053f363
add esp, 8
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4bc54d
mov edx, eax
lea esi, [ebp - 0x40]
mov dword [edx + 0x10], ebx
call fcn.004dfc50
xor eax, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], al
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x44], edi
mov edi, esi
call fcn.00425450
mov ecx, dword [ebp - 0x14]
sub esp, 0x18
lea edi, [ebp - 0x44]
mov esi, esp
mov dword [ebp - 0x38], 0x7de
mov dword [ebp - 0x34], ecx
mov dword [ebp + 0xc], esp
call fcn.004bce90
push ebx
lea esi, [ebp - 0x7c]
call fcn.004ccba0
add esp, 0x1c
mov edi, eax
lea esi, [ebp - 0x60]
mov byte [ebp - 4], 2
call fcn.004ccc40
mov edx, esi
push edx
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp + 8]
add eax, 0xd4
push eax
mov byte [ebp - 4], 3
call fcn.004c90e0
mov eax, esi
call fcn.004bcec0
lea eax, [ebp - 0x7c]
call fcn.004bcec0
lea esi, [ebp - 0x44]
call fcn.004bcdc0
test eax, eax
jne 0x4bc5a1
mov eax, esi
call fcn.004bce70
mov edi, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4bc55a
push edi
call esi
test ebx, ebx
je 0x4bc561
push ebx
call esi
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4bc571
push eax
call fcn.0053ece6
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4bc581
push eax
call fcn.0053d782
add esp, 4
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp + 8]
mov edx, dword [esi + 0xa0]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea eax, [ebp - 0x44]
call fcn.004bce70
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8