Function at 0x4f1a00
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x606b5a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xae4
push ebx
push esi
mov ebx, ecx
push edi
mov edi, str..wav
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x68]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x30], ebx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x70]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x6d1de0]
push ecx
push str._s__.wav_.wav
push edx
call fcn.005c7c98
add esp, 0xc
lea eax, [esp + 0x70]
xor edi, edi
lea ecx, [esp + 0x68]
push ebx
push eax
push 0x1000
push edi
push ecx
push 1
lea ecx, [esp + 0x310]
call fcn.005dc7b6
lea ecx, [esp + 0x2f8]
mov dword [esp + 0xaf8], edi
call fcn.005dc918
mov edx, dword [ebx + 0x1c]
push 1
push edi
push edx
mov esi, eax
call dword [sym.imp.USER32.dll_InvalidateRect]
cmp esi, 1
je 0x4f1ae0
lea ecx, [esp + 0x3a4]
mov dword [esp + 0xaf8], 1
call fcn.005e38b9
lea ecx, [esp + 0x2f8]
mov dword [esp + 0xaf8], 0xffffffff
call fcn.005df4f7
xor al, al
jmp 0x4f2028
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x2f8]
push eax
call fcn.005dc9f3
mov eax, dword [eax]
push edi
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0xb00], 2
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], edi
mov word [esp + 0x30], di
call fcn.00402980
lea ecx, [esp + 0x5c]
mov byte [esp + 0xaf8], 4
call fcn.005e38b9
mov eax, dword [esp + 0x24]
cmp eax, edi
jne 0x4f1b30
lea eax, [esp + 0x28]
lea ecx, [esp + 0x6f0]
push ebp
lea edx, [esp + 0x4f4]
push ecx
push edx
lea ecx, [esp + 0x8fc]
lea edx, [esp + 0x6c]
push ecx
push edx
push eax
call fcn.005c8048
add esp, 0x14
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edi
mov word [esp + 0x20], di
mov eax, 0x6a2074
mov byte [esp + 0xafc], 5
test eax, eax
je 0x4f1cac
lea ecx, [esp + 0x4f4]
test ecx, ecx
je 0x4f1cac
lea edx, [esp + 0x6f4]
test edx, edx
je 0x4f1cac
push eax
lea ecx, [esp + 0x4c]
call fcn.00401fd0
lea eax, [esp + 0x4f4]
lea ecx, [esp + 0x54]
push eax
mov byte [esp + 0xb00], 6
call fcn.0040d7a0
lea ecx, [esp + 0x6f4]
mov bl, 7
push ecx
lea ecx, [esp + 0x40]
mov byte [esp + 0xb00], bl
call fcn.0040d7a0
lea ecx, [esp + 0x1c]
mov byte [esp + 0xafc], 8
call fcn.00401070
mov esi, dword [esp + 0x50]
lea ecx, [esp + 0x3c]
call fcn.00402050
push eax
call fcn.005c7292
add esp, 4
lea ecx, [esp + 0x54]
mov edi, eax
call fcn.00402050
push eax
call fcn.005c7292
add esi, edi
lea esi, [eax + esi + 3]
lea ebp, [esi + esi]
push ebp
call fcn.005dfcbc
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x1c], edi
je 0x4f1c74
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x3c]
call fcn.00402050
push eax
lea ecx, [esp + 0x58]
call fcn.00402050
push eax
lea ecx, [esp + 0x50]
call fcn.00402050
push eax
mov eax, dword [esp + 0x28]
push esi
push eax
call fcn.005c7222
mov ecx, dword [esp + 0x30]
push ecx
call fcn.005c7292
add esp, 0x18
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0xafc], bl
call fcn.00401070
lea ecx, [esp + 0x54]
mov byte [esp + 0xafc], 6
call fcn.00401070
lea ecx, [esp + 0x48]
mov byte [esp + 0xafc], 5
call fcn.00401070
mov ebx, dword [esp + 0x34]
xor edi, edi
lea edx, [esp + 0xf4]
push 0x104
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x6f4]
lea ecx, [esp + 0x4f4]
push eax
lea edx, [esp + 0x8f8]
push ecx
lea eax, [esp + 0x6c]
push edx
lea ecx, [esp + 0x100]
push eax
push ecx
call fcn.005c8048
mov eax, dword [0x6d1144]
add esp, 0x14
cmp eax, edi
je 0x4f1d23
mov eax, dword [0x6d1130]
cmp eax, edi
jne 0x4f1d0b
mov eax, 0x6d1134
push eax
lea edx, [esp + 0xf8]
push str._sSounds_
push edx
call fcn.005c81cc
add esp, 0xc
jmp 0x4f1d45
lea eax, [esp + 0x8f4]
lea ecx, [esp + 0x64]
push eax
push ecx
lea edx, [esp + 0xfc]
push str._s_sSounds_
push edx
call fcn.005c81cc
add esp, 0x10
lea eax, [esp + 0xf4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4f1d73
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4f1d73
lea ecx, [esp + 0xf4]
push ecx
call fcn.005c933e
add esp, 4
xor eax, eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], eax
mov word [esp + 0x14], di
mov esi, dword [esp + 0x1c]
mov byte [esp + 0xafc], 9
cmp esi, edi
jne 0x4f1d96
lea esi, [esp + 0x20]
mov edx, 0x6a2074
test edx, edx
je 0x4f1ecc
lea ecx, [esp + 0xf4]
test ecx, ecx
je 0x4f1ecc
cmp esi, edi
je 0x4f1ecc
push edx
lea ecx, [esp + 0x40]
call fcn.00401fd0
lea edx, [esp + 0xf4]
lea ecx, [esp + 0x54]
push edx
mov byte [esp + 0xb00], 0xa
call fcn.0040d7a0
mov bl, 0xb
push esi
lea ecx, [esp + 0x4c]
mov byte [esp + 0xb00], bl
call fcn.0040d7a0
lea ecx, [esp + 0x10]
mov byte [esp + 0xafc], 0xc
call fcn.00401070
mov esi, dword [esp + 0x44]
lea ecx, [esp + 0x48]
call fcn.00402050
push eax
call fcn.005c7292
add esp, 4
lea ecx, [esp + 0x54]
mov edi, eax
call fcn.00402050
push eax
call fcn.005c7292
add esi, edi
lea esi, [eax + esi + 3]
lea ebp, [esi + esi]
push ebp
call fcn.005dfcbc
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x10], edi
je 0x4f1e90
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x48]
call fcn.00402050
push eax
lea ecx, [esp + 0x58]
call fcn.00402050
push eax
lea ecx, [esp + 0x44]
call fcn.00402050
push eax
mov eax, dword [esp + 0x1c]
push esi
push eax
call fcn.005c7222
mov ecx, dword [esp + 0x24]
push ecx
call fcn.005c7292
add esp, 0x18
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x48]
mov byte [esp + 0xafc], bl
call fcn.00401070
lea ecx, [esp + 0x54]
mov byte [esp + 0xafc], 0xa
call fcn.00401070
lea ecx, [esp + 0x3c]
mov byte [esp + 0xafc], 9
call fcn.00401070
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x34]
xor edi, edi
cmp eax, edi
pop ebp
jne 0x4f1ed5
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or esi, 0xffffffff
cmp eax, esi
jne 0x4f1f97
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4f1f97
mov eax, dword [esp + 0xc]
cmp eax, edi
mov ecx, eax
jne 0x4f1f04
lea ecx, [esp + 0x10]
mov eax, dword [esp + 0x24]
cmp eax, edi
jne 0x4f1f10
lea eax, [esp + 0x28]
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4f1f97
mov edx, dword [0x6d20bc]
mov eax, dword [0x6d20a0]
push 0x40
push edx
push eax
mov ecx, ebx
call fcn.005e1914
lea ecx, [esp + 0xc]
mov byte [esp + 0xaf8], 5
call fcn.00401070
lea ecx, [esp + 0x18]
mov byte [esp + 0xaf8], 4
call fcn.00401070
lea ecx, [esp + 0x24]
mov byte [esp + 0xaf8], 0
call fcn.00401070
lea ecx, [esp + 0x3a4]
mov dword [esp + 0xaf8], 0xd
call fcn.005e38b9
lea ecx, [esp + 0x2f8]
mov dword [esp + 0xaf8], esi
call fcn.005df4f7
xor al, al
jmp 0x4f2028
mov eax, dword [esp + 0x18]
cmp eax, edi
jne 0x4f1fa3
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x38]
call fcn.005e3979
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0xb00]
push ecx
push 1
push edx
lea ecx, [ebx + 0x144]
mov byte [esp + 0xb04], 0xe
call fcn.005ddb52
lea ecx, [esp + 0x34]
mov byte [esp + 0xaf8], 9
call fcn.005e38b9
lea ecx, [esp + 0xc]
mov byte [esp + 0xaf8], 5
call fcn.00401070
lea ecx, [esp + 0x18]
mov byte [esp + 0xaf8], 4
call fcn.00401070
lea ecx, [esp + 0x24]
mov byte [esp + 0xaf8], 0
call fcn.00401070
lea ecx, [esp + 0x2f8]
mov dword [esp + 0xaf8], esi
call fcn.0041dab0
mov al, 1
mov ecx, dword [esp + 0xaf0]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xaf0
ret 4