Function at 0x42b170
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x517258
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x568cb8]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
call fcn.00425630
mov esi, eax
call fcn.0042c400
call fcn.0042c1f0
test al, al
je 0x42b1bc
mov ecx, esi
call fcn.0042c310
test al, al
jne 0x42b1d2
lea ecx, [esi + 0x118]
call fcn.00402a90
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x42b1d8
push esi
call fcn.0042bf20
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.0042b540
mov eax, dword [esi + 4]
test eax, eax
je 0x42b37d
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esi, 0x14
mov ecx, dword [esi]
push 0xffffffffffffffff
push ecx
call edi
cmp dword [esi + 0x28], 0
mov edx, dword [esi]
push edx
sete bl
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test bl, bl
je 0x42b272
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x42b272
mov edx, dword [esi]
push 0xffffffffffffffff
push edx
call edi
lea ebx, [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [ebx + 4]
mov ecx, dword [esi]
push 0
push 0x1f4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SignalObjectAndWait]
mov eax, dword [esi]
push 0xffffffffffffffff
push eax
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [esi]
push 0xffffffffffffffff
push edx
call edi
cmp dword [esi + 0x28], 0
mov eax, dword [esi]
push eax
sete bl
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test bl, bl
jne 0x42b211
mov ecx, dword [esi]
push 0xffffffffffffffff
push ecx
call edi
cmp dword [esi + 0x28], 0
mov edx, dword [esi]
push edx
sete bl
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test bl, bl
jne 0x42b36f
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x42b36f
lea edx, [esp + 0x24]
push edx
mov ebx, esi
call fcn.0042b710
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [esp + 0x38], edx
mov ecx, dword [eax + 0xc]
sub esp, 8
mov ebx, esp
mov dword [ebx], edx
mov dword [ebx + 4], edx
mov eax, dword [esp + 0x30]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x24], esp
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
cmp eax, edx
je 0x42b2e9
add eax, 8
mov ecx, 1
lock xadd dword [eax], ecx
mov ecx, dword [ebx + 4]
mov dword [esp + 0x1c], ecx
cmp ecx, edx
je 0x42b31d
lea edx, [ecx + 8]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x42b31d
mov edx, dword [ecx]
mov eax, dword [edx]
call eax
mov ecx, dword [esp + 0x1c]
lea edx, [ecx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x42b31d
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [ebx + 4], ecx
mov ecx, dword [esp + 0x28]
mov dword [ebx], edx
mov eax, dword [ecx]
mov edx, dword [eax]
call edx
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x28]
test eax, eax
je 0x42b36f
mov ebx, eax
add eax, 8
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x42b36f
mov edx, dword [ebx]
mov eax, dword [edx]
mov ecx, ebx
call eax
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x42b36f
mov eax, dword [ebx]
mov edx, dword [eax + 4]
mov ecx, ebx
call edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x42b1f6
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4