Function at 0x602c70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
fld dword [0x7238c8]
sub esp, 0x41c
push ebx
mov ebx, dword [ebp + 8]
push esi
lea eax, [ebx + 0x15]
and eax, 0xfffffffc
mov dword [ebx], 0x714290
mov dword [ebx + 0xe], eax
push edi
xor edi, edi
mov dword [eax], edi
fstp dword [ebx + 9]
mov eax, dword [0x73658c]
cmp eax, edi
mov dword [ebx + 4], 0xac44
mov byte [ebx + 8], 2
mov byte [ebx + 0xd], 0
mov dword [ebx], 0x721398
jne 0x602cc1
call fcn.005ebef0
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [ebx + 0x1a], eax
mov eax, dword [eax + 0xe]
push eax
call esi
mov eax, dword [0x73658c]
cmp eax, edi
jne 0x602cde
call fcn.005ebef0
mov dword [ebx + 0x1e], eax
mov ecx, dword [eax + 0xe]
push ecx
call esi
mov eax, dword [0x73658c]
cmp eax, edi
jne 0x602cf5
call fcn.005ebef0
mov dword [ebx + 0x22], eax
mov edx, dword [eax + 0xe]
push edx
call esi
or eax, 0xffffffff
mov dword [ebx + 0x26], eax
mov dword [ebx + 0x2a], eax
lea esi, [ebx + 0x2e]
lea eax, [esi + 8]
mov dword [esi], 0x714598
push eax
mov dword [esi + 4], edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [ebp + 0xc]
mov byte [esi + 0x20], 0
mov byte [esi + 0x21], 2
mov dword [esi + 0x22], 0xac44
mov dword [ebx + 0x54], ecx
call fcn.004c1f10
lea edx, [esp + 0x220]
push edx
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x5c], edi
mov dword [ebx + 0x60], edi
mov dword [ebx + 0x64], edi
call fcn.004c4840
lea eax, [esp + 0x220]
push eax
push str._s_clickdown.wav
lea edx, [esp + 0x20]
call fcn.00401000
add esp, 8
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x602da6
push str.resources_
lea edx, [esp + 0x224]
call fcn.00401000
add esp, 4
lea edx, [esp + 0x220]
push edx
push str._s_clickdown.wav
lea edx, [esp + 0x20]
call fcn.00401000
add esp, 8
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.005f3440
push eax
lea edi, [ebx + 0x1a]
call fcn.005ebe20
mov edi, dword [esp + 0x10]
test edi, edi
je 0x602dfa
mov dword [esp + 0x10], 0
mov edx, dword [edi + 0xe]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x602dfa
cmp edi, dword [0x73658c]
je 0x602df0
mov eax, dword [edi]
mov edx, dword [eax]
push 1
mov ecx, edi
call edx
jmp 0x602dfa
mov eax, dword [edi + 0xe]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea ecx, [esp + 0x220]
push ecx
push str._s_clickup.wav
lea edx, [esp + 0x20]
call fcn.00401000
add esp, 8
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.005f3440
push eax
lea edi, [ebx + 0x1e]
call fcn.005ebe20
mov edi, dword [esp + 0x14]
test edi, edi
je 0x602e67
mov dword [esp + 0x14], 0
mov ecx, dword [edi + 0xe]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x602e67
cmp edi, dword [0x73658c]
je 0x602e5d
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
jmp 0x602e67
mov ecx, dword [edi + 0xe]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea edx, [esp + 0xc]
push edx
mov edi, esi
mov dword [ebx + 0x50], 0xac44
mov byte [ebx + 0x4f], 2
call fcn.005d8930
push eax
lea edi, [ebx + 0x22]
call fcn.005ebe20
mov edi, dword [esp + 0xc]
test edi, edi
je 0x602ec3
mov dword [esp + 0xc], 0
mov eax, dword [edi + 0xe]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x602ec3
cmp edi, dword [0x73658c]
je 0x602eb9
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
jmp 0x602ec3
mov ecx, dword [edi + 0xe]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0
lea eax, [ebx + 0x1a]
push eax
push esi
call fcn.005d8990
push 0
push 0
xor eax, eax
call fcn.005d8ae0
push 1
push 0
xor eax, eax
call fcn.005d8ae0
push 1
lea eax, [ebx + 0x1e]
push eax
push esi
call fcn.005d8990
push 0
push 0
mov eax, 1
call fcn.005d8ae0
push 1
push 0
mov eax, 1
call fcn.005d8ae0
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8