Function at 0x4c4d70
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x582bc0
mov eax, dword fs:[0]
push eax
sub esp, 0x104
mov eax, dword [0x5d4090]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov dword [ebp - 4], 0
cmp esi, 7
ja case.0x4c4dc7.4
jmp dword [esi*4 + 0x4c51fc]
push 0x3c
push 0x5ab6ec
lea ecx, [ebp - 0x40]
call fcn.00402080
jmp 0x4c4e4c
push 0x19
push str.Error_Type:_Runtime_Error
lea ecx, [ebp - 0x40]
call fcn.00402080
jmp 0x4c4e4c
push 0x1a
push str.Error_Type:_Bad_input_data
lea ecx, [ebp - 0x40]
call fcn.00402080
jmp 0x4c4e4c
push 0x19
push str.Error_Type:_Out_of_memory
lea ecx, [ebp - 0x40]
call fcn.00402080
jmp 0x4c4e4c
push 0x1e
push str.Error_Type:_File_opening_error
lea ecx, [ebp - 0x40]
call fcn.00402080
jmp 0x4c4e4c
push 0x20
push str.Error_Type:_Stub_function_called
lea ecx, [ebp - 0x40]
call fcn.00402080
jmp 0x4c4e4c
push 0x13
push str.Error_Type:_Unknown
lea ecx, [ebp - 0x40]
call fcn.00402080
cmp esi, 4
je 0x4c5105
push ecx
lea ecx, [ebp - 0x110]
call fcn.0040e880
mov edi, 0x7fffffff
mov byte [ebp - 4], 1
mov ecx, dword [0x5d82c0]
mov eax, edi
sub eax, ecx
cmp eax, 0x10
jb 0x4c51e5
cmp dword [0x5d82c4], 0x10
mov eax, 0x5d82b0
push 0x10
cmovae eax, dword [0x5d82b0]
push str.Raven_errors.txt
push ecx
push eax
push ecx
push dword [ebp - 0x60]
lea ecx, [ebp - 0x28]
call fcn.00412290
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
push ecx
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x10c]
push 0xa
push eax
call fcn.0040fc40
test eax, eax
lea ecx, [ebp - 0x110]
mov eax, dword [ebp - 0x110]
push 0
je 0x4c4ede
add ecx, dword [eax + 4]
xor edx, edx
mov eax, 4
cmp dword [ecx + 0x38], edx
cmovne eax, edx
jmp 0x4c4ef3
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.004050a0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00402ec0
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x104], 6
je 0x4c5030
lea ecx, [ebp - 0x10c]
call fcn.0040fb40
test eax, eax
jne 0x4c4f54
mov eax, dword [ebp - 0x110]
lea ecx, [ebp - 0x110]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.004050a0
mov ecx, dword [0x5d82c0]
sub edi, ecx
cmp edi, 0x1c
jb 0x4c51ea
cmp dword [0x5d82c4], 0x10
mov eax, 0x5d82b0
push ecx
cmovae eax, dword [0x5d82b0]
push eax
push 0x1c
push str.Unable_to_open_errors_file__
push ecx
push dword [ebp - 0x60]
lea ecx, [ebp - 0x58]
call fcn.00412290
push 0x11
push str.Raven_errors.txt_
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.00410670
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 5
call fcn.00402ec0
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov edx, 4
cmovae ecx, dword [ebp - 0x28]
call fcn.004c4d70
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x4c5030
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4c5026
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c51ef
push ecx
push edx
call fcn.0051faa7
add esp, 8
cmp esi, 7
je 0x4c504c
mov edx, str.ERROR_:
lea ecx, [ebp - 0x110]
call fcn.00411000
mov edi, dword [ebp - 0x5c]
mov edx, edi
jmp 0x4c505a
mov edi, dword [ebp - 0x5c]
lea eax, [ebp - 0x110]
mov edx, str.SIMULATION_COMPLETE_:_
mov ecx, eax
call fcn.00411000
push eax
call fcn.00411280
add esp, 4
lea ecx, [ebp - 0x10c]
call fcn.0040fb40
test eax, eax
jne 0x4c50a2
mov eax, dword [ebp - 0x110]
lea ecx, [ebp - 0x110]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.004050a0
lea ecx, [ebp - 0x110]
mov byte [ebp - 4], 0
call fcn.0040c1b0
cmp esi, 1
jne 0x4c5108
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x4c50ea
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4c50e0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c51f4
push ecx
push edx
call fcn.0051faa7
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051fa69
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x5c]
push fcn.00411280
push fcn.00411280
mov ecx, 0x5d6660
call fcn.0040e960
mov ecx, eax
call fcn.0040e960
push fcn.00411280
mov edx, str._Exiting_Gracefully_
mov ecx, 0x5d6660
call fcn.00411000
mov ecx, eax
call fcn.0040e960
push fcn.00411280
mov edx, str.Exiting_Gracefully:
mov ecx, 0x5d6660
call fcn.00411000
mov edx, edi
mov ecx, eax
call fcn.00411000
mov ecx, eax
call fcn.0040e960
push fcn.00411280
lea edx, [ebp - 0x40]
mov ecx, 0x5d6660
call fcn.00411260
mov ecx, eax
call fcn.0040e960
push fcn.00411280
mov edx, 0x5ab6ec
mov ecx, 0x5d6660
call fcn.00411000
mov ecx, eax
call fcn.0040e960
mov ecx, dword [0x5d8098]
test ecx, ecx
je 0x4c51a6
push ecx
call fcn.004c5220
mov dword [0x5d8098], 0
call fcn.00472350
cmp byte [0x5d839c], 0
je 0x4c51de
push fcn.00411280
mov edx, str.Press_the_ENTER_key_to_continue
mov ecx, 0x5d6660
call fcn.00411000
mov ecx, eax
call fcn.0040e960
call fcn.004c5c30
push 0
call fcn.0054aad1
call fcn.00401560
call fcn.00401560
call fcn.0052eb21
call fcn.0052eb21
nop dword [eax]
invalid