Function at 0x4197b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x64
mov eax, dword [0x434004]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x68]
push ebx
push ebp
push esi
lea esi, [edx + 0x40]
mov ebx, ecx
xor ecx, ecx
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], ecx
xor ebp, ebp
cmp eax, 0xfffffff
mov dword [esi + 0x18], ecx
push edi
mov dword [esp + 0x14], ebx
mov byte [esp + 0x30], 0
mov dword [esp + 0x31], ecx
mov dword [esp + 0x35], ecx
mov dword [esp + 0x39], ecx
mov dword [esp + 0x3d], ecx
mov dword [esp + 0x41], ecx
mov dword [esp + 0x45], ecx
mov dword [esp + 0x49], ecx
mov word [esp + 0x4d], cx
mov byte [esp + 0x4f], cl
mov dword [esi + 0x1c], ecx
je 0x419a74
lea ecx, [ebx + 0xbfab0]
push 1
push ecx
lea ecx, [esp + 0x38]
call fcn.00403330
add esp, 8
cmp dword [ebx + 0x6d2e0], ebp
jne 0x419860
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x34]
push eax
lea ecx, [ebx + 0x6d756]
push ecx
call fcn.0041eac0
add esp, 0xc
lea esp, [esp]
lea edi, [ebx + 0x7192c]
mov eax, edi
call fcn.0041c970
cmp byte [esp + 0x30], 0
je 0x419a49
call fcn.00402f10
test al, 5
je 0x41988c
call dword [sym.imp.PAL.dll_PalTaskGetGroundData]
jmp 0x419a49
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x54]
push 0x42f720
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x60]
push edx
call dword [sym.imp.PAL.dll_PalFileCreate]
add esp, 0x14
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x4199b6
add edi, 0x9c
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], edi
jmp 0x4198d5
mov eax, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x24]
push ecx
push 0x20
lea edx, [esp + 0x5c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x20], 0x20
jne 0x419947
push 1
lea ebx, [esp + 0x54]
call fcn.00408650
add esp, 4
test eax, eax
mov dword [edi], eax
jne 0x41991c
mov eax, ebx
push eax
push 0x42f728
push 0
push 0
call dword [sym.imp.PAL.dll_PalDebugPrintf]
add esp, 0x10
jmp 0x41992a
lea ecx, [esp + 0x50]
push ecx
push eax
call fcn.0041c880
add esp, 8
mov eax, dword [esp + 0x10]
add eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
jae 0x419947
add ebp, 1
add edi, 0xc
cmp ebp, 8
jl 0x4198d1
call dword [sym.imp.PAL.dll_PalTaskGetGroundData]
cmp dword [eax + 0x1d8], 0
je 0x41997e
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 edi, dword [esp + 0x18]
mov ebx, dword [sym.imp.PAL.dll_PalSoundPlay]
mov ebp, 8
lea ecx, [ecx]
mov eax, dword [edi]
test eax, eax
je 0x41999e
push 0
push eax
call ebx
add esp, 8
add edi, 0xc
sub ebp, 1
jne 0x419990
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x419a45
push 1
lea ebx, [esp + 0x34]
call fcn.00408650
add esp, 4
test eax, eax
mov dword [edi + 0x9c], eax
jne 0x4199ec
call dword [sym.imp.PAL.dll_PalTaskGetGroundData]
cmp dword [eax], ebp
je 0x419a45
mov eax, ebx
push eax
push 0x42f708
push 0
push 0
call dword [sym.imp.PAL.dll_PalDebugPrintf]
jmp 0x419a42
call dword [sym.imp.PAL.dll_PalTaskGetGroundData]
cmp dword [eax + 0x1d8], ebp
je 0x419a22
fild dword [eax + 0x1dc]
push 2
fmul qword [0x42f980]
fimul dword [eax + 0x24]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
call fcn.00425ae0
push eax
call dword [sym.imp.PAL.dll_PalSoundSetVolume]
add esp, 8
mov edx, dword [edi + 0x9c]
lea ecx, [esp + 0x30]
push ecx
push edx
call fcn.0041c880
mov eax, dword [edi + 0x9c]
push 0
push eax
call dword [sym.imp.PAL.dll_PalSoundPlay]
add esp, 0x10
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 0x30]
push ecx
push 0x42f3bc
push 0
push 0xa
call dword [sym.imp.PAL.dll_PalDebugPrintf]
push 0x20
lea edx, [esp + 0x44]
push edx
push esi
call fcn.0041eac0
add esp, 0x1c
mov edi, 1
jmp 0x419a8c
call dword [sym.imp.PAL.dll_PalTaskGetGroundData]
cmp dword [eax + 0x38], ebp
je 0x419a8a
lea eax, [ebx + 0x7192c]
call fcn.0041c970
xor edi, edi
mov ax, word [esp + 0x7c]
cmp ax, 0xffff
je 0x419ae0
movzx eax, ax
imul eax, eax, 0x742c
lea esi, [eax + ebx + 0x358]
mov eax, dword [esi + 0x7428]
cmp eax, 0xffffffff
je 0x419ae0
mov edx, dword [esi + 0x24]
imul eax, eax, 0x128
mov ecx, dword [eax + esi + 0x34]
lea ebx, [eax + esi + 0x34]
push edi
push ecx
push edx
call dword [sym.imp.PAL.dll_PalButtonCtrl]
mov ecx, dword [ebx]
mov edx, dword [esi + 0x24]
lea eax, [edi + edi*2]
push eax
push ecx
push edx
call dword [sym.imp.PAL.dll_PalButtonSetPos]
add esp, 0x18
mov ecx, dword [esp + 0x70]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041eaa8
add esp, 0x64
ret