Function at 0x42b340
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5171c8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x568e30]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
call fcn.00425820
mov esi, eax
call fcn.0042c5f0
call fcn.0042c3a0
test al, al
je 0x42b38c
mov ecx, esi
call fcn.0042c500
test al, al
jne 0x42b3a2
lea ecx, [esi + 0x118]
call fcn.00402980
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x42b3a8
push esi
call fcn.0042c0d0
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.0042b6b0
mov eax, dword [esi + 4]
test eax, eax
je 0x42b54d
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 0x42b442
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x42b442
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 0x42b3e1
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 0x42b53f
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x42b53f
lea edx, [esp + 0x24]
push edx
mov ebx, esi
call fcn.0042b8c0
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 0x42b4b9
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 0x42b4ed
lea edx, [ecx + 8]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x42b4ed
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 0x42b4ed
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 0x42b53f
mov ebx, eax
add eax, 8
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x42b53f
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 0x42b53f
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 0x42b3c6
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