Function at 0x41cc10
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x48
mov eax, dword [0x434004]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
mov ebx, dword [esp + 0x50]
push esi
mov esi, edx
push edi
mov eax, esi
mov edi, ecx
call fcn.0041c970
cmp byte [ebx], 0
jne 0x41cc49
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0041eaa8
add esp, 0x48
ret
cmp dword [esp + 0x60], 0
je 0x41cc64
call fcn.00402f10
test al, 5
je 0x41cc64
call dword [sym.imp.PAL.dll_PalTaskGetGroundData]
jmp 0x41ce6f
push ebp
push ebx
mov ebp, edi
lea eax, [esp + 0x38]
push 0x42f720
and ebp, 1
and edi, 4
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x20], edi
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.PAL.dll_PalFileCreate]
add esp, 0x14
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x41cdc2
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
xor edi, edi
add esi, 0x9c
mov dword [esp + 0x10], edi
mov dword [esp + 0x24], esi
jmp 0x41ccc4
mov eax, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x24]
push ecx
push 0x20
lea edx, [esp + 0x40]
push edx
push eax
call ebp
cmp dword [esp + 0x20], 0x20
jne 0x41cd32
push 1
lea ebx, [esp + 0x38]
call fcn.00408650
add esp, 4
test eax, eax
mov dword [esi], eax
jne 0x41cd07
mov eax, ebx
push eax
push 0x42f728
push 0
push 0
call dword [sym.imp.PAL.dll_PalDebugPrintf]
add esp, 0x10
jmp 0x41cd15
lea ecx, [esp + 0x34]
push ecx
push eax
call fcn.0041c880
add esp, 8
mov eax, dword [esp + 0x10]
add eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x30]
mov dword [esp + 0x10], eax
jae 0x41cd32
add edi, 1
add esi, 0xc
cmp edi, 8
jl 0x41ccc0
call dword [sym.imp.PAL.dll_PalTaskGetGroundData]
cmp dword [eax + 0x1d8], 0
je 0x41cd69
fild dword [eax + 0x1dc]
push 2
fmul qword [0x42f980]
fimul dword [eax + 0x24]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
call fcn.00425ae0
push eax
call dword [sym.imp.PAL.dll_PalSoundSetVolume]
add esp, 8
mov esi, dword [esp + 0x24]
mov ebx, dword [sym.imp.PAL.dll_PalSoundPlayFade]
mov ebp, dword [sym.imp.PAL.dll_PalSoundPlay]
mov edi, 8
mov edi, edi
mov eax, dword [esi]
test eax, eax
je 0x41cdaa
cmp dword [esp + 0x14], 0
je 0x41cd9f
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x1c]
push edx
push ecx
push eax
call ebx
add esp, 0xc
jmp 0x41cdaa
mov edx, dword [esp + 0x1c]
push edx
push eax
call ebp
add esp, 8
add esi, 0xc
sub edi, 1
jne 0x41cd80
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41ce6e
push 1
call fcn.00408650
add esp, 4
test eax, eax
mov dword [esi + 0x9c], eax
jne 0x41cdfa
call dword [sym.imp.PAL.dll_PalTaskGetGroundData]
cmp dword [eax], 0
je 0x41ce6e
push ebx
push 0x42f708
push 0
push 0
call dword [sym.imp.PAL.dll_PalDebugPrintf]
add esp, 0x10
jmp 0x41ce6e
call dword [sym.imp.PAL.dll_PalTaskGetGroundData]
cmp dword [eax + 0x1d8], 0
je 0x41ce31
fild dword [eax + 0x1dc]
push 2
fmul qword [0x42f980]
fimul dword [eax + 0x24]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
call fcn.00425ae0
push eax
call dword [sym.imp.PAL.dll_PalSoundSetVolume]
add esp, 8
mov ecx, dword [esi + 0x9c]
push ebx
push ecx
call fcn.0041c880
add esp, 8
test edi, edi
je 0x41ce5d
mov edx, dword [esp + 0x60]
mov eax, dword [esi + 0x9c]
push edx
push ebp
push eax
call dword [sym.imp.PAL.dll_PalSoundPlayFade]
add esp, 0xc
jmp 0x41ce6e
mov ecx, dword [esi + 0x9c]
push ebp
push ecx
call dword [sym.imp.PAL.dll_PalSoundPlay]
add esp, 8
pop ebp
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0041eaa8
add esp, 0x48
ret