Function at 0x4cd577
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 0x4cd8c8
push dword [esi]
mov ecx, edi
push 4
push dword [esi + 8]
call fcn.00673e23
test eax, eax
je 0x4cd8c8
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 0x4cd5e9
add ecx, 8
test ecx, ecx
je 0x4cd5e9
mov ecx, dword [ecx + 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 0x4cd5c8
jmp 0x4cd5cb
call fcn.005491b6
test eax, eax
jne 0x4cd633
call fcn.0067f5ad
sub esp, 0x18
mov ecx, esp
push 0x2ce
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 0x4cd6dc
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 0x4cd8c8
lea ecx, [ebp - 0x1c]
call fcn.0066b08d
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jbe 0x4cd694
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 0x4cd666
call fcn.005491b6
test eax, eax
jne 0x4cd6e9
call fcn.0067f5ad
sub esp, 0x18
mov ecx, esp
push 0x2de
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 0x4cd6e3
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 0x4cd8c0
lea ecx, [ebp - 0x38]
call fcn.0066b08d
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jbe 0x4cd763
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 0x4cd719
call fcn.005491b6
test eax, eax
jne 0x4cd7ad
call fcn.0067f5ad
sub esp, 0x18
mov ecx, esp
push 0x2ee
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 0x4cd861
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
je 0x4cd8b8
lea ecx, [ebp - 0x74]
call fcn.004cd54b
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jbe 0x4cd819
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 0x4cd7dd
call fcn.005491b6
test eax, eax
jne 0x4cd86d
call fcn.0067f5ad
sub esp, 0x18
mov ecx, esp
push 0x2fd
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 0x4cd867
int3
push ebx
call fcn.006a16bc
push ebx
call fcn.006a16bc
push ebx
lea eax, [esi + 0x40]
push 4
push eax
mov ecx, edi
call fcn.00673e23
test eax, eax
je 0x4cd8b0
push ebx
lea eax, [esi + 0x44]
push 4
push eax
mov ecx, edi
call fcn.00673e23
test eax, eax
je 0x4cd8b0
push ebx
lea eax, [esi + 0x48]
push 4
push eax
mov ecx, edi
call fcn.00673e23
test eax, eax
je 0x4cd8b0
push edi
lea ecx, [esi + 0x4c]
call fcn.0066c26f
test eax, eax
jne 0x4cd8cc
lea ecx, [ebp - 0x5c]
call fcn.0066b24c
lea ecx, [ebp - 0x38]
call fcn.0066b24c
lea ecx, [ebp - 0x1c]
call fcn.0066b24c
xor eax, eax
jmp 0x4cd92c
call fcn.005491b6
test eax, eax
jne 0x4cd912
call fcn.0067f5ad
sub esp, 0x18
mov ecx, esp
push 0x305
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 0x4cd933
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