Function at 0x4c96a8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
push 1
lea eax, [esi + 0x14]
push 4
push eax
mov ecx, ebx
call fcn.00673e23
test eax, eax
je 0x4c9941
lea edi, [esi + 0x18]
push 1
push 4
push edi
mov ecx, ebx
call fcn.00673e23
test eax, eax
je 0x4c9941
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4c96f6
push eax
call fcn.00668898
and dword [esi + 0x1c], 0
pop ecx
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.00668826
pop ecx
mov dword [esi + 0x1c], eax
push dword [edi]
mov ecx, ebx
push 4
pop edi
push edi
push eax
call fcn.00673e23
test eax, eax
je 0x4c9941
push 1
lea eax, [esi + 0x20]
push edi
push eax
mov ecx, ebx
call fcn.00673e23
test eax, eax
je 0x4c9941
push 0xa
push edi
push dword [esi + 0x24]
mov ecx, ebx
call fcn.00673e23
test eax, eax
je 0x4c9941
mov ecx, esi
call sym.Battle_Realms_F.exe_public:_void___thiscall_BattleScriptInterface::ResolveScriptIDs_void_
mov ecx, dword [esi + 0x28]
call fcn.0043afc0
push 1
lea eax, [ebp + 8]
push edi
push eax
mov ecx, ebx
call fcn.00673e23
test eax, eax
je 0x4c9941
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
mov edi, str.BattleScriptInterface::Load___Error:_Waypoints
jbe 0x4c97ea
push 1
lea eax, [ebp - 0xc]
push 8
push eax
mov ecx, ebx
call fcn.00673e23
test eax, eax
je 0x4c9941
mov ecx, dword [esi + 0x28]
lea eax, [ebp - 0xc]
push eax
call fcn.0042c5d5
call fcn.005491b6
test eax, eax
jne 0x4c97df
call fcn.0067f5ad
sub esp, 0x18
mov ecx, esp
push 0x135
call fcn.0066b1cd
sub esp, 0x18
mov eax, esp
push str.C:ProjectsSamuraiCodeBattleScriptInterface.cpp
push eax
call fcn.0066b0d0
pop ecx
pop ecx
push edi
call fcn.0067f4fe
add esp, 0x34
call sub.kernel32.dll_IsDebuggerPresent
test eax, eax
je 0x4c982e
int3
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jb 0x4c977a
call fcn.005491b6
test eax, eax
jne 0x4c983c
call fcn.0067f5ad
sub esp, 0x18
mov ecx, esp
push 0x137
call fcn.0066b1cd
sub esp, 0x18
mov eax, esp
push str.C:ProjectsSamuraiCodeBattleScriptInterface.cpp
push eax
call fcn.0066b0d0
pop ecx
pop ecx
push edi
call fcn.0067f4fe
add esp, 0x34
call sub.kernel32.dll_IsDebuggerPresent
test eax, eax
je 0x4c9835
int3
push 1
call fcn.006a16bc
push 1
call fcn.006a16bc
mov ecx, dword [esi + 0x2c]
call fcn.0043afc0
push 1
lea eax, [ebp + 8]
push 4
push eax
mov ecx, ebx
call fcn.00673e23
test eax, eax
je 0x4c9941
xor edi, edi
cmp dword [ebp + 8], edi
jbe 0x4c988b
push 1
lea eax, [ebp - 0x18]
push 0xc
push eax
mov ecx, ebx
call fcn.00673e23
test eax, eax
je 0x4c9941
mov ecx, dword [esi + 0x2c]
lea eax, [ebp - 0x18]
push eax
call fcn.00493b48
inc edi
cmp edi, dword [ebp + 8]
jb 0x4c9862
call fcn.005491b6
test eax, eax
jne 0x4c98d1
call fcn.0067f5ad
sub esp, 0x18
mov ecx, esp
push 0x142
call fcn.0066b1cd
sub esp, 0x18
mov eax, esp
push str.C:ProjectsSamuraiCodeBattleScriptInterface.cpp
push eax
call fcn.0066b0d0
pop ecx
pop ecx
push str.BattleScriptInterface::Load___Error:_Script_Vectors
call fcn.0067f4fe
add esp, 0x34
call sub.kernel32.dll_IsDebuggerPresent
test eax, eax
je 0x4c990d
int3
mov ecx, dword [esi + 0x30]
call fcn.0043afc0
push 1
lea eax, [ebp + 8]
push 4
push eax
mov ecx, ebx
call fcn.00673e23
test eax, eax
je 0x4c9941
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jbe 0x4c9937
push 0x10
call fcn.00668826
test eax, eax
pop ecx
je 0x4c9914
mov ecx, eax
call fcn.004c56e6
mov edi, eax
jmp 0x4c9916
push 1
call fcn.006a16bc
xor edi, edi
push esi
push ebx
mov ecx, edi
call fcn.004c8b88
test eax, eax
je 0x4c9941
mov ecx, dword [esi + 0x30]
push edi
call fcn.004cc73c
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jb 0x4c98f6
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
xor eax, eax
jmp 0x4c993a