Function at 0x474910
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 0x474af0
lea ecx, [ebp - 0x28]
call fcn.0042e670
push ecx
mov ecx, esp
push str.sounddefault.snd
call fcn.0041c8a0
push ecx
mov ecx, esp
push 0x591308
call fcn.0041c880
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x28]
call fcn.0042e910
lea ecx, [ebp - 0x10]
call fcn.0041cb20
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4749d5
lea ecx, [ebp - 0x44]
call fcn.0042e670
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 0x591300
call fcn.0041c880
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x44]
call fcn.0042e910
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.0042e690
push str.set_chkbox_playtimezheng
mov ecx, dword [ebp - 0x74]
add ecx, 0x20
call fcn.004dd71b
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x474a00
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.004dd71b
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x474a2b
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.004dd71b
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
je 0x474a4f
mov ecx, dword [ebp - 0x78]
sub ecx, 8
mov dword [ebp - 0x7c], ecx
jmp 0x474a56
mov dword [ebp - 0x7c], 0
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
je 0x474ade
push 0x5556b0
mov ecx, 0x5914f8
call fcn.00430140
test eax, eax
jne 0x474a92
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 0x474ade
push str.defaultman.snd
mov ecx, 0x5914f8
call fcn.00430140
test eax, eax
jne 0x474ac2
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 0x474ade
mov ecx, 0x5914f8
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.0042e690
jmp 0x474b46
push str.set_chkbox_playtimezheng
mov ecx, dword [ebp - 0x74]
add ecx, 0x20
call fcn.004dd71b
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x474b1b
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.004dd71b
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x474b46
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.004dd71b
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x474bbe
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.004dd71b
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x474bbe
movzx eax, byte [ebp - 1]
test eax, eax
je 0x474bac
push 0x92
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 0xf8]
call eax
jmp 0x474bbe
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 [0x591039], cl
movzx edx, byte [0x591039]
test edx, edx
je 0x474bdb
mov dword [ebp - 0x80], str.true
jmp 0x474be2
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, 0x591448
call fcn.0045bf10
movzx ecx, byte [0x591039]
test ecx, ecx
je 0x474c29
mov dword [ebp - 0x84], 0x558be0
jmp 0x474c33
mov dword [ebp - 0x84], 0x558be8
push 0
push ecx
mov ecx, esp
mov edx, dword [ebp - 0x84]
push edx
call fcn.0041c8a0
push ecx
mov ecx, esp
push 0x560bc4
call fcn.0041c8a0
mov ecx, 0x591ad8
call fcn.0042ab10
mov esp, ebp
pop ebp
ret 0xc