Function at 0x428530
Capabilities:
Print debug messages

Disassembly:
push ecx
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [0x52b650], esi
mov dword [0x52b64c], esi
mov dword [0x52b65c], esi
mov dword [0x52b648], esi
mov dword [0x54a444], esi
mov dword [0x54a448], esi
mov dword [0x54a44c], esi
call fcn.00410620
call fcn.00426580
call fcn.00426520
call fcn.00411a90
call fcn.00447e00
call fcn.0044d420
call fcn.0040fa10
call fcn.0041a330
call fcn.004105e0
cmp dword [0x54a418], esi
jne 0x428778
xor eax, eax
mov ecx, 0x2716
mov edi, 0x5219f0
push 0x4ad274
rep stosd dword es:[edi], eax
push str.savedatamajiro_system.mss
xor ebp, ebp
xor ebx, ebx
mov edi, 2
call fcn.00430810
add esp, 4
push eax
call fcn.00467119
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 0x10], esi
je 0x42871b
push esi
push 1
push 0x9c58
push 0x5219f0
call fcn.004681cd
add esp, 0x10
cmp eax, 1
jne 0x4286f4
mov edi, eax
mov esi, str.MajiroSysV1.100
mov eax, 0x5219f0
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x428628
test cl, cl
je 0x428624
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x428628
add eax, 2
add esi, 2
test cl, cl
jne 0x428604
xor eax, eax
jmp 0x42862d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4286f0
mov eax, dword [0x521a00]
mov dword [0x52b654], eax
add eax, 0x400
mov dword [0x54a414], eax
add eax, 0x20
shl eax, 4
push eax
call fcn.004564a0
mov dword [0x54a418], eax
mov eax, dword [0x521a00]
add eax, 0x20
shl eax, 4
push eax
call fcn.004564a0
mov ecx, dword [esp + 0x18]
mov edx, dword [0x521a00]
push ecx
push 1
shl edx, 4
mov ebp, eax
push edx
push ebp
call fcn.004681cd
add esp, 0x18
cmp eax, 1
jne 0x4286f0
mov eax, dword [0x521a04]
test eax, eax
je 0x4286bc
add eax, 0x20
push eax
call fcn.004564a0
mov ecx, dword [0x521a04]
mov ebx, eax
mov eax, dword [esp + 0x14]
push eax
push 1
push ecx
push ebx
call fcn.004681cd
add esp, 0x14
cmp eax, 1
jne 0x4286f0
mov eax, dword [0x521a00]
xor edi, edi
test eax, eax
jle 0x4286ee
xor esi, esi
mov eax, dword [0x54a418]
push 0
push ebx
lea edx, [esi + ebp]
push edx
lea ecx, [esi + eax]
push ecx
call fcn.00428960
mov eax, dword [0x521a00]
add esp, 0x10
inc edi
add esi, 0x10
cmp edi, eax
jl 0x4286c9
xor edi, edi
mov esi, dword [esp + 0x10]
push esi
call fcn.00466f32
add esp, 4
test ebx, ebx
je 0x42870a
push ebx
call fcn.0046728e
add esp, 4
test ebp, ebp
je 0x428717
push ebp
call fcn.0046728e
add esp, 4
test edi, edi
je 0x428776
mov ebx, 0x400
push 0x4000
mov dword [0x52b654], 0
mov dword [0x54a414], ebx
call fcn.004564a0
add esp, 4
cmp edi, 2
mov dword [0x54a418], eax
je 0x428752
push 0x4af624
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor esi, esi
cmp dword [0x54a41c], esi
jne 0x42877f
push 0x4000
mov dword [0x52b658], ebx
call fcn.004564a0
add esp, 4
mov dword [0x54a41c], eax
jmp 0x4287ab
xor esi, esi
mov ebx, 0x400
jmp 0x428754
mov eax, dword [0x54a410]
xor edi, edi
cmp eax, esi
jle 0x4287ab
mov edx, dword [0x54a41c]
lea eax, [esi + edx]
push eax
call fcn.004276a0
mov eax, dword [0x54a410]
add esp, 4
inc edi
add esi, 0x10
cmp edi, eax
jl 0x42878a
xor esi, esi
cmp dword [0x54a42c], esi
mov dword [0x54a410], esi
jne 0x428840
mov edx, dword [0x4af618]
xor eax, eax
mov ecx, 0x2958
mov edi, 0x5354b0
rep stosd dword es:[edi], eax
mov ecx, dword [str.MajiroSavV1.104]
mov eax, dword [0x4af61c]
mov dword [0x5354b0], ecx
mov ecx, dword [0x4af620]
push 0x4000
mov dword [0x5354b4], edx
mov dword [0x5354b8], eax
mov dword [0x5354bc], ecx
mov dword [0x5219e8], ebx
call fcn.004564a0
push 0x4000
mov dword [0x54a42c], eax
mov dword [0x52b664], ebx
call fcn.004564a0
push 0x4000
mov dword [0x54a430], eax
mov dword [0x52b660], ebx
call fcn.004564a0
add esp, 0xc
mov dword [0x54a434], eax
jmp 0x4288ef
mov eax, dword [0x5356cc]
xor edi, edi
cmp eax, esi
jle 0x42886c
mov edx, dword [0x54a42c]
lea eax, [esi + edx]
push eax
call fcn.004276a0
mov eax, dword [0x5356cc]
add esp, 4
inc edi
add esi, 0x10
cmp edi, eax
jl 0x42884b
xor esi, esi
mov eax, dword [0x5356d0]
xor edi, edi
cmp eax, esi
jle 0x428898
mov ecx, dword [0x54a430]
lea edx, [esi + ecx]
push edx
call fcn.004276a0
mov eax, dword [0x5356d0]
add esp, 4
inc edi
add esi, 0x10
cmp edi, eax
jl 0x428877
xor esi, esi
mov eax, dword [0x5356d4]
xor edi, edi
cmp eax, esi
jle 0x4288c3
mov eax, dword [0x54a434]
lea ecx, [esi + eax]
push ecx
call fcn.004276a0
mov eax, dword [0x5356d4]
add esp, 4
inc edi
add esi, 0x10
cmp edi, eax
jl 0x4288a3
xor esi, esi
xor eax, eax
mov ecx, 0x2710
mov edi, 0x535dd0
mov dword [0x5356cc], esi
mov dword [0x5356d0], esi
mov dword [0x5356d4], esi
rep stosd dword es:[edi], eax
mov ecx, 0x2710
mov edi, 0x52b668
rep stosd dword es:[edi], eax
mov eax, dword [0x54a420]
cmp eax, esi
je 0x42890a
mov esi, dword [eax + 0x1c]
push eax
call fcn.00428060
add esp, 4
test esi, esi
mov eax, esi
jne 0x4288f8
push esi
call fcn.00428110
mov eax, dword [0x54a420]
add esp, 4
cmp eax, esi
je 0x428928
cmp dword [eax + 4], esi
je 0x42892a
mov eax, dword [eax + 0x1c]
cmp eax, esi
jne 0x42891c
xor eax, eax
mov dword [0x5bd668], eax
mov ecx, dword [eax]
lea edx, [ecx + ecx*4]
shl edx, 4
lea eax, [edx + eax + 0x28]
mov dword [0x5bd664], eax
call fcn.0042f780
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret