Function at 0x541ff0
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 0x542013
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x54200c
mov edx, esp
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5423e4
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
call fcn.00541f9c
pop ecx
test al, al
jne 0x542060
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, 0x542404
call fcn.0040754c
mov byte [ebp - 0x11], 1
jmp 0x5423c9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.005415e4
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 0x542208
cmp dword [ebp - 0xc], 0x130
je 0x542208
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [eax + 0x90], 0
jne 0x5420b6
push ebp
call fcn.00541c64
pop ecx
mov byte [ebp - 0x11], 1
jmp 0x5423c9
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.00407594
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 8]
mov edx, dword [edx + 0xd0]
call fcn.00407594
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 0x54211f
push ebp
call fcn.00541c64
pop ecx
mov byte [ebp - 0x11], 1
jmp 0x5423c9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
cmp byte [eax + 0x140], 0
je 0x5421d2
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 0x5421d2
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.0040754c
cmp dword [ebp - 0xc], 0x12e
jne 0x54217f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
test byte [eax + 0x141], 0x40
jne 0x542188
cmp dword [ebp - 0xc], 0x12f
jne 0x5421ad
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, 0x54241c
call fcn.0040754c
jmp 0x5421c0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, 0xd0
mov edx, dword [ebp - 0x20]
call fcn.0040754c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, 0xc4
call fcn.0040716c
jmp 0x5421e9
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.0040754c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [eax]
call dword [edx + 0x74]
test al, al
je 0x5423c9
push ebp
call fcn.00541ebc
pop ecx
jmp 0x5423c9
cmp dword [ebp - 0x18], 2
je 0x542355
mov eax, dword [ebp - 0xc]
sub eax, 0x65
je 0x54222f
sub eax, 0x12c
je 0x542245
sub eax, 6
je 0x5422c5
jmp 0x542348
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov byte [eax + 0xb4], 1
mov byte [ebp - 0x11], 1
jmp 0x5423c9
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 0x54227d
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 0x5422ad
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
cmp dword [eax + 0xc0], 0
je 0x54229d
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.00541c64
pop ecx
mov byte [ebp - 0x11], 1
jmp 0x5423c9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
test byte [eax + 0x141], 1
setne al
mov byte [ebp - 0x21], al
jmp 0x542355
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 0x5422fd
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 0x542333
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x14c]
cmp dword [eax + 4], 0
je 0x542323
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.00541c64
pop ecx
mov byte [ebp - 0x11], 1
jmp 0x5423c9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
test byte [eax + 0x141], 1
setne al
mov byte [ebp - 0x21], al
jmp 0x542355
push ebp
call fcn.00541c64
pop ecx
mov byte [ebp - 0x11], 1
jmp 0x5423c9
cmp byte [ebp - 0x21], 0
je 0x542368
push ebp
call fcn.00541ebc
pop ecx
mov byte [ebp - 0x11], 4
jmp 0x5423c9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0xd0]
mov edx, 0x542430
call fcn.004b3f0c
test al, al
jne 0x5423a5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0xc4]
mov edx, 0x542430
call fcn.004b3f0c
test al, al
jne 0x5423a5
cmp dword [ebp - 0xc], 0xcc
jne 0x5423ae
push ebp
call fcn.00541ebc
pop ecx
jmp 0x5423c5
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.0053f004
mov byte [ebp - 0x11], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5423eb
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004071cc
ret