Function at 0x4cd225
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
push dword [esi]
mov ecx, edi
push 4
push dword [esi + 4]
call fcn.00673e23
test eax, eax
je 0x4cd483
push dword [esi]
mov ecx, edi
push 4
push dword [esi + 8]
call fcn.00673e23
test eax, eax
je 0x4cd483
push edi
mov ecx, 0x719868
call fcn.004c12bb
mov eax, dword [esi + 0x14]
mov ecx, dword [eax]
test ecx, ecx
mov dword [eax + 0x14], ecx
je 0x4cd299
lea eax, [ecx + 8]
test eax, eax
je 0x4cd299
mov ecx, dword [eax + 4]
push edi
call sym.Battle_Realms_F.exe_public:_int___thiscall_BattleScriptInterface::Load_class_L_File__
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 0x14]
mov ecx, dword [ecx]
test ecx, ecx
mov dword [eax + 0x14], ecx
jne 0x4cd276
xor eax, eax
jmp 0x4cd279
call fcn.005491b6
test eax, eax
jne 0x4cd2e3
call fcn.0067f5ad
sub esp, 0x18
mov ecx, esp
push 0x288
call fcn.0066b1cd
sub esp, 0x18
mov eax, esp
push str.C:ProjectsSamuraiCodeBattleScriptManager.cpp
push eax
call fcn.0066b0d0
pop ecx
pop ecx
push str.BAD_SAVE_
call fcn.0067f4fe
add esp, 0x34
call sub.kernel32.dll_IsDebuggerPresent
test eax, eax
je 0x4cd38c
int3
mov ecx, dword [esi + 0x18]
call fcn.004ce207
push 1
lea eax, [ebp + 8]
pop ebx
mov ecx, edi
push ebx
push 4
push eax
call fcn.00673e23
test eax, eax
je 0x4cd483
lea ecx, [ebp - 0x1c]
call fcn.0066b08d
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jbe 0x4cd344
push ebx
lea eax, [ebp - 0x20]
push 4
push eax
mov ecx, edi
call fcn.00673e23
push edi
lea ecx, [ebp - 0x1c]
call fcn.0066c26f
mov ecx, dword [esi + 0x18]
lea eax, [ebp - 0x20]
push eax
call fcn.004ce22a
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jb 0x4cd316
call fcn.005491b6
test eax, eax
jne 0x4cd399
call fcn.0067f5ad
sub esp, 0x18
mov ecx, esp
push 0x298
call fcn.0066b1cd
sub esp, 0x18
mov eax, esp
push str.C:ProjectsSamuraiCodeBattleScriptManager.cpp
push eax
call fcn.0066b0d0
pop ecx
pop ecx
push str.BAD_SAVE_
call fcn.0067f4fe
add esp, 0x34
call sub.kernel32.dll_IsDebuggerPresent
test eax, eax
je 0x4cd393
int3
push 1
call fcn.006a16bc
push ebx
call fcn.006a16bc
mov ecx, dword [esi + 0x1c]
call fcn.004ce2c5
push ebx
lea eax, [ebp + 8]
push 4
push eax
mov ecx, edi
call fcn.00673e23
test eax, eax
je 0x4cd47b
lea ecx, [ebp - 0x38]
call fcn.0066b08d
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jbe 0x4cd413
push ebx
lea eax, [ebp - 0x44]
push 4
push eax
mov ecx, edi
call fcn.00673e23
push ebx
lea eax, [ebp - 0x40]
push 4
push eax
mov ecx, edi
call fcn.00673e23
push ebx
lea eax, [ebp - 0x3c]
push 4
push eax
mov ecx, edi
call fcn.00673e23
push edi
lea ecx, [ebp - 0x38]
call fcn.0066c26f
mov ecx, dword [esi + 0x1c]
lea eax, [ebp - 0x44]
push eax
call fcn.004ce2e8
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jb 0x4cd3c9
call fcn.005491b6
test eax, eax
jne 0x4cd459
call fcn.0067f5ad
sub esp, 0x18
mov ecx, esp
push 0x2a8
call fcn.0066b1cd
sub esp, 0x18
mov eax, esp
push str.C:ProjectsSamuraiCodeBattleScriptManager.cpp
push eax
call fcn.0066b0d0
pop ecx
pop ecx
push str.BAD_SAVE_
call fcn.0067f4fe
add esp, 0x34
call sub.kernel32.dll_IsDebuggerPresent
test eax, eax
je 0x4cd48a
int3
mov ecx, dword [esi + 0x20]
call fcn.004ce37a
push ebx
lea eax, [ebp + 8]
push 4
push eax
mov ecx, edi
call fcn.00673e23
test eax, eax
jne 0x4cd490
lea ecx, [ebp - 0x38]
call fcn.0066b24c
lea ecx, [ebp - 0x1c]
call fcn.0066b24c
xor eax, eax
jmp 0x4cd53e
push ebx
call fcn.006a16bc
lea ecx, [ebp - 0x74]
call fcn.004cd54b
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jbe 0x4cd4de
push ebx
lea eax, [ebp - 0x74]
push 0xc
push eax
mov ecx, edi
call fcn.00673e23
push ebx
lea eax, [ebp - 0x68]
push 0xc
push eax
mov ecx, edi
call fcn.00673e23
push edi
lea ecx, [ebp - 0x5c]
call fcn.0066c26f
mov ecx, dword [esi + 0x20]
lea eax, [ebp - 0x74]
push eax
call fcn.004ce39d
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jb 0x4cd4a2
call fcn.005491b6
test eax, eax
jne 0x4cd524
call fcn.0067f5ad
sub esp, 0x18
mov ecx, esp
push 0x2b7
call fcn.0066b1cd
sub esp, 0x18
mov eax, esp
push str.C:ProjectsSamuraiCodeBattleScriptManager.cpp
push eax
call fcn.0066b0d0
pop ecx
pop ecx
push str.BAD_SAVE_
call fcn.0067f4fe
add esp, 0x34
call sub.kernel32.dll_IsDebuggerPresent
test eax, eax
je 0x4cd545
int3
lea ecx, [ebp - 0x5c]
call fcn.0066b24c
lea ecx, [ebp - 0x38]
call fcn.0066b24c
lea ecx, [ebp - 0x1c]
call fcn.0066b24c
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4
push ebx
call fcn.006a16bc