Function at 0x496c4b
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
push 1
push 0x40
push 1
push dword [ebp + 0x14]
push 0xffffffff
call fcn.004970c6
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x496ccb
cmp dword [ebp + 8], 0
jle 0x496ccb
xor eax, eax
jmp 0x496cd0
mov eax, 1
test eax, eax
je 0x496ce2
mov eax, 0
jmp 0x4970ae
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0xc], eax
jl 0x496d08
cmp dword [ebp + 0xc], 0
je 0x496d08
xor eax, eax
jmp 0x496d0d
mov eax, 1
test eax, eax
je 0x497096
push dword [ebp - 0xc]
call fcn.00497223
mov dword [ebp - 0x10], eax
push dword [ebp - 0xc]
call fcn.0046e401
and eax, 0xff
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 1
jne 0x496d6d
cmp dword [ebp + 0xc], 0
jne 0x496d6d
cmp dword [ebp - 0x14], 0xcc
jne 0x496d5b
jmp 0x497096
cmp dword [ebp - 0x14], 0x90
jne 0x496d6d
jmp 0x497096
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call fcn.0040c8ee
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 8]
call fcn.0044297f
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x496d97
push ebx
call fcn.004ee255
add esp, 4
cmp dword [ebp - 0x10], 2
jne 0x496db5
cmp dword [ebp - 0x14], 0xeb
jne 0x496db5
mov eax, 1
jmp 0x496dba
mov eax, 0
test eax, eax
je 0x496f2e
push 1
push dword [ebp - 0xc]
call fcn.0040ad4d
push eax
call fcn.0046e401
and eax, 0xff
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 5
jne 0x496e77
push 2
push dword [ebp - 0xc]
call fcn.0040ad4d
mov dword [ebp - 0x2c], eax
push 5
push dword [ebp - 0x2c]
call fcn.0040c8ee
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x496e1b
push ebx
call fcn.004ee255
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
push 2
push dword [ebp - 8]
call fcn.0040ad4d
mov dword [ebp - 0x2c], eax
push 2
push dword [ebp - 0xc]
call fcn.0040ad4d
mov dword [ebp - 0x30], eax
push 5
push dword [ebp - 0x30]
call fcn.0040c8ee
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x2c]
call fcn.0044297f
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x496e6b
push ebx
call fcn.004ee255
add esp, 4
mov dword [ebp - 0x10], 7
jmp 0x496f29
cmp dword [ebp - 0x14], 0xed
jne 0x496f29
fild dword [ebp - 0x14]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fsub qword [0x5ae885]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
call fcn.00403914
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0xc]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fild dword [ebp + 8]
fstp qword [ebp - 0x38]
fsub qword [ebp - 0x38]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
fadd qword [0x588c1b]
fstp qword [ebp - 0x48]
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x50]
fld qword [ebp - 0x48]
fsub qword [ebp - 0x50]
fcomp qword [0x5997e0]
fnstsw ax
test ah, 0x41
je 0x496f29
fild dword [ebp - 0xc]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x38]
fsub qword [ebp - 0x38]
fsub qword [0x588c23]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
call fcn.00403914
mov dword [ebp - 0xc], eax
mov eax, 0x5ae88d
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 8]
call fcn.0044297f
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x496f29
push ebx
call fcn.004ee255
add esp, 4
jmp 0x497075
cmp dword [ebp - 0x10], 5
jne 0x496fc0
cmp dword [ebp - 0x14], 0xe8
je 0x496f56
cmp dword [ebp - 0x14], 0xe9
je 0x496f56
xor eax, eax
jmp 0x496f5b
mov eax, 1
test eax, eax
je 0x496fbb
push 1
push dword [ebp - 0xc]
call fcn.0040ad4d
push eax
call fcn.0040adb9
push eax
push 5
push dword [ebp - 0xc]
call fcn.004979d5
mov dword [ebp - 0x20], eax
push 5
push dword [ebp - 8]
call fcn.0040ad4d
push eax
push dword [ebp - 0x20]
call fcn.0040428a
mov dword [ebp - 0x24], eax
push 1
push dword [ebp - 8]
call fcn.0040ad4d
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x24]
push dword [ebp - 0x2c]
call fcn.004429d2
jmp 0x497075
cmp dword [ebp - 0x10], 6
jne 0x497075
cmp dword [ebp - 0x14], 0xf
jne 0x497075
push 1
push dword [ebp - 0xc]
call fcn.0040ad4d
push eax
call fcn.0046e401
and eax, 0xff
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x80
jl 0x497010
cmp dword [ebp - 0x28], 0x8f
jg 0x497010
mov eax, 1
jmp 0x497015
mov eax, 0
test eax, eax
je 0x497075
push 2
push dword [ebp - 0xc]
call fcn.0040ad4d
push eax
call fcn.0040adb9
push eax
push 6
push dword [ebp - 0xc]
call fcn.004979d5
mov dword [ebp - 0x20], eax
push 6
push dword [ebp - 8]
call fcn.0040ad4d
push eax
push dword [ebp - 0x20]
call fcn.0040428a
mov dword [ebp - 0x24], eax
push 2
push dword [ebp - 8]
call fcn.0040ad4d
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x24]
push dword [ebp - 0x2c]
call fcn.004429d2
push dword [ebp - 0x10]
push dword [ebp - 8]
call fcn.0040ad4d
mov dword [ebp - 8], eax
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call fcn.0040ad4d
mov dword [ebp - 0xc], eax
jmp 0x496cee
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0040428a
mov ebx, dword [ebp + 0x18]
mov dword [ebx], eax
mov eax, dword [ebp - 4]
jmp 0x4970ae
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4970bf
push ebx
call fcn.004ee255
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x18