Function at 0x5221c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6c2b5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf0
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov eax, edi
mov ebx, edi
shr eax, 0x1e
and al, 1
shr ebx, 0x1f
mov byte [ebp - 0x24], bl
and edi, 0x3fffffff
mov byte [ebp - 0x28], al
call fcn.0052ca50
test al, al
jne 0x5225a2
push str._noassert
call fcn.00526aa0
add esp, 4
test al, al
je 0x522222
test bl, bl
je 0x5225a2
mov eax, dword fs:[0x2c]
mov ecx, dword [0x838428]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x805040]
cmp eax, dword [ecx + 0x480]
jg 0x5225b5
mov ecx, 0x80503c
call fcn.005276e0
test al, al
je 0x5222c7
mov ecx, 0x80503c
mov dword [ebp - 0x14], 0x80503c
call fcn.005277e0
mov esi, eax
mov ecx, 0x80503c
mov dword [ebp - 0x10], esi
inc esi
push esi
mov dword [ebp - 0x10], esi
call fcn.00527ad0
mov dword [ebp - 4], 2
lea eax, [esi - 1]
cmp esi, 1
jle 0x5222ac
mov dword [ebp - 4], 0xffffffff
mov ecx, 0x80503c
push eax
mov dword [ebp - 0x10], eax
call fcn.00527ad0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
mov ecx, 0x80503c
push eax
mov dword [ebp - 0x10], eax
call fcn.00527ad0
test bl, bl
je 0x5222d9
jmp 0x5222cf
test bl, bl
je 0x5225a2
call fcn.0052a420
call fcn.0052ca70
cmp byte [0x804c00], 0
je 0x5222e7
call fcn.0052a9e0
push dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push 0x6cd57c
push edi
push esi
push 2
call fcn.005229e0
add esp, 0x14
mov dword [ebp + 0x10], eax
call fcn.0052a300
test al, al
jne 0x522323
test bl, bl
je 0x5225a2
call fcn.0052a230
test al, al
jne 0x522323
xor eax, eax
mov dword [eax], 1
call fcn.0052a310
test al, al
jne 0x522591
push 1
call fcn.0052ca60
add esp, 4
cmp byte [0x804c00], 0
je 0x52237b
push 1
lea eax, [ebp - 0xfc]
mov dword [ebp - 0x5c], 0
push 6
push eax
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
call fcn.0052ab50
push 1
lea eax, [ebp - 0xfc]
push 1
push eax
call fcn.0052acf0
add esp, 0x18
test bl, bl
je 0x52238a
mov eax, dword [0x804be8]
test eax, eax
je 0x52238a
call eax
mov eax, dword [0x804bec]
test eax, eax
je 0x522395
call eax
cmp dword [ebp + 0x10], 0
jne 0x52244d
push str.DONT_BREAK_ON_ASSERT
call fcn.00544105
add esp, 4
test eax, eax
jne 0x5223f0
call fcn.0052ca80
test al, al
je 0x5223f0
push dword [ebp + 8]
push edi
push esi
call fcn.0052c870
add esp, 0xc
test al, al
je 0x5223f0
cmp byte [0x805044], 0
jne 0x5223f0
push 0
call fcn.0052ca60
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
test bl, bl
je 0x52244d
push 0x71ec90
push edi
push esi
push 2
call fcn.005229e0
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x52242a
mov ecx, dword [ebp + 8]
test ecx, ecx
push 1
push eax
push edi
mov eax, str.Fatal_assert
cmovne eax, ecx
push esi
push eax
call fcn.0052a4c0
add esp, 0x14
push str._ExitOnFatalAssert_n
push 1
push str.console
call fcn.00522990
add esp, 0xc
push 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
call fcn.00522100
lea ecx, [ebp - 0x18]
mov dword [ebp + 0x10], eax
push ecx
lea ecx, [ebp - 0x40]
push ecx
mov ecx, eax
call fcn.00521f10
mov ebx, dword [ebp - 0x38]
cmp byte [ebx + 0xd], 0
jne 0x522489
cmp edi, dword [ebx + 0x14]
jne 0x522482
cmp esi, dword [ebx + 0x10]
setb al
test al, al
je 0x52248e
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
call fcn.00522100
cmp ebx, dword [eax]
jne 0x522585
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x522585
push eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], edi
call fcn.0054fd16
add esp, 4
mov dword [ebp - 0x2c], eax
call fcn.00522100
mov ebx, eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x4c]
mov ecx, ebx
push eax
call fcn.00521f10
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + 4]
mov dword [ebp + 0x10], ecx
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
jne 0x5224f4
cmp edi, dword [ecx + 0x14]
jne 0x5224ed
cmp esi, dword [ecx + 0x10]
setb al
test al, al
je 0x522572
cmp dword [ebx + 4], 0x9249249
je 0x522607
mov esi, dword [ebx]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 3
push 0x1c
mov dword [ebp - 0x1c], 0
call fcn.0053837d
add esp, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 4
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 0x14], edi
mov dword [eax + 0x18], ecx
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov word [eax + 0xc], 0
mov dword [ebp - 4], 5
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, ebx
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call fcn.00521570
mov esi, dword [ebp + 0xc]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push edi
push esi
push dword [ebp + 8]
call fcn.0052a4c0
add esp, 0x14
push 0
call fcn.0052ca60
add esp, 4
jmp 0x52259d
test bl, bl
je 0x52259d
xor eax, eax
mov dword [eax], 1
call fcn.0052a480
mov ecx, dword [ebp - 0xc]
mov al, 1
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x805040
call fcn.00538861
add esp, 4
cmp dword [0x805040], 0xffffffff
jne 0x522242
mov dword [ebp - 4], 0
mov ecx, 0x80503c
call fcn.005273a0
mov byte [ebp - 4], 0
push 0x6cb8c0
call fcn.00538613
mov dword [ebp - 4], 0xffffffff
push 0x805040
call fcn.00538817
add esp, 8
jmp 0x522242
call fcn.0047d930
int3