Function at 0x53f298
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov ebx, ecx
add ebx, ebx
inc ebx
test ebx, ebx
js 0x53f2bb
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x53f2b4
mov edx, esp
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x53f68c
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
call fcn.0053f244
pop ecx
test al, al
jne 0x53f308
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov byte [eax + 0xb4], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
add eax, 0x14
mov edx, 0x53f6ac
call fcn.004073bc
mov byte [ebp - 0x11], 1
jmp 0x53f671
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0053e88c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, 0x64
cdq
idiv ecx
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x21], 0
cmp dword [ebp - 0x18], 3
jne 0x53f4b0
cmp dword [ebp - 0xc], 0x130
je 0x53f4b0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [eax + 0x90], 0
jne 0x53f35e
push ebp
call fcn.0053ef0c
pop ecx
mov byte [ebp - 0x11], 1
jmp 0x53f671
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
inc dword [eax + 0x138]
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x90]
call fcn.00407404
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 8]
mov edx, dword [edx + 0xd0]
call fcn.00407404
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x138]
push eax
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov ebx, dword [eax]
call dword [ebx + 0xc4]
test al, al
jne 0x53f3c7
push ebp
call fcn.0053ef0c
pop ecx
mov byte [ebp - 0x11], 1
jmp 0x53f671
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
cmp byte [eax + 0x140], 0
je 0x53f47a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x138]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 4]
cmp eax, dword [edx + 0x13c]
jge 0x53f47a
mov byte [ebp - 0x11], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, 0xcc
mov edx, dword [ebp - 0x1c]
call fcn.004073bc
cmp dword [ebp - 0xc], 0x12e
jne 0x53f427
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
test byte [eax + 0x141], 0x40
jne 0x53f430
cmp dword [ebp - 0xc], 0x12f
jne 0x53f455
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
xor edx, edx
mov dword [eax + 0xd4], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, 0xd0
mov edx, 0x53f6c4
call fcn.004073bc
jmp 0x53f468
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, 0xd0
mov edx, dword [ebp - 0x20]
call fcn.004073bc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, 0xc4
call fcn.00406ffc
jmp 0x53f491
mov byte [ebp - 0x11], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
add eax, 0x90
mov edx, dword [ebp - 0x1c]
call fcn.004073bc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [eax]
call dword [edx + 0x74]
test al, al
je 0x53f671
push ebp
call fcn.0053f164
pop ecx
jmp 0x53f671
cmp dword [ebp - 0x18], 2
je 0x53f5fd
mov eax, dword [ebp - 0xc]
sub eax, 0x65
je 0x53f4d7
sub eax, 0x12c
je 0x53f4ed
sub eax, 6
je 0x53f56d
jmp 0x53f5f0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov byte [eax + 0xb4], 1
mov byte [ebp - 0x11], 1
jmp 0x53f671
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x110]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 4]
cmp eax, dword [edx + 0x124]
jge 0x53f525
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov ebx, dword [eax]
call dword [ebx + 0xbc]
test al, al
jne 0x53f555
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
cmp dword [eax + 0xc0], 0
je 0x53f545
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0xc0]
mov edx, dword [eax]
call dword [edx + 0x20]
push ebp
call fcn.0053ef0c
pop ecx
mov byte [ebp - 0x11], 1
jmp 0x53f671
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
test byte [eax + 0x141], 1
setne al
mov byte [ebp - 0x21], al
jmp 0x53f5fd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x114]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 4]
cmp eax, dword [edx + 0x124]
jge 0x53f5a5
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov ebx, dword [eax]
call dword [ebx + 0xc0]
test al, al
jne 0x53f5db
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x14c]
cmp dword [eax + 4], 0
je 0x53f5cb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x14c]
mov eax, dword [eax + 4]
mov edx, dword [eax]
call dword [edx + 0x20]
push ebp
call fcn.0053ef0c
pop ecx
mov byte [ebp - 0x11], 1
jmp 0x53f671
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
test byte [eax + 0x141], 1
setne al
mov byte [ebp - 0x21], al
jmp 0x53f5fd
push ebp
call fcn.0053ef0c
pop ecx
mov byte [ebp - 0x11], 1
jmp 0x53f671
cmp byte [ebp - 0x21], 0
je 0x53f610
push ebp
call fcn.0053f164
pop ecx
mov byte [ebp - 0x11], 4
jmp 0x53f671
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0xd0]
mov edx, 0x53f6d8
call fcn.004ae1f8
test al, al
jne 0x53f64d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0xc4]
mov edx, 0x53f6d8
call fcn.004ae1f8
test al, al
jne 0x53f64d
cmp dword [ebp - 0xc], 0xcc
jne 0x53f656
push ebp
call fcn.0053f164
pop ecx
jmp 0x53f66d
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.0053c2ac
mov byte [ebp - 0x11], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53f693
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.0040705c
ret