Function at 0x424280
Capabilities:
Access peb ldr_data
Check os version
Get number of processors
Get process heap flags
Get process heap force flags
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x84d336
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x8943b8]
xor eax, esp
mov dword [esp + 0x170], eax
push ebx
push esi
push edi
mov eax, dword [0x8943b8]
xor eax, esp
push eax
lea eax, [esp + 0x188]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esi], vtable.CSceneBase.0
mov eax, dword [0x8a0008]
mov dword [esp + 0x50], esi
mov dword [esi + 4], eax
lea edi, [esi + 0x18]
xor ebx, ebx
mov ecx, edi
mov dword [esp + 0x190], ebx
mov dword [esi], vtable.CSelect.0
call fcn.0040a0f0
mov dword [edi], vtable.CInputManagerCluster.0
mov dword [edi + 0x64], ebx
mov dword [edi + 0x68], ebx
mov dword [edi + 0x6c], ebx
mov dword [edi + 0x70], ebx
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xb4], ebx
mov dword [esi + 0xb8], ebx
mov dword [esi + 0xbc], ebx
mov dword [esi + 0xc4], ebx
mov dword [esi + 0xc8], ebx
mov dword [esi + 0xcc], ebx
mov dword [esi + 0xd4], ebx
mov dword [esi + 0xd8], ebx
mov dword [esi + 0xdc], ebx
mov dword [esi + 0xe4], ebx
mov dword [esi + 0xe8], ebx
mov dword [esi + 0xec], ebx
push fcn.00401e00
push 0x404190
push 2
push 0x1c
lea ecx, [esi + 0xf0]
push ecx
mov byte [esp + 0x1a4], 6
call fcn.0082008b
lea ecx, [esi + 0x1a0]
mov byte [esp + 0x190], 7
call fcn.00422b20
push 0x40af50
push 0x40b0c0
push 2
push 0x94
lea edx, [esi + 0x1dc]
push edx
mov byte [esp + 0x1a4], 8
mov dword [esi + 0x1d4], ebx
mov dword [esi + 0x1d8], ebx
call fcn.0082008b
mov dword [esi + 0x304], ebx
mov dword [esi + 0x30c], ebx
mov dword [esi + method.IColor.virtual_0], vtable.CSprite.0
mov dword [esi + 0x39c], ebx
mov dword [esi + 0x3a4], ebx
mov dword [esi + method.IColor.virtual_0], vtable.CTile.0
xor eax, eax
mov dword [esi + 0x444], eax
mov dword [esi + 0x448], eax
mov dword [esi + 0x44c], eax
mov dword [esi + 0x450], eax
mov dword [esi + 0x454], eax
mov dword [esi + 0x458], eax
mov dword [esi + 0x45c], eax
mov dword [esi + 0x460], eax
mov byte [esp + 0x190], 0xb
mov dword [esi + 0x464], eax
mov dword [esi + 0x468], eax
mov dword [esi + 0x46c], eax
mov dword [esi + 0x470], eax
mov dword [esi + 0x474], eax
mov dword [esi + 0x478], eax
mov dword [esi + 0x47c], eax
mov dword [esi + 0x480], eax
mov dword [esi + 0x484], eax
push 0x40af50
mov dword [esi + 0x488], eax
push 0x40b0c0
mov dword [esi + 0x48c], eax
mov dword [esi + 0x490], eax
push 0x15
mov dword [esi + 0x494], eax
push 0x94
lea eax, [esi + 0x498]
push eax
call fcn.0082008b
xor eax, eax
mov dword [esi + 0x10bc], eax
mov dword [esi + 0x10c0], eax
mov dword [esi + 0x10c4], eax
mov dword [esi + 0x10c8], eax
mov dword [esi + 0x10cc], eax
mov dword [esi + 0x10d0], eax
mov dword [esi + 0x10d4], eax
mov dword [esi + 0x10d8], eax
mov dword [esi + 0x10dc], eax
mov dword [esi + 0x10e0], eax
mov dword [esi + 0x10e4], eax
mov dword [esi + 0x10e8], eax
mov dword [esi + 0x10ec], eax
mov dword [esi + 0x10f0], eax
mov dword [esi + 0x10f4], eax
mov dword [esi + 0x10f8], eax
push 0x40af50
mov dword [esi + 0x10fc], eax
push 0x40b0c0
mov dword [esi + 0x1100], eax
mov dword [esi + 0x1104], eax
push 0x14
mov dword [esi + 0x1108], eax
lea eax, [esi + 0x110c]
push 0x94
push eax
mov byte [esp + 0x1a4], 0xc
call fcn.0082008b
push 0x40af50
push 0x40b0c0
push 2
push 0x94
lea ecx, [esi + 0x1ca4]
push ecx
mov byte [esp + 0x1a4], 0xd
mov dword [esi + 0x1c9c], ebx
mov dword [esi + 0x1ca0], ebx
call fcn.0082008b
push 0x40af50
push 0x40b0c0
push 2
push 0x94
lea edx, [esi + 0x1e60]
push edx
mov byte [esp + 0x1a4], 0xe
mov dword [esi + 0x1e58], ebx
mov dword [esi + 0x1e5c], ebx
call fcn.0082008b
push 0x40af50
push 0x40b0c0
push 2
lea eax, [esi + 0x1fa8]
push 0x94
mov byte [esp + 0x1a0], 0xf
mov dword [esi + 0x1fa0], ebx
mov dword [esi + 0x1fa4], ebx
push eax
call fcn.0082008b
push 0x41f8b0
push 0x41f8c0
push 2
push 0xe8
lea eax, [esi + 0x20e8]
mov dword [esi + 0x20d0], ebx
push eax
mov byte [esp + 0x1a4], 0x10
mov dword [esi + 0x20e0], ebx
mov dword [esi + 0x20e4], ebx
call fcn.0082008b
push fcn.004241b0
push 0x422cf0
push 2
push 0x94
lea ecx, [esi + 0x22d0]
push ecx
mov byte [esp + 0x1a4], 0x11
call fcn.0082008b
lea ecx, [esi + 0x23f8]
mov byte [esp + 0x190], 0x12
call fcn.00422b20
lea ecx, [esi + 0x2454]
mov byte [esp + 0x190], 0x13
call fcn.00422b20
xor eax, eax
lea edi, [esi + 0x2488]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], eax
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], eax
mov dword [edi + 0x48], eax
mov dword [edi + 0x4c], eax
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], eax
mov dword [edi + 0x58], eax
mov dword [edi + 0x5c], eax
mov dword [edi + 0x60], eax
mov dword [edi + 0x64], eax
push 0x40af50
mov dword [edi + 0x68], eax
push 0x40b0c0
mov dword [edi + 0x6c], eax
mov dword [edi + 0x70], eax
push 0x1e
mov dword [edi + 0x74], eax
lea eax, [esi + 0x2500]
push 0x94
push eax
mov byte [esp + 0x1a4], 0x14
call fcn.0082008b
xor eax, eax
mov dword [esi + 0x3658], eax
mov dword [esi + 0x365c], eax
mov dword [esi + 0x3660], eax
mov dword [esi + 0x3664], eax
mov dword [esi + 0x3668], eax
mov dword [esi + 0x366c], eax
mov byte [esp + 0x190], 0x15
mov dword [esi + 0x3670], eax
mov dword [esi + 0x3674], eax
mov dword [esi + 0x3678], eax
mov dword [esi + 0x367c], eax
mov dword [esi + 0x3680], eax
mov dword [esi + 0x3684], eax
mov dword [esi + 0x3688], eax
mov dword [esi + 0x368c], eax
mov dword [esi + 0x3690], eax
mov dword [esi + 0x3694], eax
mov dword [esi + 0x3698], eax
mov dword [esi + 0x369c], eax
mov dword [esi + 0x36a0], eax
mov dword [esi + 0x36a4], eax
mov dword [esi + 0x36a8], eax
mov dword [esi + 0x36ac], eax
mov dword [esi + 0x36b0], eax
mov dword [esi + 0x36b4], eax
mov dword [esi + 0x36b8], eax
mov dword [esi + 0x36bc], eax
mov dword [esi + 0x36c0], eax
mov dword [esi + 0x36c4], eax
mov dword [esi + 0x36c8], eax
mov dword [esi + 0x36cc], eax
mov dword [esi + 0x36d0], eax
mov dword [esi + 0x36d4], eax
mov dword [esi + 0x36d8], eax
mov dword [esi + 0x36dc], eax
mov dword [esi + 0x36e0], eax
push 0x40af50
mov dword [esi + 0x36e4], eax
mov dword [esi + 0x36e8], eax
push 0x40b0c0
mov dword [esi + 0x36ec], eax
push 0x15
mov dword [esi + 0x36f0], eax
mov dword [esi + 0x36f4], eax
push 0x94
lea edx, [esi + 0x3700]
mov dword [esi + 0x36f8], eax
push edx
mov dword [esi + 0x36fc], eax
call fcn.0082008b
push 0x40af50
push 0x40b0c0
push 0x15
lea eax, [esi + 0x4324]
push 0x94
push eax
mov byte [esp + 0x1a4], 0x16
call fcn.0082008b
push fcn.00443100
push fcn.004432b0
push 2
lea eax, [esi + 0x4f70]
push 0xa8
push eax
mov byte [esp + 0x1a4], 0x17
call fcn.0082008b
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x34]
push ecx
push str.data_scene_select_bg.bmp
lea edx, [esp + 0x24]
push edx
mov ecx, 0x89ff08
mov byte [esp + 0x1a0], 0x18
call fcn.00405030
mov ecx, dword [esp + 0x34]
mov eax, dword [eax]
mov edx, dword [esi + 0x308]
push ecx
mov ecx, dword [esp + 0x34]
push ecx
push ebx
push ebx
mov dword [esi + 0x304], eax
push eax
mov edx, dword [edx + 0x14]
lea ecx, [esi + 0x308]
call edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x34]
push ecx
push str.data_scene_select_character_kidoairaku.bmp
lea edx, [esp + 0x24]
push edx
mov ecx, 0x89ff08
call fcn.00405030
mov eax, dword [eax]
push 0x20
push 0x20
push ebx
push ebx
push eax
lea ecx, [esi + 0x3a0]
mov dword [esi + 0x39c], eax
call fcn.00409cb0
mov eax, dword [esi + 0x1a0]
mov edx, dword [eax + 0x10]
lea ecx, [esi + 0x1a0]
push str.data_scene_select_character_character.dat
call edx
mov eax, 0x15
mov dword [esp + 0x20], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x28], 0x8821c8
mov dword [esp + 0x4c], 0x882248
mov dword [esp + 0x40], 0x8822a0
mov dword [esp + 0x48], 0x8822f8
call fcn.0043e0c0
cmp eax, ebx
mov dword [esp + 0x3c], eax
je 0x42492b
lea ecx, [eax + 0x284]
lea edx, [eax + 0x318]
mov dword [esi + 0x20d4], ecx
mov dword [esi + 0x20d8], edx
cmp dword [eax + 0x3b8], ebx
jmp 0x424954
push ebx
call fcn.0043e010
add eax, 4
push 1
mov dword [esi + 0x20d4], eax
call fcn.0043e010
add eax, 4
add esp, 8
mov dword [esi + 0x20d8], eax
call fcn.0043dc10
test al, al
je 0x424983
mov eax, 0xa
mov dword [esp + 0x48], 0x88239c
mov dword [esp + 0x40], 0x882374
mov dword [esp + 0x4c], str.c_n_v_r
mov dword [esp + 0x28], 0x88221c
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], eax
lea eax, [esi + 0x1e1c]
push 0x1f4
push eax
lea ecx, [esi + 0x1a0]
call fcn.0040cec0
mov eax, dword [esi + 0x1e1c]
lea ecx, [esi + 0x1e20]
mov byte [eax + 0x14], 1
mov dword [esp + 0x14], 0x384
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], 2
mov edi, edi
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
add edx, 0xfffffce0
push edx
add eax, 8
push eax
lea ecx, [esi + 0x1a0]
call fcn.0040cec0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
push ecx
push edx
lea ecx, [esi + 0x1a0]
call fcn.0040cec0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
add eax, 0xffffff9c
add ecx, 0x30
push eax
push ecx
lea ecx, [esi + 0x1a0]
call fcn.0040cec0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
add edx, 0xffffff38
push edx
add eax, 0x10
push eax
lea ecx, [esi + 0x1a0]
call fcn.0040cec0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
add ecx, 0xffffff4c
push ecx
add edx, 0x18
push edx
lea ecx, [esi + 0x1a0]
call fcn.0040cec0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
add eax, 0xfffffda8
add ecx, 0x20
push eax
push ecx
lea ecx, [esi + 0x1a0]
call fcn.0044e2b0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
add edx, 0xfffffed4
push edx
add eax, 0x170
push eax
lea ecx, [esi + 0x1a0]
call fcn.0040cec0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
add ecx, 0xfffffe0c
push ecx
add eax, 0x178
push eax
lea ecx, [esi + 0x1a0]
call fcn.0044e2b0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
add edx, 0x64
add eax, 0xffffffd4
push edx
push eax
lea ecx, [esi + 0x1a0]
call fcn.0044e2b0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
add ecx, 0xffffff42
push ecx
add eax, 0xffffffdc
push eax
lea ecx, [esi + 0x1a0]
call fcn.0044e2b0
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
add eax, 0xffffffe4
add edx, 0xfffffdbc
push edx
push eax
lea ecx, [esi + 0x1a0]
call fcn.0044e2b0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
add ecx, 0xfffffdb2
push ecx
add eax, 0xffffffec
push eax
lea ecx, [esi + 0x1a0]
call fcn.0044e2b0
mov eax, dword [esp + 0x24]
mov edx, dword [eax - 0x2c]
mov byte [edx + 0x14], 1
mov ecx, dword [eax - 0x24]
mov byte [ecx + 0x14], 1
mov edx, dword [eax - 0x1c]
mov byte [edx + 0x14], 1
mov ecx, dword [eax - 0x14]
add eax, 0x178
mov byte [ecx + 0x14], 1
mov edx, dword [eax]
mov eax, dword [esp + 0x24]
mov byte [edx + 0x14], 1
mov dword [eax + 0x4a8], ebx
add eax, 4
mov dword [esp + 0x24], eax
mov eax, 1
add dword [esp + 0x14], eax
sub dword [esp + 0x18], eax
jne 0x4249c0
lea eax, [esi + 0x1e18]
push 0xb
push eax
lea ecx, [esi + 0x1a0]
call fcn.0044e2b0
cmp dword [esp + 0x38], ebx
mov eax, dword [esi + 0x1e18]
mov byte [eax + 0x14], 1
mov dword [esp + 0x14], ebx
jle 0x424e0e
cmp dword [esp + 0x14], ebx
jle 0x424bc3
cmp dword [esp + 0x3c], ebx
jne 0x424bc3
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x14]
mov eax, dword [ecx + edx*4]
push eax
call fcn.0043df50
mov ecx, eax
call fcn.0042fea0
test al, al
je 0x424df9
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x14]
lea eax, [ecx + edx*4]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0xb4]
cmp eax, ebx
jne 0x424be0
xor edx, edx
jmp 0x424beb
mov edx, dword [esi + 0xb8]
sub edx, eax
sar edx, 2
cmp eax, ebx
je 0x424c17
mov ecx, dword [esi + 0xbc]
sub ecx, eax
sar ecx, 2
cmp edx, ecx
jae 0x424c17
mov eax, dword [esi + 0xb8]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov dword [eax], edx
add eax, 4
mov dword [esi + 0xb8], eax
jmp 0x424c45
mov ecx, dword [esi + 0xb8]
cmp eax, ecx
mov dword [esp + 0x24], ecx
jbe 0x424c2a
call fcn.0081ff70
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
push eax
push ecx
lea ecx, [esi + 0xb0]
push ecx
lea edx, [esp + 0x78]
push edx
call fcn.0040e1b0
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x14]
lea edx, [eax + ecx*4]
mov eax, dword [esi + 0xc4]
cmp eax, ebx
mov dword [esp + 0x18], edx
jne 0x424c62
xor edx, edx
jmp 0x424c6d
mov edx, dword [esi + 0xc8]
sub edx, eax
sar edx, 2
cmp eax, ebx
je 0x424c99
mov ecx, dword [esi + 0xcc]
sub ecx, eax
sar ecx, 2
cmp edx, ecx
jae 0x424c99
mov eax, dword [esi + 0xc8]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov dword [eax], edx
add eax, 4
mov dword [esi + 0xc8], eax
jmp 0x424cc7
mov ecx, dword [esi + 0xc8]
cmp eax, ecx
mov dword [esp + 0x24], ecx
jbe 0x424cac
call fcn.0081ff70
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
push eax
push ecx
lea ecx, [esi + 0xc0]
push ecx
lea edx, [esp + 0x70]
push edx
call fcn.0040e1b0
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x14]
cmp dword [eax + ecx*4], 0x22
lea eax, [eax + ecx*4]
mov dword [esp + 0x24], eax
jne 0x424d15
cmp dword [esp + 0x3c], ebx
jne 0x424d15
call fcn.0043df50
cmp dword [eax + 4], ebx
lea ecx, [esi + 0xe0]
je 0x424d01
mov edx, dword [esp + 0x24]
push edx
call fcn.0040dfc0
jmp 0x424d88
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0xffffffff
call fcn.0040dfc0
jmp 0x424d88
mov edx, dword [esi + 0xe4]
cmp edx, ebx
jne 0x424d23
xor ecx, ecx
jmp 0x424d2e
mov ecx, dword [esi + 0xe8]
sub ecx, edx
sar ecx, 2
cmp edx, ebx
je 0x424d5a
mov eax, dword [esi + 0xec]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x424d5a
mov eax, dword [esi + 0xe8]
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
mov dword [eax], edx
add eax, 4
mov dword [esi + 0xe8], eax
jmp 0x424d88
mov eax, dword [esi + 0xe8]
cmp edx, eax
mov dword [esp + 0x18], eax
jbe 0x424d6d
call fcn.0081ff70
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
push eax
push ecx
lea ecx, [esi + 0xe0]
push ecx
lea edx, [esp + 0x68]
push edx
call fcn.0040e1b0
mov edx, dword [esi + 0xd4]
cmp edx, ebx
jne 0x424d96
xor ecx, ecx
jmp 0x424da1
mov ecx, dword [esi + 0xd8]
sub ecx, edx
sar ecx, 2
cmp edx, ebx
je 0x424dcb
mov eax, dword [esi + 0xdc]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x424dcb
mov eax, dword [esi + 0xd8]
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
add eax, 4
mov dword [esi + 0xd8], eax
jmp 0x424df9
mov eax, dword [esi + 0xd8]
cmp edx, eax
mov dword [esp + 0x18], eax
jbe 0x424dde
call fcn.0081ff70
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
push eax
lea ecx, [esi + 0xd0]
push ecx
lea edx, [esp + 0x60]
push edx
call fcn.0040e1b0
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, dword [esp + 0x38]
mov dword [esp + 0x14], eax
jl 0x424b97
xor ecx, ecx
mov edx, dword [esi + 0xe4]
cmp edx, ebx
mov dword [esp + 0x14], ecx
je 0x424fa5
mov eax, dword [esi + 0xe8]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x424fa5
cmp edx, ebx
je 0x424e48
mov eax, dword [esi + 0xe8]
sub eax, edx
sar eax, 2
cmp ecx, eax
jb 0x424e51
call fcn.0081ff70
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0xe4]
cmp dword [eax + ecx*4], ebx
jl 0x424f9d
mov edx, dword [esi + 0xc4]
cmp edx, ebx
jne 0x424e70
mov dword [esp + 0x18], ebx
jmp 0x424e7f
mov eax, dword [esi + 0xc8]
sub eax, edx
sar eax, 2
mov dword [esp + 0x18], eax
cmp edx, ebx
je 0x424eae
mov eax, dword [esi + 0xcc]
sub eax, edx
sar eax, 2
cmp dword [esp + 0x18], eax
jae 0x424eae
mov eax, dword [esi + 0xc8]
mov edx, dword [esp + 0x48]
mov edx, dword [edx + ecx*4]
mov dword [eax], edx
add eax, 4
mov dword [esi + 0xc8], eax
jmp 0x424eeb
mov eax, dword [esi + 0xc8]
cmp dword [esi + 0xc4], eax
mov dword [esp + 0x18], eax
jbe 0x424ec5
call fcn.0081ff70
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x14]
lea edx, [eax + ecx*4]
mov eax, dword [esp + 0x18]
push edx
push eax
lea ecx, [esi + 0xc0]
push ecx
lea edx, [esp + 0x60]
push edx
call fcn.0040e1b0
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0xc4]
cmp edx, ebx
je 0x424f04
mov eax, dword [esi + 0xc8]
sub eax, edx
sar eax, 2
cmp ecx, eax
jb 0x424f0d
call fcn.0081ff70
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0xc4]
mov eax, dword [eax + ecx*4]
add eax, dword [esp + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0xd4]
cmp eax, ebx
jne 0x424f2c
xor edx, edx
jmp 0x424f37
mov edx, dword [esi + 0xd8]
sub edx, eax
sar edx, 2
cmp eax, ebx
je 0x424f6b
mov ecx, dword [esi + 0xdc]
sub ecx, eax
sar ecx, 2
cmp edx, ecx
jae 0x424f6b
mov eax, dword [esi + 0xd8]
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
add eax, 4
mov dword [esi + 0xd8], eax
add ecx, 1
jmp 0x424e10
mov ecx, dword [esi + 0xd8]
cmp eax, ecx
mov dword [esp + 0x40], ecx
jbe 0x424f7e
call fcn.0081ff70
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x18]
push edx
push eax
lea ecx, [esi + 0xd0]
push ecx
lea edx, [esp + 0x68]
push edx
call fcn.0040e1b0
mov ecx, dword [esp + 0x14]
add ecx, 1
jmp 0x424e10
mov ecx, dword [esi + 0xb4]
cmp ecx, ebx
jne 0x424fb3
xor eax, eax
jmp 0x424fbe
mov eax, dword [esi + 0xb8]
sub eax, ecx
sar eax, 2
mov dword [esi + 0xa8], eax
mov ecx, dword [esi + 0xc4]
cmp ecx, ebx
jne 0x424fd2
xor eax, eax
jmp 0x424fdd
mov eax, dword [esi + 0xc8]
sub eax, ecx
sar eax, 2
mov dword [esi + 0xac], eax
xor eax, eax
cmp dword [esp + 0x20], ebx
mov dword [esp + 0x18], eax
jle 0x4250b5
cmp dword [esp + 0x3c], ebx
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x38], eax
jne 0x42501c
cmp eax, 0x14
je 0x42501c
call fcn.0043df50
mov edx, dword [esp + 0x38]
cmp byte [eax + edx + 0x30], bl
je 0x4250a0
lea eax, [esp + 0x38]
push eax
lea ecx, [esi + 0x98]
call fcn.00422990
mov ecx, dword [esp + 0x38]
push ecx
lea edx, [esp + 0x78]
push str.data_scene_select_character_01b_name_name__02d.bmp
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x4c]
push eax
mov ecx, 0x89ff08
call fcn.00405030
mov ecx, dword [eax]
mov eax, dword [esp + 0x38]
mov dword [esi + eax*4 + 0x444], ecx
imul eax, eax, 0x94
mov edx, dword [eax + esi + 0x498]
mov edx, dword [edx + 0x14]
lea ecx, [eax + esi + 0x498]
mov eax, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x40]
mov eax, dword [esi + eax*4 + 0x444]
push ebx
push ebx
push eax
call edx
mov eax, dword [esp + 0x18]
add eax, 1
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x18], eax
jl 0x424ff3
mov ecx, dword [esi + 0x9c]
cmp ecx, ebx
jne 0x4250c3
xor eax, eax
jmp 0x4250ce
mov eax, dword [esi + 0xa0]
sub eax, ecx
sar eax, 2
add eax, 0xffffffff
cmp eax, ebx
mov dword [esi + 0x94], eax
mov dword [esp + 0x20], ebx
jle 0x4251a7
lea eax, [esi + 0x110c]
mov dword [esp + 0x3c], eax
lea eax, [esi + 0x10bc]
mov dword [esp + 0x28], eax
jmp 0x425100
mov ecx, dword [esi + 0x9c]
cmp ecx, ebx
je 0x42511b
mov eax, dword [esi + 0xa0]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x20], eax
jb 0x425120
call fcn.0081ff70
mov eax, dword [esi + 0x9c]
mov ecx, dword [esp + 0x20]
mov edx, dword [eax + ecx*4]
push edx
lea eax, [esp + 0x78]
push str.data_scene_select_character_05a_selcha_selcha__02d.bmp
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, 0x89ff08
call fcn.00405030
mov eax, dword [eax]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x3c]
mov dword [edx], eax
mov edx, dword [ecx]
mov ecx, dword [esp + 0x34]
mov edx, dword [edx + 0x14]
push ecx
mov ecx, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x44]
push ebx
push ebx
push eax
call edx
mov eax, dword [esp + 0x20]
add dword [esp + 0x28], 4
add dword [esp + 0x3c], 0x94
add eax, 1
cmp eax, dword [esi + 0x94]
mov dword [esp + 0x20], eax
jl 0x425100
lea eax, [esi + 0x1f88]
mov dword [esp + 0x28], eax
lea eax, [esi + 0x1fa8]
xor ecx, ecx
mov dword [esp + 0x20], eax
lea ecx, [ecx]
add ecx, 1
push ecx
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x78]
push str.data_scene_select_character_06b_wheel_dp.bmp
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x4c]
push edx
mov ecx, 0x89ff08
call fcn.00405030
mov eax, dword [eax]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov dword [ecx + 0x18], eax
mov ecx, dword [esp + 0x34]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
shr ecx, 1
push ecx
mov ecx, dword [esp + 0x34]
shr ecx, 1
push ecx
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x30]
push ebx
push ebx
push eax
call edx
fldz
mov eax, dword [esp + 0x28]
fstp dword [eax]
mov ecx, dword [esp + 0x18]
add dword [esp + 0x20], 0x94
mov dword [eax - 0x1bc], ebx
mov dword [eax - 0x1b4], ebx
mov dword [eax - 0x1ac], ebx
mov dword [eax - 0x1a4], ebx
mov dword [eax - 0x19c], ebx
add eax, 4
cmp ecx, 2
mov dword [esp + 0x28], eax
jl 0x4251c0
mov edx, dword [esi + 0x10bc]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x34]
push ecx
push edx
mov ecx, 0x89ff08
call fcn.00405200
fild dword [esp + 0x30]
mov eax, dword [esp + 0x30]
test eax, eax
jge 0x42529b
fadd dword [0x871554]
fstp dword [esp + 0x18]
lea edx, [esp + 0x28]
fld dword [esp + 0x18]
push edx
fst dword [esi + 0x1e48]
lea eax, [esp + 0x44]
fimul dword [esi + 0x94]
lea ecx, [esi + 0x1c0]
push eax
mov dword [esp + 0x30], 0x190
mov dword [esp + 0x20], ecx
fsubr qword [0x8579a0]
fmul qword [0x8677a0]
fstp dword [esi + 0x1e4c]
call fcn.0040d010
cmp dword [esp + 0x40], ebx
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 4]
mov dword [esp + 0x2c], edx
je 0x4252fb
mov eax, dword [esp + 0x40]
cmp eax, ecx
je 0x425300
call fcn.0081ff70
mov ecx, dword [esp + 0x44]
cmp ecx, dword [esp + 0x2c]
jne 0x425312
mov dword [esi + 0x20dc], ebx
jmp 0x42533c
cmp dword [esp + 0x40], ebx
jne 0x42531d
call fcn.0081ff70
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
cmp edx, dword [eax + 4]
jne 0x42532f
call fcn.0081ff70
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx + 0x10]
mov dword [esi + 0x20dc], edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x34]
push ecx
push str.data_scene_select_character_back1.bmp
lea edx, [esp + 0x24]
push edx
mov ecx, 0x89ff08
call fcn.00405030
mov eax, dword [eax]
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x34]
push edx
mov dword [esi + 0x20e0], eax
push str.data_scene_select_character_back2.bmp
lea eax, [esp + 0x24]
push eax
mov ecx, 0x89ff08
call fcn.00405030
mov ecx, dword [eax]
mov edx, dword [esi + 0x23f8]
mov eax, dword [edx + 0x10]
mov dword [esi + 0x20e4], ecx
lea ecx, [esi + 0x23f8]
push str.data_menu_menuBack.dat
call eax
mov edx, dword [esi + 0x23f8]
mov eax, dword [edx + 4]
lea ecx, [esi + 0x23f8]
push ebx
call eax
mov edx, dword [esi + 0x2454]
mov eax, dword [edx + 0x10]
lea ecx, [esi + 0x2454]
push str.data_scene_select_bg_bg.dat
call eax
cmp dword [esi + 0xa8], ebx
mov dword [esp + 0x14], ebx
jle 0x425529
lea eax, [esi + 0x4324]
mov dword [esp + 0x38], eax
lea eax, [esi + 0x36ac]
mov dword [esp + 0x20], eax
lea ebx, [ebx]
mov ecx, dword [esi + 0xb4]
cmp ecx, ebx
je 0x42540b
mov eax, dword [esi + 0xb8]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x14], eax
jb 0x425410
call fcn.0081ff70
mov ecx, dword [esi + 0xb4]
mov edx, dword [esp + 0x14]
mov eax, dword [ecx + edx*4]
push eax
lea ecx, [esp + 0x78]
push str.data_scene_select_bg_bg_pict_02d.bmp
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x34]
push edx
mov ecx, 0x89ff08
call fcn.00405030
mov eax, dword [eax]
mov ecx, dword [esp + 0x20]
mov dword [ecx - 0x54], eax
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx - 0xc24]
mov edx, dword [edx + 0x14]
add ecx, 0xfffff3dc
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x20]
push ebx
push ebx
push eax
call edx
mov eax, dword [esi + 0xb4]
cmp eax, ebx
je 0x42549d
mov ecx, dword [esi + 0xb8]
sub ecx, eax
sar ecx, 2
cmp dword [esp + 0x14], ecx
jb 0x4254a2
call fcn.0081ff70
mov eax, dword [esi + 0xb4]
mov ecx, dword [esp + 0x14]
mov edx, dword [eax + ecx*4]
push edx
lea eax, [esp + 0x78]
push str.data_scene_select_bg_bg_name_02d.bmp
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x4c]
push ecx
mov ecx, 0x89ff08
call fcn.00405030
mov eax, dword [eax]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x38]
mov dword [edx], eax
mov edx, dword [ecx]
mov ecx, dword [esp + 0x34]
mov edx, dword [edx + 0x14]
push ecx
mov ecx, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x40]
push ebx
push ebx
push eax
call edx
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], 4
add dword [esp + 0x38], 0x94
add eax, 1
cmp eax, dword [esi + 0xa8]
mov dword [esp + 0x14], eax
jl 0x4253f0
cmp dword [esi + 0xac], ebx
mov dword [esp + 0x20], ebx
jle 0x4255ff
lea eax, [esi + 0x2500]
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], edi
jmp 0x425550
mov ecx, dword [esi + 0xc4]
cmp ecx, ebx
je 0x42556b
mov eax, dword [esi + 0xc8]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x20], eax
jb 0x425570
call fcn.0081ff70
mov eax, dword [esi + 0xc4]
mov ecx, dword [esp + 0x20]
mov edx, dword [eax + ecx*4]
push edx
lea eax, [esp + 0x78]
push 0x857b28
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x4c]
push ecx
mov ecx, 0x89ff08
call fcn.00405030
mov eax, dword [eax]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
push ebx
push ecx
mov dword [edi], eax
mov edi, dword [esp + 0x3c]
mov edx, dword [edx]
push edi
mov edi, dword [esp + 0x34]
push ecx
push ebx
push ebx
push eax
mov eax, dword [edx + 0x10]
mov ecx, edi
call eax
mov eax, dword [esp + 0x20]
add edi, 0x94
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x18]
add eax, 1
add edi, 4
cmp eax, dword [esi + 0xac]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edi
jl 0x425550
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x2c]
lea edi, [esi + 0x2474]
push edx
mov ecx, edi
mov dword [esp + 0x20], 0x64
call fcn.0040d010
mov eax, dword [edi + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x425631
cmp eax, edi
je 0x42563a
call fcn.0081ff70
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
cmp edi, dword [esp + 0x1c]
jne 0x42564c
mov dword [esi + 0x4f54], ebx
jmp 0x42566c
cmp eax, ebx
jne 0x425659
call fcn.0081ff70
mov eax, dword [esp + 0x28]
cmp edi, dword [eax + 4]
jne 0x425663
call fcn.0081ff70
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x4f54], ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
lea edi, [esi + 0x2474]
push eax
mov ecx, edi
mov dword [esp + 0x20], 0xc8
call fcn.0040d010
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov ecx, dword [edi + 4]
mov dword [esp + 0x1c], ecx
je 0x42569e
cmp eax, edi
je 0x4256a7
call fcn.0081ff70
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
cmp edi, dword [esp + 0x1c]
jne 0x4256b9
mov dword [esi + 0x4f58], ebx
jmp 0x4256d9
cmp eax, ebx
jne 0x4256c6
call fcn.0081ff70
mov eax, dword [esp + 0x28]
cmp edi, dword [eax + 4]
jne 0x4256d0
call fcn.0081ff70
mov edx, dword [edi + 0x10]
mov dword [esi + 0x4f58], edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
lea edi, [esi + 0x2474]
push ecx
mov ecx, edi
mov dword [esp + 0x20], 0x12c
call fcn.0040d010
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov edx, dword [edi + 4]
mov dword [esp + 0x1c], edx
je 0x42570b
cmp eax, edi
je 0x425714
call fcn.0081ff70
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
cmp edi, dword [esp + 0x1c]
jne 0x425726
mov dword [esi + 0x4f5c], ebx
jmp 0x425746
cmp eax, ebx
jne 0x425733
call fcn.0081ff70
mov eax, dword [esp + 0x28]
cmp edi, dword [eax + 4]
jne 0x42573d
call fcn.0081ff70
mov eax, dword [edi + 0x10]
mov dword [esi + 0x4f5c], eax
lea eax, [esi + 0x4f48]
xor edi, edi
mov dword [esp + 0x28], eax
mov edx, dword [esp + 0x28]
lea ecx, [edi + 0x1f4]
push ecx
push edx
lea ecx, [esi + 0x2454]
call fcn.0044e2b0
add dword [esp + 0x28], 4
add edi, 1
cmp edi, 3
jl 0x425752
mov eax, dword [esi + 0x4f48]
fldz
mov byte [eax + 0x14], 1
mov ecx, dword [esi + 0x4f4c]
mov byte [ecx + 0x14], 1
fst dword [esi + 0x4f6c]
fstp dword [esi + 0x4f68]
mov dword [esi + 0x4f64], ebx
mov dword [esi + 0x4f60], ebx
mov dword [esi + 0x22b8], ebx
mov dword [esi + 0x22bc], 0xf
call fcn.0043dea0
cmp eax, 4
je 0x4257d9
call fcn.0043dea0
cmp eax, 5
je 0x4257d9
push 0x5a
lea ecx, [esi + 0x4f70]
call fcn.00443160
push 0x5b
jmp 0x4257e8
push 3
lea ecx, [esi + 0x4f70]
call fcn.00443160
push 4
lea ecx, [esi + 0x5018]
call fcn.00443160
mov eax, esi
mov ecx, dword [esp + 0x188]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x170]
xor ecx, esp
call fcn.0081fb35
mov esp, ebp
pop ebp
ret