Function at 0x407bb0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [0x460ab0]
push edi
mov edi, dword [0x4600c4]
call fcn.004315a0
xor ebp, ebp
push 0x50
mov dword [edi + 0x18], ebp
call fcn.0043af3e
add esp, 4
cmp eax, ebp
je 0x407bfb
mov dword [eax], vtable.CDInput.0
mov dword [eax + 4], esi
mov dword [eax + 8], ebp
mov dword [eax + 0x4c], ebp
mov dword [eax + 0x44], ebp
mov dword [eax + 0x48], ebp
mov dword [eax + 0xc], ebp
mov dword [eax + 0x10], ebp
mov dword [eax + 0x14], ebp
jmp 0x407bfd
xor eax, eax
mov dword [edi + 4], eax
call fcn.004015b0
mov ecx, 0x25
mov eax, 1
mov edx, ecx
push 0x42c
mov byte [edi + 0x2a], 1
mov byte [edi + 0x2b], 1
mov word [edi + 0x26], ax
mov word [edi + 0x28], cx
mov word [edi + 0x24], dx
mov dword [edi + 0x20], 0xffffffff
call fcn.0043af3e
add esp, 4
cmp eax, ebp
je 0x407c46
mov esi, eax
call fcn.00404930
jmp 0x407c48
xor eax, eax
mov dword [edi + 0x14], eax
push eax
mov eax, str.MsgErrorMsg.pak
call fcn.00404e10
push 0x42c
call fcn.0043af3e
add esp, 4
cmp eax, ebp
je 0x407c70
mov esi, eax
call fcn.00404930
jmp 0x407c72
xor eax, eax
push 0x42c
mov dword [edi + 0x30], eax
call fcn.0043af3e
add esp, 4
cmp eax, ebp
je 0x407c8f
mov esi, eax
call fcn.00404930
jmp 0x407c91
xor eax, eax
push 0x42c
mov dword [edi + 8], eax
call fcn.0043af3e
add esp, 4
cmp eax, ebp
je 0x407cae
mov esi, eax
call fcn.00404930
jmp 0x407cb0
xor eax, eax
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0x30]
push eax
mov eax, str.Loadingloading.pak
call fcn.00404e10
mov ecx, dword [edi + 0x30]
mov edx, 0x26
push 0x42c
mov word [ecx + 0x408], dx
call fcn.0043af3e
add esp, 4
cmp eax, ebp
je 0x407cec
mov esi, eax
call fcn.00404930
mov esi, eax
jmp 0x407cee
xor esi, esi
push ebp
push 0x80
push 3
push ebp
push ebp
push 0x80000000
push str.LoadingLogoMov.pak
mov dword [edi + 0x38], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebp
lea ecx, [esp + 0x18]
push ecx
push 4
lea edx, [esi + 0x3e0]
push edx
push eax
mov dword [esi + 0x3cc], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [esi + 0x424], ebp
mov esi, dword [edi + 0x38]
mov eax, esi
call fcn.00404cf0
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esi + 0x3cc], ebp
je 0x407d71
mov eax, dword [esi + 0x3ec]
cmp eax, ebp
je 0x407d5e
push eax
call fcn.0043a6b1
add esp, 4
mov dword [esi + 0x3ec], ebp
mov eax, dword [esi + 0x3cc]
push ebp
push ebp
push 4
push eax
mov dword [esi + 0x424], ebp
call ebx
push 0x42c
call fcn.0043af3e
add esp, 4
cmp eax, ebp
je 0x407d8d
mov esi, eax
call fcn.00404930
mov esi, eax
jmp 0x407d8f
xor esi, esi
mov eax, str.Loading_sakura.pak
mov dword [edi + 0x3c], esi
call fcn.00404da0
mov esi, dword [edi + 0x3c]
mov eax, esi
call fcn.00404cf0
cmp dword [esi + 0x3cc], ebp
je 0x407dda
mov eax, dword [esi + 0x3ec]
cmp eax, ebp
je 0x407dc7
push eax
call fcn.0043a6b1
add esp, 4
mov dword [esi + 0x3ec], ebp
mov ecx, dword [esi + 0x3cc]
push ebp
push ebp
push 4
push ecx
mov dword [esi + 0x424], ebp
call ebx
fldz
push 0x42c
fstp dword [edi + 0x1c]
call fcn.0043af3e
add esp, 4
cmp eax, ebp
je 0x407df9
mov esi, eax
call fcn.00404930
jmp 0x407dfb
xor eax, eax
mov dword [edi + 0x10], eax
push eax
mov eax, str.MsggameMsg.pak
call fcn.00404e10
mov edx, dword [edi + 0x10]
mov eax, 1
mov word [edx + 0x40c], ax
mov ecx, dword [edi + 0x10]
mov edx, 5
mov word [ecx + 0x40e], dx
mov eax, dword [edi + 0x14]
xor ecx, ecx
mov word [eax + 0x40c], cx
call fcn.0043bcb0
cdq
mov ecx, 0x1e
idiv ecx
push 0x3d4
add edx, ecx
mov eax, edx
shl eax, 4
sub eax, edx
add eax, eax
add eax, eax
mov dword [edi + 0x2c], eax
call fcn.0043af3e
add esp, 4
cmp eax, ebp
je 0x407e94
call fcn.00401c40
xor ecx, ecx
mov dword [eax], vtable.cGameSound.0
mov dword [eax + 0x3b8], ecx
mov dword [eax + 0x3bc], ecx
mov dword [eax + 0x3c0], ecx
mov dword [eax + 0x3c4], ecx
mov dword [eax + 0x3c8], ecx
mov dword [eax + 0x3cc], ecx
jmp 0x407e96
xor eax, eax
push ebp
push eax
mov dword [0x460010], eax
call fcn.004364f0
mov ecx, dword [0x45e938]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x64
sub ecx, eax
sub ecx, 9
imul ecx, ecx, 0x190
cmp ecx, 0xfffff254
jg 0x407ed4
mov ecx, 0xffffd8f0
mov eax, dword [0x460010]
lea esi, [eax + 0x330]
add eax, 0x3b8
mov dword [esi], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 4
mov ecx, dword [esp + 0x14]
mov edi, dword [ecx]
cmp edi, ebp
je 0x407f03
mov ebx, dword [esi]
call fcn.00401b10
sub dword [esp + 0x10], 1
jne 0x407ef2
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret