Function at 0x66b500
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6ac
mov eax, dword [0x71a00c]
xor eax, esp
mov dword [esp + 0x6a8], eax
cmp byte [0x72ec55], 0
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
jne 0x66b5c7
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x66b556
mov byte [0x72ec55], 1
jmp 0x66b5c7
push 0x19
push 0x6d5ecc
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
call fcn.004023e0
cmp dword [0x72f1b0], 0x10
lea eax, [esp + 0x1c]
mov ecx, 0x72f19c
cmovae ecx, dword [0x72f19c]
cmp dword [esp + 0x30], 0x10
push 0x50000
cmovae eax, dword [esp + 0x20]
push ecx
push eax
push dword [0x72ec60]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [esp + 0x30]
cmp edx, 0x10
jb 0x66b5c7
mov ecx, dword [esp + 0x1c]
inc edx
push 1
call fcn.004020c0
add esp, 4
push 0xd
push str.AsraFramework
lea ecx, [esp + 0xa8]
mov dword [esp + 0xbc], 0xf
mov dword [esp + 0xb8], 0
mov byte [esp + 0xa8], 0
call fcn.004023e0
push 0xffffffffffffffff
push 0
lea eax, [esp + 0xa8]
mov ecx, 0x72f160
push eax
call fcn.004024e0
push 0x105
lea eax, [esp + 0xd4]
push 0
push eax
call fcn.0066eb00
add esp, 0xc
lea eax, [esp + 0xd0]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp byte [esp + 0xd0], 0
mov dword [esp + 0xcc], 0xf
mov dword [esp + 0xc8], 0
mov byte [esp + 0xb8], 0
jne 0x66b664
xor ecx, ecx
jmp 0x66b679
lea ecx, [esp + 0xd0]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x66b670
sub ecx, edx
push ecx
lea eax, [esp + 0xd4]
push eax
lea ecx, [esp + 0xc0]
call fcn.004023e0
push 0xffffffffffffffff
push 0
lea eax, [esp + 0xc0]
mov ecx, 0x72f178
push eax
call fcn.004024e0
mov edx, dword [esp + 0xcc]
cmp edx, 0x10
jb 0x66b6c2
mov ecx, dword [esp + 0xb8]
inc edx
push 1
call fcn.004020c0
add esp, 4
push 0xffffffffffffffff
push 0
push 0x72f178
lea ecx, [esp + 0x44]
mov dword [esp + 0x40], vtable.filesystem::CFilePath.0
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
call fcn.004024e0
lea ecx, [esp + 0x34]
call fcn.0061fdd0
push 0xe
push 0x6d5ee8
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
call fcn.004023e0
lea ecx, [esp + 0x34]
call fcn.0061fd20
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x44]
call fcn.00404070
mov edx, dword [esp + 0x30]
cmp edx, 0x10
jb 0x66b752
mov ecx, dword [esp + 0x1c]
inc edx
push 1
call fcn.004020c0
add esp, 4
cmp dword [esp + 0x4c], 0x10
lea ecx, [esp + 0xd0]
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea eax, [esp + 0x38]
cmovae eax, dword [esp + 0x38]
push ecx
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
cmp eax, 0xffffffff
je 0x66b78d
push eax
call esi
test byte [esp + 0xd0], 0x10
je 0x66b8ff
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], vtable.filesystem::CFilePath.0
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], 0
mov byte [esp + 0x54], 0
call fcn.0061f790
push str.AliceStart.ini
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x58]
call fcn.0061fbe0
mov edx, eax
lea ecx, [esp + 0x20]
call fcn.004115e0
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x66b7df
mov eax, dword [eax]
lea ecx, [esp + 0xd0]
push ecx
push eax
call edi
cmp eax, 0xffffffff
jne 0x66b7f3
xor bl, bl
jmp 0x66b805
push eax
call esi
mov bl, byte [esp + 0xd0]
shr bl, 4
not bl
and bl, 1
mov edx, dword [esp + 0x30]
cmp edx, 0x10
jb 0x66b81d
mov ecx, dword [esp + 0x1c]
inc edx
push 1
call fcn.004020c0
add esp, 4
mov edx, dword [esp + 0x9c]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
cmp edx, 0x10
jb 0x66b850
mov ecx, dword [esp + 0x88]
inc edx
push 1
call fcn.004020c0
add esp, 4
test bl, bl
je 0x66b8db
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x54]
call fcn.0061fbe0
cmp dword [eax + 0x14], 0x10
jb 0x66b871
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov edx, dword [esp + 0x9c]
cmp edx, 0x10
jb 0x66b896
mov ecx, dword [esp + 0x88]
inc edx
push 1
call fcn.004020c0
add esp, 4
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x54]
call fcn.0061fbe0
cmp eax, 0x72f178
je 0x66b8bd
push 0xffffffffffffffff
push 0
push eax
mov ecx, 0x72f178
call fcn.004024e0
mov edx, dword [esp + 0x9c]
cmp edx, 0x10
jb 0x66b8db
mov ecx, dword [esp + 0x88]
inc edx
push 1
call fcn.004020c0
add esp, 4
mov edx, dword [esp + 0x68]
mov dword [esp + 0x50], vtable.filesystem::CFilePath.0
cmp edx, 0x10
jb 0x66b8fb
mov ecx, dword [esp + 0x54]
inc edx
push 1
call fcn.004020c0
add esp, 4
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x34], vtable.filesystem::CFilePath.0
cmp edx, 0x10
jb 0x66b91f
mov ecx, dword [esp + 0x38]
inc edx
push 1
call fcn.004020c0
add esp, 4
lea ecx, [esp + 0x6c]
call fcn.00668120
cmp dword [esp + 0x84], 0x10
lea ecx, [esp + 0xd0]
lea eax, [esp + 0x70]
cmovae eax, dword [esp + 0x70]
push ecx
push eax
call edi
cmp eax, 0xffffffff
je 0x66b977
push eax
call esi
test byte [esp + 0xd0], 0x10
jne 0x66b977
lea eax, [esp + 0xa0]
push eax
push dword [ebp + 0x14]
lea ecx, [esp + 0x74]
push dword [esp + 0x1c]
push dword [esp + 0x24]
push ebx
call fcn.006682c0
mov esi, eax
jmp 0x66b9c8
lea ecx, [esp + 0x210]
call fcn.005fde40
push ecx
push dword [esp + 0x18]
lea ecx, [esp + 0x218]
push ebx
call fcn.005fe310
lea ecx, [esp + 0x210]
test al, al
jne 0x66b9b5
call fcn.005ff1d0
lea ecx, [esp + 0x210]
call fcn.005fe0f0
xor esi, esi
jmp 0x66b9de
call fcn.005ff280
lea ecx, [esp + 0x210]
mov esi, eax
call fcn.005fe0f0
cmp byte [0x72ec55], 0
je 0x66b9de
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [0x72ec55], 0
mov edx, dword [esp + 0x84]
mov dword [esp + 0x6c], vtable.win32only::CAliceRunPatch.0
cmp edx, 0x10
jb 0x66ba01
mov ecx, dword [esp + 0x70]
inc edx
push 1
call fcn.004020c0
add esp, 4
mov edx, dword [esp + 0xb4]
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], 0
mov byte [esp + 0x70], 0
cmp edx, 0x10
jb 0x66ba3a
mov ecx, dword [esp + 0xa0]
inc edx
push 1
call fcn.004020c0
add esp, 4
mov ecx, dword [esp + 0x6b4]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0066bc45
mov esp, ebp
pop ebp
ret 0x10