Function at 0x4cde90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x528733
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x56617c]
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 ebx, dword [ebp + 8]
push 0x52d978
push 0x70
mov dword [ebp - 0x70], ecx
call fcn.004feae3
add esp, 8
mov dword [ebp - 0x64], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4cdef2
mov ecx, eax
call fcn.00449e40
mov edi, eax
mov dword [ebp - 0x6c], eax
jmp 0x4cdef7
xor edi, edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4ce136
push str.script.arc
sub esp, 0x44
mov esi, esp
mov ecx, esi
mov dword [ebp - 0x64], esi
call fcn.0041ad80
cmp dword [esi + 0x38], 0
mov dword [esi], vtable.CStringUTF8.0
je 0x4cdf2e
lea ecx, [esi + 0x34]
call fcn.0041a760
mov dword [esi + 0x3c], 0xffffffff
mov dword [esi + 0x40], 0xffffffff
push str._GameFile_ScriptArchive_File
lea ecx, [ebp - 0x150]
mov dword [ebp - 4], 1
call fcn.0041a9d0
lea eax, [ebp - 0x150]
mov byte [ebp - 4], 2
push eax
mov ecx, esi
call fcn.0041a900
lea ecx, [ebp - 0x150]
call fcn.0041c2a0
lea eax, [ebp - 0xc0]
mov dword [ebp - 4], 0xffffffff
push eax
mov ecx, 0x592878
call fcn.0041d740
push 1
sub esp, 0x44
mov dword [ebp - 4], 3
mov esi, esp
mov ecx, esi
mov dword [ebp - 0x64], esi
call fcn.0041ad80
cmp dword [esi + 0x38], 0
mov dword [esi], vtable.CStringUTF8.0
je 0x4cdfb4
lea ecx, [esi + 0x34]
call fcn.0041a760
mov dword [esi + 0x3c], 0xffffffff
mov dword [esi + 0x40], 0xffffffff
push str._GameFile_ScriptArchive_Encode
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 4
call fcn.0041a9d0
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 5
push eax
mov ecx, esi
call fcn.0041a900
lea ecx, [ebp - 0x108]
call fcn.0041c2a0
mov ecx, 0x592878
mov byte [ebp - 4], 3
call fcn.0041d680
mov edx, dword [ebp - 0xc0]
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0x68], eax
call dword [edx + 0x78]
cmp dword [0x57e734], 0
mov dword [ebp - 0x64], eax
jne 0x4ce0a3
push 0x52d978
push 0x20
call fcn.004feae3
mov esi, eax
add esp, 8
mov dword [ebp - 0x74], esi
test esi, esi
je 0x4ce08f
mov dword [esi], vtable.CArchiveManager.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
cmp dword [ebp - 0x68], 1
mov ecx, esi
push 1
sete al
mov byte [ebp - 4], 8
movzx eax, al
push eax
push dword [ebp - 0x64]
mov dword [esi + 0x1c], 0
call fcn.00432e60
jmp 0x4ce091
xor esi, esi
mov byte [ebp - 4], 3
mov dword [0x57e734], esi
test esi, esi
je 0x4ce157
lea ecx, [ebp - 0xc0]
call fcn.0041c2a0
push ebx
mov ecx, edi
mov dword [ebp - 4], 9
call fcn.00449fd0
mov eax, edi
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.004fe27d
mov esp, ebp
pop ebp
ret 4
push str.Failed_to_create_script_object.
lea ecx, [ebp - 0x198]
call fcn.0041a6c0
push 0x563c54
lea eax, [ebp - 0x198]
push eax
call fcn.004ffbbe
push str.Failed_to_create_script_archive_class
lea ecx, [ebp - 0x1e0]
call fcn.0041a6c0
push 0x563c54
lea eax, [ebp - 0x1e0]
push eax
call fcn.004ffbbe
int3