Function at 0x442b30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x643004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push edi
mov edi, ecx
mov dword [ebp - 0x34], ebx
mov dword [edi + 0xc], 0
cmp byte [esi], 0
je 0x442e5f
cmp dword [ebp + 0x14], 0
je 0x442bb2
call fcn.0044ab60
test al, 0x35
je 0x442bb2
push dword [0x652eb4]
push str.VO_MITSUYOSHI
push esi
call fcn.0048d3d0
add esp, 0xc
test eax, eax
jne 0x442b90
cmp dword [0x652eb8], eax
je 0x442e5f
mov edx, 1
mov ecx, esi
call fcn.00441f70
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00482be9
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov ecx, eax
and eax, 4
and ecx, 1
push esi
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x24]
push str._s.mix
push eax
mov dword [ebp - 0x38], ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.PAL.dll_PalFileCreate]
add esp, 8
mov dword [ebp - 0x4c], eax
cmp eax, 0xffffffff
je 0x442e17
call fcn.00402df0
lea eax, [edi + 0x4d0]
mov ebx, 8
mov dword [ebp - 0x34], eax
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x442c25
push eax
call dword [sym.imp.PAL.dll_PalSoundRelease]
add esp, 4
push 0x44
push 0
push esi
call fcn.00484a00
add esp, 0xc
add esi, 0x44
sub ebx, 1
jne 0x442c08
xor edx, edx
mov ecx, edi
call fcn.00442200
lea eax, [edi + 0x4d0]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x3c], ebx
mov esi, eax
mov dword [ebp - 0x40], eax
push 0
lea eax, [ebp - 0x44]
push eax
push 0x20
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x44], 0x20
jne 0x442d45
mov cl, byte [ebp - 0x24]
lea edx, [ebp - 0x24]
test cl, cl
je 0x442c89
jns 0x442c75
inc edx
jmp 0x442c81
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x442c81
sub cl, 0x20
mov byte [edx], cl
mov cl, byte [edx + 1]
inc edx
test cl, cl
jne 0x442c70
push 0
mov edx, 1
lea ecx, [ebp - 0x24]
call fcn.004028a0
add esp, 4
mov dword [esi], eax
test eax, eax
jne 0x442ccf
push eax
call dword [sym.imp.PAL.dll_PalTaskGetTaskData]
add esp, 4
cmp dword [eax + 0x330], 0
je 0x442cca
lea eax, [ebp - 0x24]
push eax
push str.voice_file_read_:__s
push 0
push 0
call dword [sym.imp.PAL.dll_PalDebugPrintf]
add esp, 0x10
mov ebx, dword [ebp + 0xc]
jmp 0x442d24
mov ebx, dword [ebp + 0xc]
test bl, 0x40
jne 0x442ce7
lea ecx, [ebp - 0x24]
mov edx, eax
push ecx
mov ecx, edi
call fcn.004424b0
add esp, 4
test bl, bl
js 0x442d24
cmp dword [edi + 0x196c], 0
je 0x442d24
lea eax, [edi + 0xa14]
add esi, 0x30
push eax
mov edx, esi
lea ecx, [ebp - 0x24]
call fcn.004423d0
add esp, 4
test eax, eax
je 0x442d21
push esi
mov esi, dword [ebp - 0x40]
mov ecx, edi
mov edx, dword [esi]
call fcn.00442290
add esp, 4
jmp 0x442d24
mov esi, dword [ebp - 0x40]
test bl, 2
je 0x442d35
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 0x3c]
bts eax, ecx
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x48]
add eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
cmp eax, dword [ebp - 0x28]
jae 0x442d5e
jmp 0x442d48
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x3c]
add esi, 0x44
inc eax
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], eax
cmp eax, 8
jl 0x442c47
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, 0x100
jne 0x442dba
cmp dword [edi + 0xe2c], 0
je 0x442dba
mov eax, dword [edi + 0xe34]
imul eax, dword [edi + 0xe30]
movd xmm0, dword [edi + 0xc98]
cvtdq2ps xmm0, xmm0
push 3
movd xmm1, eax
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [0x6301a4]
mulss xmm1, xmm0
cvttss2si eax, xmm1
imul eax, dword [edi + 0xcb4]
push eax
call dword [sym.imp.PAL.dll_PalSoundSetVolume]
add esp, 8
mov edi, dword [ebp + 0x10]
mov esi, 8
mov ebx, dword [sym.imp.PAL.dll_PalSoundPlayFade]
mov eax, dword [ebp - 0x34]
nop dword [eax + eax]
mov eax, dword [eax]
test eax, eax
je 0x442df5
cmp dword [ebp - 0x50], 0
je 0x442de8
push edi
push dword [ebp - 0x38]
push eax
call ebx
add esp, 0xc
jmp 0x442df5
push dword [ebp - 0x38]
push eax
call dword [sym.imp.PAL.dll_PalSoundPlay]
add esp, 8
mov eax, dword [ebp - 0x34]
add eax, 0x44
mov dword [ebp - 0x34], eax
sub esi, 1
jne 0x442dd0
lea eax, [esi + 2]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00482be9
mov esp, ebp
pop ebp
ret
shl ebx, 4
mov edx, 1
add ebx, dword [ebp - 0x34]
mov ecx, esi
push 0
call fcn.004028a0
add esp, 4
mov dword [edi + ebx*4 + 0x4d0], eax
test eax, eax
jne 0x442e72
push eax
call dword [sym.imp.PAL.dll_PalTaskGetTaskData]
add esp, 4
cmp dword [eax + 0x330], 0
je 0x442e5f
push esi
push str.voice_file_read_:__s
push 0
push 0
call dword [sym.imp.PAL.dll_PalDebugPrintf]
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00482be9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
test cl, 0x40
jne 0x442e87
push esi
mov edx, eax
mov ecx, edi
call fcn.004424b0
add esp, 4
mov eax, dword [ebp + 0xc]
test al, al
js 0x442ed3
cmp dword [edi + 0x196c], 0
je 0x442ed3
lea eax, [edi + 0xa14]
mov ecx, esi
lea edx, [edi + 0x500]
lea edx, [edx + ebx*4]
push eax
call fcn.004423d0
add esp, 4
test eax, eax
je 0x442ed0
mov edx, dword [edi + ebx*4 + 0x4d0]
lea eax, [edi + 0x500]
lea eax, [eax + ebx*4]
mov ecx, edi
push eax
call fcn.00442290
add esp, 4
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0x34], 8
je 0x442eec
test eax, 0x100
jne 0x442eec
mov edx, 1
mov ecx, edi
call fcn.0040b400
mov edx, esi
mov ecx, edi
call fcn.00442200
mov ecx, dword [ebp + 0xc]
test cl, 2
je 0x442f09
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 0x34]
bts eax, ecx
mov dword [edi + 0xc], eax
cmp dword [ebp - 0x50], 0
mov eax, dword [edi + ebx*4 + 0x4d0]
je 0x442f3c
push dword [ebp + 0x10]
push dword [ebp - 0x38]
push eax
call dword [sym.imp.PAL.dll_PalSoundPlayFade]
add esp, 0xc
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00482be9
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x38]
push eax
call dword [sym.imp.PAL.dll_PalSoundPlay]
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 2
pop edi
pop esi
pop ebx
call fcn.00482be9
mov esp, ebp
pop ebp
ret