Function at 0x49a440
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov ebx, ecx
add ebx, ebx
inc ebx
test ebx, ebx
js 0x49a461
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x49a45a
mov edx, esp
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49a899
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x16], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00499b08
mov ecx, 0x64
cdq
idiv ecx
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 3
jne 0x49a4ac
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00499b08
cmp eax, 0x130
jne 0x49a4bc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
cmp dword [eax + 0x58], 0
je 0x49a6a9
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x58]
call fcn.00405000
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
cmp byte [eax + 0xf8], 0
je 0x49a5b4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0xf0]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 4]
cmp eax, dword [edx + 0xf4]
jge 0x49a5b4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov al, byte [eax + 0x98]
mov byte [ebp - 0x15], al
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0xf0]
push eax
lea ecx, [ebp - 0x15]
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov ebx, dword [eax]
call dword [ebx + 0xa4]
test al, al
je 0x49a59e
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
add eax, 0x94
mov edx, dword [ebp - 0x14]
call fcn.00404fbc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00499b08
cmp eax, 0x12e
je 0x49a56d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00499b08
cmp eax, 0x12f
jne 0x49a58d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
xor edx, edx
mov dword [eax + 0x9c], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov byte [eax + 0x98], 1
jmp 0x49a613
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dl, byte [ebp - 0x15]
mov byte [eax + 0x98], dl
jmp 0x49a613
push ebp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.0049a250
pop ecx
mov byte [ebp - 0xd], 1
jmp 0x49a883
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov al, byte [eax + 0x98]
mov byte [ebp - 0x15], al
mov byte [ebp - 0xd], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0xf0]
push eax
lea ecx, [ebp - 0x15]
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov ebx, dword [eax]
call dword [ebx + 0xa4]
test al, al
jne 0x49a602
push ebp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.0049a250
pop ecx
mov byte [ebp - 0xd], 1
jmp 0x49a883
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
add eax, 0x58
mov edx, dword [ebp - 0x14]
call fcn.00404fbc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [eax]
call dword [edx + 0x58]
test al, al
je 0x49a883
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x74]
mov eax, dword [eax + 0xa0]
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x49a6a2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x74]
mov dword [eax + 0xa0], 0xfa0
xor eax, eax
push ebp
push 0x49a678
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
call fcn.0049a3ac
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49a682
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49a883
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x74]
mov edx, dword [ebp - 0x20]
mov dword [eax + 0xa0], edx
ret
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
cmp dword [eax + 0x74], 0
je 0x49a6fa
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [eax]
call dword [edx + 0x58]
test al, al
je 0x49a6ef
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x74]
mov edx, dword [0x494a70]
call fcn.004041d8
test al, al
je 0x49a6ef
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00499950
test al, al
je 0x49a6ef
xor eax, eax
jmp 0x49a6f1
mov al, 1
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov byte [edx + 0x7c], al
cmp dword [ebp - 0x1c], 2
je 0x49a843
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00499b08
sub eax, 0x191
je 0x49a724
sub eax, 6
je 0x49a7aa
jmp 0x49a830
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0xc8]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 4]
cmp eax, dword [edx + 0xdc]
jge 0x49a75c
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov ebx, dword [eax]
call dword [ebx + 0x9c]
test al, al
jne 0x49a792
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [eax + 0x8c], 0
je 0x49a77c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x8c]
mov edx, dword [eax]
call dword [edx + 0x20]
push ebp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.0049a250
pop ecx
mov byte [ebp - 0xd], 1
jmp 0x49a883
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
test byte [eax + 0xf9], 1
setne al
mov byte [ebp - 0x16], al
jmp 0x49a843
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0xcc]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 4]
cmp eax, dword [edx + 0xdc]
jge 0x49a7e2
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov ebx, dword [eax]
call dword [ebx + 0xa0]
test al, al
jne 0x49a81b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x104]
cmp dword [eax + 4], 0
je 0x49a808
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x104]
mov eax, dword [eax + 4]
mov edx, dword [eax]
call dword [edx + 0x20]
push ebp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.0049a250
pop ecx
mov byte [ebp - 0xd], 1
jmp 0x49a883
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
test byte [eax + 0xf9], 1
setne al
mov byte [ebp - 0x16], al
jmp 0x49a843
push ebp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.0049a250
pop ecx
mov byte [ebp - 0xd], 1
jmp 0x49a883
cmp byte [ebp - 0x16], 0
je 0x49a856
push ebp
call fcn.0049a3ac
pop ecx
mov byte [ebp - 0xd], 4
jmp 0x49a883
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00499b08
cmp eax, 0xcc
je 0x49a87f
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.0049822c
mov byte [ebp - 0xd], 1
jmp 0x49a883
mov byte [ebp - 0xd], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49a8a0
lea eax, [ebp - 0x14]
call fcn.00404f68
ret