Function at 0x451450
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.004573d0
test eax, eax
jne 0x4516a8
movdqu xmm0, xmmword [str.MajiroSysV1.100]
push esi
mov esi, dword [0x56c5e0]
mov dword [0x543bd0], esi
movdqu xmmword [0x543bc0], xmm0
test esi, esi
je 0x4516a7
lea eax, [esi + 2]
shl eax, 4
push edi
push eax
call fcn.00497cab
mov edi, eax
add esp, 4
mov dword [ebp - 4], edi
test edi, edi
jne 0x4514ba
push 0x10
push str.malloc
push 0x4c9a90
push eax
call dword [0x4b4414]
mov esi, dword [0x543bd0]
xor edx, edx
test esi, esi
jle 0x4514f2
mov ecx, dword [0x5379f8]
add ecx, 0xc
lea esp, [esp]
mov eax, dword [ecx - 8]
add eax, 0xfffffffd
cmp eax, 2
ja 0x4514ea
mov eax, dword [ecx]
mov dword [eax + 4], 0
mov esi, dword [0x543bd0]
inc edx
add ecx, 0x10
cmp edx, esi
jl 0x4514d0
mov dword [ebp - 8], 0
test esi, esi
jle 0x45152b
xor edi, edi
nop
mov edx, dword [0x5379f8]
mov ecx, dword [ebp - 4]
lea edx, [edi + edx]
lea ecx, [edi + ecx]
call fcn.0044ff30
mov eax, dword [ebp - 8]
lea edi, [edi + 0x10]
mov esi, dword [0x543bd0]
inc eax
mov dword [ebp - 8], eax
cmp eax, esi
jl 0x451500
mov edi, dword [ebp - 4]
mov dword [ebp - 8], 0
test esi, esi
jle 0x451553
xor edx, edx
mov ecx, edi
call fcn.00450f70
mov eax, dword [ebp - 8]
add edi, 0x10
mov esi, dword [0x543bd0]
inc eax
mov dword [ebp - 8], eax
cmp eax, esi
jl 0x451536
xor ecx, ecx
xor edi, edi
mov dword [ebp - 8], ecx
test esi, esi
jle 0x45158a
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
or edx, 0xffffffff
mov ecx, eax
call fcn.00450f70
mov ecx, dword [ebp - 8]
inc edi
mov esi, dword [0x543bd0]
add ecx, eax
mov eax, dword [ebp - 0xc]
add eax, 0x10
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
cmp edi, esi
jl 0x451564
lea eax, [ecx + 0x20]
mov dword [0x543bd4], ecx
push eax
call fcn.00497cab
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
jne 0x4515bf
push 0x10
push str.malloc
push 0x4c9a90
push eax
call dword [0x4b4414]
mov esi, dword [0x543bd0]
mov eax, dword [ebp - 8]
xor edi, edi
mov dword [ebp - 0xc], edi
test esi, esi
jle 0x4515f5
mov esi, dword [ebp - 4]
jmp 0x4515d0
push edi
lea edx, [eax + edi]
mov ecx, esi
call fcn.00451030
add edi, eax
add esp, 4
mov eax, dword [ebp - 0xc]
add esi, 0x10
inc eax
cmp eax, dword [0x543bd0]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
jl 0x4515d0
push 0
mov ecx, str.save_chs
call fcn.0045e940
push eax
call dword [0x4b41ec]
push 0x4c3dd8
mov ecx, str.save_chsmajiro_system.mss
call fcn.0045e940
push eax
call fcn.00494396
mov esi, eax
add esp, 8
mov dword [ebp - 0xc], esi
test esi, esi
je 0x451686
push esi
push 1
push 0x9c58
push 0x543bc0
call fcn.0049528d
mov eax, dword [0x543bd0]
push esi
mov esi, dword [ebp - 4]
push 1
shl eax, 4
push eax
push esi
call fcn.0049528d
push dword [ebp - 0xc]
push 1
push edi
push dword [ebp - 8]
call fcn.0049528d
push dword [ebp - 0xc]
call fcn.00494b54
xor edi, edi
add esp, 0x34
cmp dword [0x543bd0], edi
jle 0x451689
mov ecx, esi
call fcn.0044f610
inc edi
add esi, 0x10
cmp edi, dword [0x543bd0]
jl 0x451673
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 8]
pop edi
test eax, eax
je 0x45169a
push eax
call fcn.00494034
add esp, 4
test esi, esi
je 0x4516a7
push esi
call fcn.00494034
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret