Function at 0x4ac7f5
Capabilities:
Check for trap flag exception

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bb5b0
push 0x4b1434
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
mov eax, dword [0x4b8258]
xor eax, dword [0x4b8238]
push eax
call dword [0x4b8050]
push eax
push 0x4b8450
lea ecx, [ebp - 0x124]
push ecx
call fcn.004b125f
add esp, 0x10
lea edx, [ebp - 0x124]
push edx
push 0
push 0x1f0001
call dword [0x4b804c]
test eax, eax
je 0x4ac865
mov byte [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
and eax, 0xff
test eax, eax
je 0x4aca0c
mov ecx, dword [0x4b8250]
xor ecx, dword [0x4b8244]
xor ecx, dword [0x4b8268]
and ecx, 0x20
test ecx, ecx
je 0x4aca0c
mov edx, dword [0x4b8228]
xor edx, dword [0x4b823c]
xor edx, dword [0x4b8258]
push edx
push 0x4b845c
lea eax, [ebp - 0x124]
push eax
call fcn.004b125f
add esp, 0xc
lea ecx, [ebp - 0x124]
push ecx
push 0
push 0
call dword [0x4b8048]
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
je 0x4aca0c
call dword [0x4b8140]
cmp eax, 0xb7
jne 0x4aca0c
push 0x7530
mov edx, dword [ebp - 0x128]
push edx
call dword [0x4b8044]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
je 0x4ac91f
cmp dword [ebp - 0x12c], 0x80
jne 0x4aca02
mov eax, dword [0x4b8228]
xor eax, dword [0x4b823c]
xor eax, dword [0x4b8258]
push eax
push 0x4b8464
lea ecx, [ebp - 0x124]
push ecx
call fcn.004b125f
add esp, 0xc
mov dword [ebp - 0x134], 0
jmp 0x4ac960
mov edx, dword [ebp - 0x134]
add edx, 1
mov dword [ebp - 0x134], edx
cmp dword [ebp - 0x134], 0x12c
jge 0x4ac999
lea eax, [ebp - 0x124]
push eax
push 0x4b846c
call dword [0x4b81dc]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
je 0x4ac98f
jmp 0x4ac999
push 0x64
call dword [0x4b8040]
jmp 0x4ac951
cmp dword [ebp - 0x130], 0
je 0x4ac9f5
mov ecx, dword [0x4b8228]
xor ecx, dword [0x4b823c]
xor ecx, dword [0x4b8258]
mov dword [ebp - 0x140], ecx
mov edx, dword [0x4bba78]
push edx
call fcn.004b12c0
add esp, 4
add eax, 1
mov dword [ebp - 0x13c], eax
mov eax, dword [0x4bba78]
mov dword [ebp - 0x138], eax
lea ecx, [ebp - 0x140]
push ecx
push 0
push 0x4a
mov edx, dword [ebp - 0x130]
push edx
call dword [0x4b81e0]
mov eax, dword [ebp - 0x128]
push eax
call dword [0x4b803c]
mov eax, 1
jmp 0x4ace1a
push 1
call fcn.004ace2b
add esp, 4
mov ecx, dword [ebp - 0x20]
and ecx, 0xff
test ecx, ecx
je 0x4acbf5
mov edx, dword [0x4b8250]
xor edx, dword [0x4b8244]
xor edx, dword [0x4b8268]
and edx, 0x40
test edx, edx
jne 0x4acbf5
push 0x200
lea eax, [ebp - 0x340]
push eax
push 0x4b8478
call dword [0x4b8038]
test eax, eax
jne 0x4acbf5
push 0xc8
push 0x23
lea ecx, [ebp - 0x340]
push ecx
call fcn.004b11d0
add esp, 0xc
mov byte [ebp - 0x278], 0
mov dword [ebp - 0x444], 1
jmp 0x4aca9b
mov edx, dword [ebp - 0x444]
add edx, 1
mov dword [ebp - 0x444], edx
cmp dword [ebp - 0x444], 0x40
jg 0x4acad5
mov eax, dword [ebp - 0x444]
push eax
push 0x4b8480
lea ecx, [ebp - 0x440]
push ecx
call fcn.004b125f
add esp, 0xc
lea edx, [ebp - 0x340]
push edx
lea eax, [ebp - 0x440]
push eax
call dword [0x4b8034]
jmp 0x4aca8c
mov ecx, dword [0x4b8250]
xor ecx, dword [0x4b8244]
xor ecx, dword [0x4b8268]
and ecx, 0x10
test ecx, ecx
jne 0x4acbf5
lea edx, [ebp - 0x59c]
push edx
call dword [0x4b8030]
mov al, byte [0x4bbdb0]
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 [0x4bbdb4]
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 [0x4bba70], 1
jne 0x4acb70
cmp dword [ebp - 0x590], 0
jne 0x4acb70
lea edx, [ebp - 0x6a0]
push edx
call fcn.004ae2e2
add esp, 4
and eax, 0xff
test eax, eax
je 0x4acb70
lea eax, [ebp - 0x6a0]
mov dword [ebp - 0x590], eax
push 0x104
lea ecx, [ebp - 0x558]
push ecx
push 0
call dword [0x4b802c]
test eax, eax
jne 0x4acb8f
xor eax, eax
jmp 0x4ace1a
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 [0x4b80ac]
push eax
lea ecx, [ebp - 0x558]
push ecx
call dword [0x4b812c]
test eax, eax
jne 0x4acbeb
mov dword [0x4bbca4], 6
call dword [0x4b8140]
push eax
push 0x4b8488
push 0x4bbca8
call fcn.004b125f
add esp, 0xc
xor eax, eax
jmp 0x4ace1a
mov eax, 1
jmp 0x4ace1a
mov edx, dword [0x4b8250]
xor edx, dword [0x4b8244]
xor edx, dword [0x4b8268]
and edx, 0x10
test edx, edx
je 0x4acdd7
mov eax, dword [0x4b8258]
xor eax, dword [0x4b8238]
push eax
call dword [0x4b8050]
push eax
push 0x4b84a8
lea ecx, [ebp - 0x124]
push ecx
call fcn.004b125f
add esp, 0x10
lea edx, [ebp - 0x124]
push edx
push 0
push 0x1f0001
call dword [0x4b804c]
test eax, eax
jne 0x4acdd7
push 1
call dword [0x4b8130]
push eax
call dword [0x4b8134]
mov byte [ebp - 0x6a4], 0
push 0x4b84b4
call dword [0x4b813c]
mov dword [ebp - 0x6a8], eax
cmp dword [ebp - 0x6a8], 0
je 0x4accb7
push 0x4b84c0
mov eax, dword [ebp - 0x6a8]
push eax
call dword [0x4b8144]
mov dword [ebp - 0x740], eax
cmp dword [ebp - 0x740], 0
je 0x4accb7
call dword [ebp - 0x740]
test eax, eax
je 0x4accb7
mov byte [ebp - 0x6a4], 1
mov dword [ebp - 0x73c], 0x94
lea ecx, [ebp - 0x73c]
push ecx
call dword [0x4b8138]
cmp dword [ebp - 0x72c], 2
je 0x4acd44
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 0x4acd2d
mov edx, dword [ebp - 0x744]
and edx, 0xff
test edx, edx
jne 0x4acd44
mov byte [0x4bbdf4], 1
mov eax, dword [ebp - 0x6a4]
and eax, 0xff
test eax, eax
je 0x4acd81
call dword [0x4b8050]
push eax
push 0x4b84d4
lea ecx, [ebp - 0x124]
push ecx
call fcn.004b125f
add esp, 0xc
lea edx, [ebp - 0x124]
push edx
push 0
push 0
call dword [0x4b8048]
jmp 0x4acdd7
xor eax, eax
cmp dword [0x4bba70], 0
sete al
push eax
call fcn.004ae550
add esp, 4
and eax, 0xff
test eax, eax
jne 0x4acdc6
mov dword [0x4bbca4], 6
call dword [0x4b8140]
push eax
push 0x4b84dc
push 0x4bbca8
call fcn.004b125f
add esp, 0xc
xor eax, eax
jmp 0x4ace1a
push 0
call fcn.004ace2b
add esp, 4
mov eax, 1
jmp 0x4ace1a
call fcn.004abbad
mov dword [ebp - 0x1c], eax
push 0
call fcn.004ace2b
add esp, 4
cmp dword [ebp - 0x1c], 1
jne 0x4ace00
push 0x4bba70
call dword [0x4bba98]
add esp, 4
mov dword [ebp - 0x1c], eax
call dword [0x4bba94]
push 0
push 0
mov ecx, dword [0x4bbc9c]
push ecx
call dword [0x4bbca0]
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