Function at 0x49ac60
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4cc
mov eax, dword [0x5c0c70]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x4c0], ecx
push 0
push 0x58f77c
push 4
push 0
push 0
push 1
lea ecx, [ebp - 0x490]
call fcn.00490fb0
mov ecx, dword [ebp - 0x4c0]
call fcn.004fa27c
push eax
lea ecx, [ebp - 0x490]
call fcn.004b4b40
cmp eax, 1
jne 0x49af35
push str.set_soundplan_path
mov ecx, dword [ebp - 0x4c0]
add ecx, 0x20
call fcn.00509af5
mov dword [ebp - 0x4a0], eax
cmp dword [ebp - 0x4a0], 0
je 0x49ad07
lea eax, [ebp - 0x414]
push eax
mov ecx, dword [ebp - 0x4a0]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x4a0]
mov eax, dword [edx + 0x3c]
call eax
push 0xff333333
mov ecx, dword [ebp - 0x4a0]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x4a0]
mov eax, dword [edx + 0x54]
call eax
lea ecx, [ebp - 0x414]
push ecx
mov ecx, 0x5c2920
call fcn.0041cec0
lea ecx, [ebp - 0x49c]
call fcn.0040ee90
lea ecx, [ebp - 0x498]
call fcn.0040ee90
lea edx, [ebp - 0x214]
push edx
lea ecx, [ebp - 0x49c]
call fcn.0041cec0
push 0x5c2920
push str._sound_
push 0x5c272c
lea eax, [ebp - 0x4a8]
push eax
call fcn.0041ca60
add esp, 0xc
push eax
lea ecx, [ebp - 0x4ac]
push ecx
call fcn.0041ca00
add esp, 0xc
push eax
lea ecx, [ebp - 0x498]
call fcn.0041c8e0
lea ecx, [ebp - 0x4ac]
call fcn.0040f740
lea ecx, [ebp - 0x4a8]
call fcn.0040f740
push 0
lea ecx, [ebp - 0x498]
call fcn.0041cb20
push eax
lea ecx, [ebp - 0x49c]
call fcn.0041cb20
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push ecx
mov ecx, esp
push 0x5c2920
call fcn.0041c880
push ecx
mov ecx, esp
push str.Name
call fcn.0041c8a0
push ecx
mov ecx, esp
push str.SoundPack
call fcn.0041c8a0
mov ecx, 0x5c2870
call fcn.00480e10
push str.set_soundplan_path
mov ecx, dword [ebp - 0x4c0]
add ecx, 0x20
call fcn.00509af5
mov dword [ebp - 0x4c4], eax
cmp dword [ebp - 0x4c4], 0
je 0x49ae14
mov edx, dword [ebp - 0x4c4]
sub edx, 8
mov dword [ebp - 0x4c8], edx
jmp 0x49ae1e
mov dword [ebp - 0x4c8], 0
mov eax, dword [ebp - 0x4c8]
mov dword [ebp - 0x494], eax
cmp dword [ebp - 0x494], 0
je 0x49af1f
push 0x280
call fcn.0053e4e7
add esp, 4
mov dword [ebp - 0x4bc], eax
cmp dword [ebp - 0x4bc], 0
je 0x49ae66
mov ecx, dword [ebp - 0x4bc]
call fcn.004ae600
mov dword [ebp - 0x4cc], eax
jmp 0x49ae70
mov dword [ebp - 0x4cc], 0
mov ecx, dword [ebp - 0x4cc]
mov dword [ebp - 0x4a4], ecx
push 0x19
mov edx, dword [ebp - 0x4a4]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x4a4]
mov edx, dword [eax + 0xf8]
call edx
lea eax, [ebp - 0x414]
push eax
mov ecx, dword [ebp - 0x4a4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x4a4]
mov eax, dword [edx + 0x3c]
call eax
mov ecx, 0x5c2920
call fcn.0041cb20
push eax
mov ecx, dword [ebp - 0x4a4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x4a4]
mov eax, dword [edx + 0x170]
call eax
mov ecx, dword [ebp - 0x4a4]
push ecx
mov edx, dword [ebp - 0x494]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x494]
mov edx, dword [eax + 0x10]
call edx
push 0
mov eax, dword [ebp - 0x494]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x494]
mov eax, dword [edx + 0xc]
call eax
sub eax, 1
push eax
mov ecx, dword [ebp - 0x494]
add ecx, 0x368
mov edx, dword [ebp - 0x494]
mov eax, dword [edx + 0x368]
mov edx, dword [eax + 8]
call edx
lea ecx, [ebp - 0x498]
call fcn.0040f740
lea ecx, [ebp - 0x49c]
call fcn.0040f740
lea ecx, [ebp - 0x490]
call fcn.00491230
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053ea90
mov esp, ebp
pop ebp
ret 0xc