Function at 0x5af897
Capabilities:
Check for trap flag exception

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ce210
push 0x5b5b00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffff8c8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov byte [ebp - 0x20], 1
push 0x5aebeb
call fcn.005b59db
add esp, 4
mov eax, dword [0x5cb254]
xor eax, dword [0x5cb270]
push eax
call dword [0x5cb050]
push eax
push 0x5cb4c0
lea ecx, [ebp - 0x124]
push ecx
call fcn.005b5901
add esp, 0x10
lea edx, [ebp - 0x124]
push edx
push 0
push 0x1f0001
call dword [0x5cb04c]
test eax, eax
je 0x5af914
mov byte [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
and eax, 0xff
test eax, eax
je 0x5afabb
mov ecx, dword [0x5cb28c]
xor ecx, dword [0x5cb248]
xor ecx, dword [0x5cb25c]
and ecx, 0x20
test ecx, ecx
je 0x5afabb
mov edx, dword [0x5cb244]
xor edx, dword [0x5cb26c]
xor edx, dword [0x5cb254]
push edx
push 0x5cb4cc
lea eax, [ebp - 0x124]
push eax
call fcn.005b5901
add esp, 0xc
lea ecx, [ebp - 0x124]
push ecx
push 0
push 0
call dword [0x5cb048]
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
je 0x5afabb
call dword [0x5cb144]
cmp eax, 0xb7
jne 0x5afabb
push 0x7530
mov edx, dword [ebp - 0x128]
push edx
call dword [0x5cb044]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
je 0x5af9ce
cmp dword [ebp - 0x12c], 0x80
jne 0x5afab1
mov eax, dword [0x5cb244]
xor eax, dword [0x5cb26c]
xor eax, dword [0x5cb254]
push eax
push 0x5cb4d4
lea ecx, [ebp - 0x124]
push ecx
call fcn.005b5901
add esp, 0xc
mov dword [ebp - 0x134], 0
jmp 0x5afa0f
mov edx, dword [ebp - 0x134]
add edx, 1
mov dword [ebp - 0x134], edx
cmp dword [ebp - 0x134], 0x12c
jge 0x5afa48
lea eax, [ebp - 0x124]
push eax
push 0x5cb4dc
call dword [0x5cb1dc]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
je 0x5afa3e
jmp 0x5afa48
push 0x64
call dword [0x5cb040]
jmp 0x5afa00
cmp dword [ebp - 0x130], 0
je 0x5afaa4
mov ecx, dword [0x5cb244]
xor ecx, dword [0x5cb26c]
xor ecx, dword [0x5cb254]
mov dword [ebp - 0x140], ecx
mov edx, dword [0x5ce710]
push edx
call fcn.005b5960
add esp, 4
add eax, 1
mov dword [ebp - 0x13c], eax
mov eax, dword [0x5ce710]
mov dword [ebp - 0x138], eax
lea ecx, [ebp - 0x140]
push ecx
push 0
push 0x4a
mov edx, dword [ebp - 0x130]
push edx
call dword [0x5cb1e0]
mov eax, dword [ebp - 0x128]
push eax
call dword [0x5cb03c]
mov eax, 1
jmp 0x5afef2
push 1
call fcn.005aff03
add esp, 4
mov ecx, dword [ebp - 0x20]
and ecx, 0xff
test ecx, ecx
je 0x5afca4
mov edx, dword [0x5cb28c]
xor edx, dword [0x5cb248]
xor edx, dword [0x5cb25c]
and edx, 0x40
test edx, edx
jne 0x5afca4
push 0x200
lea eax, [ebp - 0x340]
push eax
push 0x5cb4e8
call dword [0x5cb038]
test eax, eax
jne 0x5afca4
push 0xc8
push 0x23
lea ecx, [ebp - 0x340]
push ecx
call fcn.005b5770
add esp, 0xc
mov byte [ebp - 0x278], 0
mov dword [ebp - 0x444], 1
jmp 0x5afb4a
mov edx, dword [ebp - 0x444]
add edx, 1
mov dword [ebp - 0x444], edx
cmp dword [ebp - 0x444], 0x40
jg 0x5afb84
mov eax, dword [ebp - 0x444]
push eax
push 0x5cb4f0
lea ecx, [ebp - 0x440]
push ecx
call fcn.005b5901
add esp, 0xc
lea edx, [ebp - 0x340]
push edx
lea eax, [ebp - 0x440]
push eax
call dword [0x5cb034]
jmp 0x5afb3b
mov ecx, dword [0x5cb28c]
xor ecx, dword [0x5cb248]
xor ecx, dword [0x5cb25c]
and ecx, 0x10
test ecx, ecx
jne 0x5afca4
lea edx, [ebp - 0x59c]
push edx
call dword [0x5cb030]
mov al, byte [0x5cea48]
mov byte [ebp - 0x6a0], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x69f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov cl, byte [0x5cea4c]
mov byte [ebp - 0x558], cl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x557]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp dword [0x5ce708], 1
jne 0x5afc1f
cmp dword [ebp - 0x590], 0
jne 0x5afc1f
lea edx, [ebp - 0x6a0]
push edx
call fcn.005b1432
add esp, 4
and eax, 0xff
test eax, eax
je 0x5afc1f
lea eax, [ebp - 0x6a0]
mov dword [ebp - 0x590], eax
push 0x104
lea ecx, [ebp - 0x558]
push ecx
push 0
call dword [0x5cb02c]
test eax, eax
jne 0x5afc3e
xor eax, eax
jmp 0x5afef2
lea edx, [ebp - 0x454]
push edx
lea eax, [ebp - 0x59c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
call dword [0x5cb0b0]
push eax
lea ecx, [ebp - 0x558]
push ecx
call dword [0x5cb130]
test eax, eax
jne 0x5afc9a
mov dword [0x5ce93c], 6
call dword [0x5cb144]
push eax
push 0x5cb4f8
push 0x5ce940
call fcn.005b5901
add esp, 0xc
xor eax, eax
jmp 0x5afef2
mov eax, 1
jmp 0x5afef2
mov edx, dword [0x5cb28c]
xor edx, dword [0x5cb248]
xor edx, dword [0x5cb25c]
and edx, 0x10
test edx, edx
je 0x5afe86
mov eax, dword [0x5cb254]
xor eax, dword [0x5cb270]
push eax
call dword [0x5cb050]
push eax
push 0x5cb518
lea ecx, [ebp - 0x124]
push ecx
call fcn.005b5901
add esp, 0x10
lea edx, [ebp - 0x124]
push edx
push 0
push 0x1f0001
call dword [0x5cb04c]
test eax, eax
jne 0x5afe86
push 1
call dword [0x5cb134]
push eax
call dword [0x5cb138]
mov byte [ebp - 0x6a4], 0
push 0x5cb524
call dword [0x5cb140]
mov dword [ebp - 0x6a8], eax
cmp dword [ebp - 0x6a8], 0
je 0x5afd66
push 0x5cb530
mov eax, dword [ebp - 0x6a8]
push eax
call dword [0x5cb148]
mov dword [ebp - 0x740], eax
cmp dword [ebp - 0x740], 0
je 0x5afd66
call dword [ebp - 0x740]
test eax, eax
je 0x5afd66
mov byte [ebp - 0x6a4], 1
mov dword [ebp - 0x73c], 0x94
lea ecx, [ebp - 0x73c]
push ecx
call dword [0x5cb13c]
cmp dword [ebp - 0x72c], 2
je 0x5afdf3
mov byte [ebp - 0x744], 0
mov dword [ebp - 4], 0
pushf
pop eax
or eax, 0x100
push eax
popf
nop
mov dword [ebp - 4], 0xffffffff
jmp 0x5afddc
mov edx, dword [ebp - 0x744]
and edx, 0xff
test edx, edx
jne 0x5afdf3
mov byte [0x5ceaa4], 1
mov eax, dword [ebp - 0x6a4]
and eax, 0xff
test eax, eax
je 0x5afe30
call dword [0x5cb050]
push eax
push 0x5cb544
lea ecx, [ebp - 0x124]
push ecx
call fcn.005b5901
add esp, 0xc
lea edx, [ebp - 0x124]
push edx
push 0
push 0
call dword [0x5cb048]
jmp 0x5afe86
xor eax, eax
cmp dword [0x5ce708], 0
sete al
push eax
call fcn.005b16ed
add esp, 4
and eax, 0xff
test eax, eax
jne 0x5afe75
mov dword [0x5ce93c], 6
call dword [0x5cb144]
push eax
push 0x5cb54c
push 0x5ce940
call fcn.005b5901
add esp, 0xc
xor eax, eax
jmp 0x5afef2
push 0
call fcn.005aff03
add esp, 4
mov eax, 1
jmp 0x5afef2
call fcn.005aec1a
mov dword [ebp - 0x1c], eax
push 0
call fcn.005aff03
add esp, 4
push 0
call fcn.005b59db
add esp, 4
cmp dword [ebp - 0x1c], 1
jne 0x5afeb9
push 0x5ce708
call dword [0x5ce730]
add esp, 4
mov dword [ebp - 0x1c], eax
push 0x5aebeb
call fcn.005b59db
add esp, 4
cmp dword [0x5ce72c], 0
je 0x5afed5
call dword [0x5ce72c]
cmp dword [0x5ce938], 0
je 0x5afeef
push 0
push 0
mov ecx, dword [0x5ce934]
push ecx
call dword [0x5ce938]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret