Function at 0x1001aa10
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100491cb
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x1005e048]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x28c], esi
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movlpd qword [ebp - 0x120], xmm0
push 0xc
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0
call fcn.10021c7a
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebp - 0x120], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x120]
mov edi, dword [esi + 4]
mov esi, dword [edi]
cmp esi, edi
je 0x1001aabf
mov eax, dword [esi + 8]
mov dword [ebp - 0x1d8], eax
cmp byte [eax + 0xe4], 0
je 0x1001aabb
lea eax, [ebp - 0x1d8]
push eax
call fcn.1001bf10
lea ecx, [ebp - 0x120]
mov esi, dword [esi]
jmp 0x1001aa93
cmp dword [0x1008753c], 4
mov edi, dword [ebp - 0x28c]
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x130], 0x31345653
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x128], eax
mov eax, dword [0x100820a4]
je 0x1001aafa
mov al, byte [eax + 0x15f]
jmp 0x1001ab00
mov al, byte [eax + 0x15b]
movzx eax, al
push eax
lea eax, [ebp - 0x118]
push str.._cleo_cleo_saves_cs_d.sav
push eax
call fcn.10002770
lea eax, [ebp - 0x118]
push eax
push str.Saving_script_engine_state_to_the_file__s
push 3
push 0x10087438
call fcn.1000e100
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0x1c
push 0
push 0x10056bfc
call esi
push 0
push str.cleo_cleo_saves
call esi
push 0xb0
lea eax, [ebp - 0x288]
push 0
push eax
call fcn.10023990
add esp, 4
lea eax, [ebp - 0x118]
lea ecx, [ebp - 0x288]
push 0x20
push eax
call fcn.1000ef90
mov byte [ebp - 4], 2
cmp dword [ebp - 0x238], 0
je 0x1001ad35
mov eax, dword [ebp - 0x288]
lea ecx, [ebp - 0x288]
push 0
add ecx, dword [eax + 4]
push dword [ecx + 0xc]
mov dword [ecx + 0x10], 6
call fcn.10003500
lea edx, [ebp - 0x130]
lea ecx, [ebp - 0x288]
call fcn.1001d590
push ecx
lea ecx, [ebp - 0x288]
call fcn.1001d5b0
mov ecx, dword [ebp - 0x120]
add esp, 4
mov dword [ebp - 0x124], ecx
mov eax, dword [ecx]
mov dword [ebp - 0x1d8], eax
cmp eax, ecx
je 0x1001aca5
mov edx, dword [eax + 8]
mov eax, dword [edx + 0xe0]
cmp byte [edx + 0xd2], 0
mov ecx, dword [edx + 0xcc]
mov dword [ebp - 0x1d4], eax
setne byte [ebp - 0x13e]
mov al, byte [edx + 0xc5]
mov byte [ebp - 0x148], al
mov ax, word [edx + 0xd0]
mov word [ebp - 0x140], ax
mov eax, dword [edx + 0x14]
sub eax, dword [edx + 0x10]
mov dword [ebp - 0x13c], eax
mov eax, dword [0x10085aac]
mov eax, dword [eax]
cmp ecx, eax
jb 0x1001ac3f
mov dword [ebp - 0x144], 0
jmp 0x1001ac47
sub ecx, eax
mov dword [ebp - 0x144], ecx
mov eax, dword [edx + 0xbc]
lea esi, [edx + 0x3c]
mov ecx, 0x20
lea edi, [ebp - 0x1d0]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [edx + 0xc0]
mov dword [ebp - 0x14c], ecx
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x150], eax
mov eax, dword [edx + 8]
lea edx, [ebp - 0x1d4]
mov dword [ebp - 0x134], ecx
lea ecx, [ebp - 0x288]
mov dword [ebp - 0x138], eax
call fcn.1001d5d0
mov eax, dword [ebp - 0x1d8]
mov ecx, dword [ebp - 0x124]
mov eax, dword [eax]
jmp 0x1001abd1
mov edi, dword [ebp - 0x28c]
mov edi, dword [edi + 0x14]
mov esi, dword [edi]
cmp esi, edi
je 0x1001ad0e
mov eax, dword [esi + 0x10]
lea edx, [ebp - 0x124]
lea ecx, [ebp - 0x288]
mov dword [ebp - 0x124], eax
call fcn.1001d5f0
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x1001acf4
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x1001acf0
cmp esi, dword [eax + 8]
jne 0x1001acf0
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x1001ace0
mov esi, eax
jmp 0x1001acb0
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x1001acb0
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x1001ad00
jmp 0x1001acb0
push dword [ebp - 0x128]
push dword [ebp - 0x12c]
push 0x400
push str.Done._Saved__u_cleo_variables___u_saved_threads___u_stopped_threads
push 3
push 0x10087438
call fcn.1000e100
add esp, 0x18
jmp 0x1001ad50
lea eax, [ebp - 0x118]
push eax
push str.Failed_to_write_save_file__s_
push 3
push 0x10087438
call fcn.1000e100
add esp, 0x10
mov eax, dword [ebp - 0x288]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x288]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x28c], eax
lea ecx, [ebp - 0x284]
call fcn.1000ee40
mov eax, dword [ebp - 0x288]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x288]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x28c], eax
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 3
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.10020c64
mov ecx, dword [ebp - 0x120]
add esp, 4
mov eax, dword [ecx + 4]
mov dword [eax], 0
mov eax, dword [ecx]
test eax, eax
je 0x1001adf3
nop dword [eax + eax]
mov esi, dword [eax]
push 0xc
push eax
call fcn.10021fc9
add esp, 8
mov eax, esi
test esi, esi
jne 0x1001ade0
push 0xc
push dword [ebp - 0x120]
call fcn.10021fc9
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10021c67
mov esp, ebp
pop ebp
ret