Function at 0x497c2c
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov ebx, ecx
add ebx, ebx
inc ebx
test ebx, ebx
js 0x497c50
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x497c49
mov edx, esp
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49802a
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
call fcn.00497be0
pop ecx
test al, al
jne 0x497c8a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov byte [eax + 0x8c], 0
mov byte [ebp - 0x15], 1
jmp 0x49800f
xor ebx, ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.0049757c
mov ecx, 0x64
cdq
idiv ecx
mov esi, eax
cmp esi, 3
jne 0x497cb8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.0049757c
cmp eax, 0x130
jne 0x497cc8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
cmp dword [eax + 0x6c], 0
je 0x497ec3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
add dword [eax + 0x118], 1
jno 0x497cdc
call fcn.00404418
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x6c]
call fcn.0040558c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
cmp byte [eax + 0x120], 0
je 0x497dd0
mov edx, dword [eax + 0x118]
cmp edx, dword [eax + 0x11c]
jge 0x497dd0
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0xb0]
call fcn.0040558c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 4]
mov eax, dword [ebx + 0x118]
push eax
lea ecx, [ebp - 0xc]
lea edx, [ebp - 8]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0xa8]
test al, al
je 0x497dba
mov byte [ebp - 0x15], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
add eax, 0xac
mov edx, dword [ebp - 8]
call fcn.00405548
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.0049757c
cmp eax, 0x12e
je 0x497d82
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.0049757c
cmp eax, 0x12f
jne 0x497da5
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0xc]
xor eax, eax
mov dword [ebx + 0xb4], eax
lea eax, [ebx + 0xb0]
mov edx, 0x49804c
call fcn.00405548
jmp 0x497e30
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
add eax, 0xb0
mov edx, dword [ebp - 0xc]
call fcn.00405548
jmp 0x497e30
push ebp
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
call fcn.00497a00
pop ecx
mov byte [ebp - 0x15], 1
jmp 0x49800f
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0xb0]
call fcn.0040558c
mov byte [ebp - 0x15], 1
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 4]
mov eax, dword [ebx + 0x118]
push eax
lea ecx, [ebp - 0xc]
lea edx, [ebp - 8]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0xa8]
test al, al
jne 0x497e1f
push ebp
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
call fcn.00497a00
pop ecx
mov byte [ebp - 0x15], 1
jmp 0x49800f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
add eax, 0x6c
mov edx, dword [ebp - 8]
call fcn.00405548
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [eax]
call dword [edx + 0x5c]
test al, al
je 0x49800f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x8c]
mov edx, dword [eax + 0xb8]
mov dword [ebp - 0x1c], edx
xor edx, edx
push ebp
push 0x497ebc
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [eax + 0xb8], 0xfa0
xor eax, eax
push ebp
push 0x497e8f
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
call fcn.00497b50
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x497e99
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49800f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x8c]
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0xb8], edx
ret
cmp esi, 2
je 0x497fd1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.0049757c
sub eax, 0x191
je 0x497ee8
sub eax, 6
je 0x497f53
jmp 0x497fbe
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 4]
mov eax, dword [ebx + 0xf0]
cmp eax, dword [ebx + 0x104]
jge 0x497f16
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0xa0]
test al, al
jne 0x497f41
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xa0]
test eax, eax
je 0x497f2b
mov edx, dword [eax]
call dword [edx + 0x20]
push ebp
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
call fcn.00497a00
pop ecx
mov byte [ebp - 0x15], 1
jmp 0x49800f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
test byte [eax + 0x121], 1
setne bl
jmp 0x497fd1
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 4]
mov eax, dword [ebx + 0xf4]
cmp eax, dword [ebx + 0x104]
jge 0x497f81
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0xa4]
test al, al
jne 0x497fac
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x12c]
mov eax, dword [eax + 4]
test eax, eax
je 0x497f99
mov edx, dword [eax]
call dword [edx + 0x20]
push ebp
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
call fcn.00497a00
pop ecx
mov byte [ebp - 0x15], 1
jmp 0x49800f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
test byte [eax + 0x121], 1
setne bl
jmp 0x497fd1
push ebp
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
call fcn.00497a00
pop ecx
mov byte [ebp - 0x15], 1
jmp 0x49800f
test bl, bl
je 0x497fe2
push ebp
call fcn.00497b50
pop ecx
mov byte [ebp - 0x15], 4
jmp 0x49800f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.0049757c
cmp eax, 0xcc
je 0x49800b
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.00495cec
mov byte [ebp - 0x15], 1
jmp 0x49800f
mov byte [ebp - 0x15], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498031
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00405518
ret