Function at 0x499d40
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov dword [ebp - 0x74], ecx
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x3ac]
call eax
mov byte [ebp - 1], al
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x499f20
lea ecx, [ebp - 0x28]
call fcn.004524b0
push ecx
mov ecx, esp
push str.sounddefault.snd
call fcn.0041c8a0
push ecx
mov ecx, esp
push 0x5c272c
call fcn.0041c880
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x28]
call fcn.00452750
lea ecx, [ebp - 0x10]
call fcn.0041cb20
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x499e05
lea ecx, [ebp - 0x44]
call fcn.004524b0
push 0
push 0
push str._sound_def__notice__silent__from:_Pcmaster_LunarCalendar
push ecx
mov ecx, esp
push str._rmup.exe
call fcn.0041c8a0
push ecx
mov ecx, esp
push 0x5c2724
call fcn.0041c880
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x44]
call fcn.00452750
mov ecx, eax
call fcn.0041cb20
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x5c]
call fcn.0040f740
lea ecx, [ebp - 0x44]
call fcn.004524d0
push str.set_chkbox_playtimezheng
mov ecx, dword [ebp - 0x74]
add ecx, 0x20
call fcn.00509af5
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x499e30
push 1
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x18c]
call eax
push str.set_chkbox_playtimeban
mov ecx, dword [ebp - 0x74]
add ecx, 0x20
call fcn.00509af5
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x499e5b
push 1
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x18c]
call eax
push str.set_soundplan_path
mov ecx, dword [ebp - 0x74]
add ecx, 0x20
call fcn.00509af5
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
je 0x499e7f
mov ecx, dword [ebp - 0x78]
sub ecx, 8
mov dword [ebp - 0x7c], ecx
jmp 0x499e86
mov dword [ebp - 0x7c], 0
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
je 0x499f0e
push 0x583d28
mov ecx, 0x5c2920
call fcn.00453fe0
test eax, eax
jne 0x499ec2
push 0
push 0
mov ecx, dword [ebp - 0xc]
add ecx, 0x368
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x368]
mov eax, dword [edx + 8]
call eax
jmp 0x499f0e
push str.defaultman.snd
mov ecx, 0x5c2920
call fcn.00453fe0
test eax, eax
jne 0x499ef2
push 0
push 1
mov ecx, dword [ebp - 0xc]
add ecx, 0x368
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x368]
mov edx, dword [eax + 8]
call edx
jmp 0x499f0e
mov ecx, 0x5c2920
call fcn.0041cb20
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 8
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 8]
mov eax, dword [edx + 0x3c]
call eax
lea ecx, [ebp - 0x10]
call fcn.0040f740
lea ecx, [ebp - 0x28]
call fcn.004524d0
jmp 0x499f76
push str.set_chkbox_playtimezheng
mov ecx, dword [ebp - 0x74]
add ecx, 0x20
call fcn.00509af5
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x499f4b
push 0
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x48]
mov eax, dword [edx + 0x18c]
call eax
push str.set_chkbox_playtimeban
mov ecx, dword [ebp - 0x74]
add ecx, 0x20
call fcn.00509af5
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x499f76
push 0
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x48]
mov eax, dword [edx + 0x18c]
call eax
push str.set_soundplan
mov ecx, dword [ebp - 0x74]
add ecx, 0x20
call fcn.00509af5
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x499fee
movzx ecx, byte [ebp - 1]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + 0x180]
call edx
push str.set_soundset
mov ecx, dword [ebp - 0x74]
add ecx, 0x20
call fcn.00509af5
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x499fee
movzx eax, byte [ebp - 1]
test eax, eax
je 0x499fdc
push 0x92
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 0xf8]
call eax
jmp 0x499fee
push 0x74
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 0xf8]
call eax
mov cl, byte [ebp - 1]
mov byte [0x5c245d], cl
movzx edx, byte [0x5c245d]
test edx, edx
je 0x49a00b
mov dword [ebp - 0x80], str.true
jmp 0x49a012
mov dword [ebp - 0x80], str.false
push ecx
mov ecx, esp
mov eax, dword [ebp - 0x80]
push eax
call fcn.0041c8a0
push ecx
mov ecx, esp
push str.OpenSound
call fcn.0041c8a0
push ecx
mov ecx, esp
push str.Timekeeping
call fcn.0041c8a0
mov ecx, 0x5c2870
call fcn.00480e10
movzx ecx, byte [0x5c245d]
test ecx, ecx
je 0x49a059
mov dword [ebp - 0x84], 0x587230
jmp 0x49a063
mov dword [ebp - 0x84], 0x587238
push 1
push ecx
mov ecx, esp
mov edx, dword [ebp - 0x84]
push edx
call fcn.0041c8a0
push ecx
mov ecx, esp
push 0x58f43c
call fcn.0041c8a0
mov ecx, 0x5c2f20
call fcn.0044e4b0
mov esp, ebp
pop ebp
ret 0xc