Function at 0x4067e0
Capabilities:
Terminate process

Disassembly:
mov eax, 0x5000
call fcn.0042dbc0
push ebx
push esi
push edi
push 8
push 0x19
push 0x50
push 0xffffffffffffffff
mov byte [esp + 0x101c], 0
call fcn.0040bd90
add esp, 0x10
call fcn.0040bd10
call dword [sym.imp.alleg40.dll_Ordinal_548]
call dword [sym.imp.alleg40.dll_Ordinal_547]
call dword [sym.imp.alleg40.dll_Ordinal_552]
call fcn.00409f40
test eax, eax
je 0x40686d
call fcn.00409f50
push eax
lea eax, [esp + 0x10]
push str.Library__built_in__message:__s._n_n
push eax
call fcn.0042d33e
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x100c]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x43f2b4]
add eax, 0xba4
cmp byte [eax], 0
je 0x4068c1
push eax
lea ecx, [esp + 0x10]
push str.Error_message:__s_n_n
push ecx
call fcn.0042d33e
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x100c]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4068fc
lea edi, [esp + 0x100c]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x43bcd0]
repne scasb al, byte es:[edi]
mov eax, dword [str.Error_detected._n_n]
mov ecx, dword [0x43bccc]
dec edi
mov dword [edi], eax
mov eax, dword [0x43bcd4]
mov dword [edi + 4], ecx
mov cx, word [0x43bcd8]
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
mov word [edi + 0x10], cx
mov al, byte [0x43f900]
test al, al
je 0x40694c
push 0x43f900
lea edx, [esp + 0x10]
push str.Library_error_message:__s_n_n
push edx
call fcn.0042d33e
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x100c]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x43f464]
test eax, eax
je 0x406997
lea eax, [esp + 0xc]
push str.Out_of_memory_error._n_n
push eax
call fcn.0042d33e
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x100c]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.alleg40.dll_Ordinal_544]
push 0x406370
call esi
push 0x406380
call esi
mov eax, dword [0x43f2b4]
add esp, 8
mov ecx, dword [eax + 0x200]
pop edi
pop esi
pop ebx
test ecx, ecx
je 0x4069c9
push eax
call fcn.004370c6
add esp, 4
push 0x10000
lea eax, [esp + 0x1004]
push str.M.U.G.E.N_Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
call sub.alleg40.dll_Ordinal_72
push 1
call fcn.0042d3bd
nop
mov edx, dword [0x43f2b4]
mov ecx, dword [esp + 4]
lea eax, [esp + 8]
add edx, 0xba4
push eax
push ecx
push edx
call fcn.0042dbef
add esp, 0xc
jmp fcn.004067e0