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

Disassembly:
push 0xffffffffffffffff
push 0x5a675d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x694
push ebp
push esi
mov ebp, ecx
push edi
mov edi, str..wav
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x320]
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 [0x661f90]
push ecx
push str._s__.wav_.wav
push edx
call fcn.0056b4da
add esp, 0xc
lea eax, [esp + 0x320]
lea ecx, [esp + 0x1c]
push ebp
push eax
push 0x1000
push 0
push ecx
push 1
lea ecx, [esp + 0x140]
call fcn.0057f9c6
lea ecx, [esp + 0x128]
mov dword [esp + 0x6a8], 0
call fcn.0057fb28
mov edx, dword [ebp + 0x1c]
push 1
push 0
push edx
mov esi, eax
call dword [sym.imp.USER32.dll_InvalidateRect]
cmp esi, 1
je 0x4bd6c6
lea ecx, [esp + 0x1d4]
mov dword [esp + 0x6a8], 1
call fcn.00586b33
lea ecx, [esp + 0x128]
mov dword [esp + 0x6a8], 0xffffffff
call fcn.00582707
xor al, al
jmp 0x4bd937
lea eax, [esp + 0x14]
lea ecx, [esp + 0x128]
push eax
call fcn.0057fc03
lea ecx, [esp + 0x3a0]
lea edx, [esp + 0x5a0]
push ecx
lea eax, [esp + 0x4a4]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push ecx
push edx
call fcn.0056b52c
mov eax, dword [0x65ca8c]
add esp, 0x14
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x3a0]
lea edx, [esp + 0x5a0]
push ecx
push edx
lea eax, [esp + 0x14]
push 0x637020
push eax
mov byte [esp + 0x6b8], 3
call fcn.0057f8fb
add esp, 0x10
lea ecx, [esp + 0x24]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x3a0]
lea eax, [esp + 0x5a0]
push edx
lea ecx, [esp + 0x4a4]
push eax
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x30]
push edx
push eax
call fcn.0056b52c
mov eax, dword [0x6614d0]
add esp, 0x14
test eax, eax
je 0x4bd79b
mov ecx, dword [0x6614c8]
lea edx, [esp + 0x24]
push ecx
push str._sSounds_
push edx
call fcn.0056b4da
add esp, 0xc
jmp 0x4bd7ba
lea eax, [esp + 0x4a0]
lea ecx, [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x2c]
push str._s_sSounds_
push edx
call fcn.0056b4da
add esp, 0x10
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [esp + 0x24]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
jne 0x4bd7e6
call edi
cmp eax, 2
jne 0x4bd7e6
lea ecx, [esp + 0x24]
push ecx
call fcn.0056c982
add esp, 4
mov edx, dword [0x65ca8c]
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x24]
push eax
push ecx
lea edx, [esp + 0x18]
push 0x637020
push edx
mov byte [esp + 0x6b8], 4
call fcn.0057f8fb
mov eax, dword [esp + 0x20]
add esp, 0x10
push eax
call esi
or esi, 0xffffffff
cmp eax, esi
jne 0x4bd8be
call edi
cmp eax, 2
jne 0x4bd8be
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x4bd8be
mov eax, dword [0x66229c]
mov ecx, dword [0x662280]
push 0x40
push eax
push ecx
mov ecx, ebp
call fcn.00584b27
lea ecx, [esp + 0x10]
mov byte [esp + 0x6a8], 3
call fcn.00586b33
lea ecx, [esp + 0xc]
mov byte [esp + 0x6a8], 2
call fcn.00586b33
lea ecx, [esp + 0x14]
mov byte [esp + 0x6a8], 0
call fcn.00586b33
lea ecx, [esp + 0x1d4]
mov dword [esp + 0x6a8], 5
call fcn.00586b33
lea ecx, [esp + 0x128]
mov dword [esp + 0x6a8], esi
call fcn.00582707
xor al, al
jmp 0x4bd937
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x6b0]
push edx
push 1
push eax
lea ecx, [ebp + 0x144]
call fcn.00580d62
lea ecx, [esp + 0x10]
mov byte [esp + 0x6a8], 3
call fcn.00586b33
lea ecx, [esp + 0xc]
mov byte [esp + 0x6a8], 2
call fcn.00586b33
lea ecx, [esp + 0x14]
mov byte [esp + 0x6a8], 0
call fcn.00586b33
lea ecx, [esp + 0x1d4]
mov dword [esp + 0x6a8], 6
call fcn.00586b33
lea ecx, [esp + 0x128]
mov dword [esp + 0x6a8], esi
call fcn.00582707
mov al, 1
mov ecx, dword [esp + 0x6a0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x6a0
ret 4