Function at 0x401990
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov eax, dword [0x446458]
push ebx
push ebp
xor ebp, ebp
xor ebx, ebx
push esi
cmp eax, ebp
push edi
mov dword [esp + 0x14], ebp
jle 0x401bcc
mov eax, dword [0x44646c]
test ebp, ebp
lea esi, [eax + ebp]
jl 0x401bbb
cmp ebx, dword [0x44645c]
jge 0x401bbb
mov edx, dword [0x446460]
mov ecx, ebx
and ecx, 0x1f
mov eax, 1
shl eax, cl
mov ecx, ebx
shr ecx, 5
lea ecx, [edx + ecx*4]
mov edx, dword [ecx]
test eax, edx
je 0x401bbb
test ebp, ebp
jl 0x4019fc
not eax
and eax, edx
mov dword [ecx], eax
lea eax, [esp + 0x20]
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x1a]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
lea edx, [esp + 0x28]
push 0x39
push edx
push esi
call fcn.00404fe0
mov edi, eax
add esp, 0x20
test edi, edi
je 0x401a3f
push ebx
call fcn.00401cd0
push edi
call fcn.00401140
add esp, 8
jmp 0x401bbb
mov eax, dword [0x4200b8]
test eax, eax
jle 0x401a6c
mov eax, dword [0x446218]
mov ecx, dword [esi + 0x1c]
sub eax, ecx
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fmul qword [0x4466e0]
fadd qword [0x4200b0]
fadd qword [esi + 0x60]
fstp qword [esi + 0x60]
mov ecx, dword [0x446218]
mov dword [esi], 0x192
mov dword [esi + 0x1c], ecx
mov ecx, dword [esi + 4]
mov edx, dword [0x446224]
lea eax, [ecx + ecx*4]
lea eax, [eax + eax*8]
lea eax, [eax + eax*8]
shl eax, 1
sub eax, ecx
lea edx, [edx + eax*2]
mov edi, dword [eax + edx + 0xcd]
test edi, edi
jne 0x401aa8
push ecx
call fcn.00401de0
add esp, 4
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x401b78
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x10]
cmp ecx, eax
je 0x401ac2
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x14]
cmp ecx, eax
jae 0x401ad0
mov dword [esi + 0x14], eax
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x401b78
cmp word [esp + 0x10], cx
jne 0x401b78
mov eax, dword [esi + 8]
lea ecx, [eax + eax*2]
lea edx, [eax + ecx*4]
mov eax, dword [0x446520]
mov ecx, dword [eax + edx*2]
lea eax, [eax + edx*2]
cmp ecx, 0xcc
jne 0x401b09
mov dword [eax], 0xca
mov cx, word [esp + 0x12]
mov eax, dword [esi + 8]
neg cx
lea edx, [eax + eax*2]
sbb ecx, ecx
and ecx, 0xfffffffe
lea eax, [eax + edx*4]
mov edx, dword [0x446520]
add ecx, 0x12f
mov word [edx + eax*2 + 4], cx
mov eax, dword [esi + 8]
lea ecx, [eax + eax*2]
lea edx, [eax + ecx*4]
mov eax, dword [0x446520]
mov ecx, dword [esp + 0x24]
lea eax, [eax + edx*2 + 0x16]
cmp dword [eax], ecx
je 0x401b4c
mov dword [eax], ecx
mov eax, dword [0x4200b8]
test eax, eax
jle 0x401baa
fild dword [0x4200b8]
fcomp qword [esi + 0x60]
fnstsw ax
test ah, 1
je 0x401baa
push 1
push ebx
call fcn.00401be0
push ebx
call fcn.00401cd0
add esp, 0xc
jmp 0x401baa
mov eax, dword [esi + 8]
mov edi, dword [0x446520]
lea edx, [eax + eax*2]
lea edx, [eax + edx*4]
mov edx, dword [edi + edx*2 + 6]
mov edi, dword [esi + 0xc]
cmp edx, edi
jne 0x401ba1
test ecx, ecx
sete cl
push ecx
push eax
call fcn.00401e90
add esp, 8
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x401bbb
push eax
call fcn.00401140
add esp, 4
mov eax, dword [0x446458]
inc ebx
add ebp, 0x68
cmp ebx, eax
jl 0x4019b2
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret