Function at 0x427c17
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ec4ea
mov eax, dword fs:[0]
push eax
mov eax, 0x11bc
call fcn.00495d00
mov eax, dword [0x536260]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push str.SaveSence_n
mov dword [ebp - 0x11c8], edi
call fcn.0042e448
mov eax, dword [esi + 0x790]
push 0x10
add eax, 0x214
push 0
push eax
call fcn.00497890
mov eax, dword [esi + 0x790]
mov ebx, edi
add eax, 0xdb458
shl ebx, 4
add eax, ebx
mov dword [ebp - 0x11c0], ebx
push 0x10
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00498cd0
push 0x800
lea eax, [ebp - 0x820]
push 0
push eax
call fcn.00497890
add esp, 0x28
lea ecx, [ebp - 0x1134]
call fcn.0042f203
and dword [ebp - 4], 0
lea eax, [ebp - 0x10b0]
push 0
push str._save_scene_overwrite
push eax
call fcn.00403cdb
mov ecx, eax
call fcn.0043045b
push eax
lea ecx, [ebp - 0x1134]
mov byte [ebp - 4], 1
call fcn.0042f3c8
lea ecx, [ebp - 0x10b0]
mov byte [ebp - 4], 0
call fcn.0042f32e
push edi
lea ecx, [ebp - 0x1134]
call fcn.0042fad9
push eax
lea eax, [ebp - 0x820]
push eax
call fcn.00405c58
mov eax, dword [esi + 0x790]
lea ecx, [ebp - 0x10b0]
add esp, 0xc
add eax, 0xdb458
add eax, ebx
push 0xffffffffffffffff
push eax
call fcn.0042f1df
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0042fcb7
cmp al, 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10b0]
setne bl
call fcn.0042f32e
test bl, bl
je 0x427d74
lea eax, [ebp - 0x820]
mov ecx, esi
push eax
push str._tips
call fcn.00439e99
push eax
call fcn.00405323
add esp, 0xc
cmp eax, 1
jne 0x427f20
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.00439e99
push eax
call fcn.00427878
pop ecx
pop ecx
cmp eax, 1
jne 0x427f20
mov eax, dword [esi + 0x790]
add eax, 0x214
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0042e41b
push 0x10
lea eax, [ebp - 0x20]
push eax
mov eax, dword [esi + 0x790]
add eax, 0xdb458
add eax, dword [ebp - 0x11c0]
push eax
call fcn.00498cd0
mov eax, dword [esi + 0x790]
lea ecx, [ebp - 0x10b0]
add esp, 0x14
add eax, 0xdb458
add eax, dword [ebp - 0x11c0]
push 0xffffffffffffffff
push eax
call fcn.0042f1df
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0042fcb7
cmp al, 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10b0]
setne bl
call fcn.0042f32e
test bl, bl
je 0x427e9f
xor eax, eax
lea ecx, [edi - 1]
mov dword [ebp - 0x11bc], eax
xor edi, edi
mov dword [ebp - 0x11c4], ecx
cmp eax, ecx
je 0x427e87
mov eax, dword [esi + 0x790]
lea ecx, [ebp - 0x10b0]
add eax, 0xdb468
push 0xffffffffffffffff
add eax, edi
push eax
call fcn.0042f1df
mov edx, dword [ebp - 0x11c0]
mov ecx, dword [esi + 0x790]
add edx, 0xdb458
add ecx, edx
mov byte [ebp - 4], 4
push ecx
mov ecx, eax
call fcn.0042f857
mov ebx, eax
mov byte [ebp - 4], 0
neg ebx
lea ecx, [ebp - 0x10b0]
sbb bl, bl
call fcn.0042f32e
add bl, 1
jne 0x427f49
mov eax, dword [ebp - 0x11bc]
mov ecx, dword [ebp - 0x11c4]
inc eax
add edi, 0x10
mov dword [ebp - 0x11bc], eax
cmp edi, 0xa0
jb 0x427e1e
mov edi, dword [ebp - 0x11c8]
mov ecx, dword [esi + 0x780]
lea eax, [edi - 1]
add ecx, 0x550
push eax
mov edx, dword [ecx]
call dword [edx]
push 0x4fb4d4
mov ecx, eax
call fcn.00440a19
lea ecx, [ebp - 0x20]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
xor ebx, ebx
mov ecx, esi
push ebx
push ebx
push 0x4fa
call fcn.00439fd5
mov eax, dword [esi + 0x790]
lea edx, [ebp - 0x20]
push edx
mov dword [eax + 8], edi
mov eax, dword [esi + 0x790]
mov ecx, dword [eax + edi*4 + 0xdb8b4]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, esi
call fcn.00439e99
mov ecx, dword [esi + 0x790]
mov dword [ecx + 0xdc188], eax
push dword [esi + 0x790]
push ebx
push 0x4123ae
call fcn.004b7a2e
add esp, 0xc
lea ecx, [ebp - 0x1134]
call fcn.0042f32e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00495b3a
mov esp, ebp
pop ebp
ret 4
push 0x800
lea eax, [ebp - 0x1020]
push 0
push eax
call fcn.00497890
add esp, 0xc
lea ecx, [ebp - 0x10b0]
call fcn.0042f203
push 0
lea eax, [ebp - 0x11b8]
mov byte [ebp - 4], 5
push str._same_name_tips
push eax
call fcn.00403cdb
mov ecx, eax
call fcn.0043045b
push eax
lea ecx, [ebp - 0x10b0]
mov byte [ebp - 4], 6
call fcn.0042f3c8
lea ecx, [ebp - 0x11b8]
mov byte [ebp - 4], 5
call fcn.0042f32e
mov ecx, dword [esi + 0x790]
mov ebx, dword [ebp - 0x11c0]
lea eax, [ecx + 0xdb468]
add eax, edi
push eax
mov eax, dword [ebp - 0x11bc]
inc eax
push eax
lea eax, [ebx + 0xdb458]
add eax, ecx
lea ecx, [ebp - 0x10b0]
push eax
call fcn.0042fad9
push eax
lea eax, [ebp - 0x1020]
push eax
call fcn.00405c58
add esp, 0x14
mov dword [ebp - 0x102c], str._confirm
xor eax, eax
mov dword [ebp - 0x1028], eax
mov dword [ebp - 0x1024], eax
push eax
lea eax, [ebp - 0x11b8]
push str._tips
push eax
call fcn.00403cdb
mov ecx, eax
call fcn.0043045b
push 1
lea ecx, [ebp - 0x102c]
mov byte [ebp - 4], 7
push ecx
lea ecx, [ebp - 0x1020]
push ecx
mov ecx, eax
call fcn.0042fad9
push eax
mov ecx, esi
call fcn.00439e99
push eax
call fcn.004053a9
add esp, 0x14
lea ecx, [ebp - 0x11b8]
call fcn.0042f32e
mov eax, dword [esi + 0x790]
push 0x10
add eax, 0xdb458
add eax, ebx
push 0
push eax
call fcn.00497890
add esp, 0xc
lea ecx, [ebp - 0x10b0]
call fcn.0042f32e
jmp 0x427f20