Function at 0x40400e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x2d758
call fcn.004b68c0
push esi
call fcn.004031c0
mov ecx, dword [0x5b7630]
xor esi, esi
cmp eax, ecx
mov dword [esp + 4], esi
jne 0x403fe4
mov al, byte [esp + 0x2d760]
test al, al
jne 0x4057f3
push str.BOA_vis_table_already_computed.
call fcn.004cd2a0
add esp, 4
pop esi
add esp, 0x2d758
ret
push ebx
push ebp
push edi
push str.Computing_BOA
push esi
push esi
mov dword [0x5b762c], esi
mov dword [0x5b7630], esi
call fcn.00403e00
push esi
push 1
push esi
call fcn.00403e00
call fcn.00405b60
push esi
push 2
push 0x42c80000
call fcn.00403e00
mov eax, dword [0x54bfa0]
add esp, 0x24
add eax, 8
cmp eax, esi
mov dword [esp + 0x14], eax
jl 0x4040a4
mov ebx, 0x555888
lea edi, [esp + 0x4d28]
mov edx, ebx
lea ecx, [eax + 1]
mov dword [esp + 0x48], edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x38], ecx
test eax, eax
jl 0x404073
lea esi, [eax + 1]
or eax, 0xffffffff
mov ecx, esi
mov ebp, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebp
and ecx, 3
rep stosb byte es:[edi], al
and word [edx], 0xfbff
add edx, 2
dec esi
jne 0x404064
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x48]
or byte [ebx + 1], 4
mov ecx, dword [esp + 0x38]
add edi, 0x198
add edx, 0x330
add ebx, 0x332
dec ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x48], edx
mov dword [esp + 0x38], ecx
jne 0x40404a
push str.Computing_BOA_Vis._Table
push 0
push 0
call fcn.00403e00
mov ebp, dword [0x54bfa0]
add esp, 0xc
xor eax, eax
test ebp, ebp
mov dword [esp + 0x18], eax
jl 0x4057b4
jmp 0x4040cf
mov eax, dword [esp + 0x18]
lea ecx, [eax + eax*2]
lea eax, [eax + ecx*4]
shl eax, 4
mov cl, byte [eax + 0xfdbb4f]
test cl, cl
je 0x40574c
mov ebx, dword [esp + 0x18]
inc ebp
push 0
push 1
lea edx, [ebx + 1]
push ecx
mov dword [esp + 0x20], edx
lea esi, [eax + 0xfdba80]
fild dword [esp + 0x20]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], esi
fidiv dword [esp + 0x20]
fstp dword [esp]
call fcn.00403e00
mov al, byte [esi]
add esp, 0xc
test al, 4
jne 0x405746
mov ecx, 0x66
xor eax, eax
lea edi, [esp + 0x2a4]
mov dword [esp + 0x5c], eax
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 8]
mov byte [esp + ebx + 0x2a4], 1
cmp ecx, eax
jle 0x404275
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0x24]
movsx esi, word [ecx + eax + 6]
test esi, esi
jl 0x404250
mov ecx, dword [esp + 0x18]
lea edx, [esi + esi*2]
mov eax, ecx
mov byte [esp + esi + 0x2a4], 1
shl eax, 4
add eax, ecx
lea edi, [eax + eax*2]
shl edi, 3
lea eax, [edi + esi]
lea esi, [esi + edx*4]
shl esi, 4
or byte [eax*2 + 0x555889], 4
test byte [esi + 0xfdba80], 4
je 0x404250
mov ebp, dword [0x54bfa0]
xor ebx, ebx
lea eax, [edi + ebp]
or byte [eax*2 + 0x55588b], 4
mov eax, dword [esi + 0xfdba88]
test eax, eax
jle 0x40420b
xor ebp, ebp
mov eax, dword [esi + 0xfdba94]
lea ecx, [eax + ebp + 0x10]
push ecx
call fcn.004ae740
mov ecx, dword [0x54bfa0]
and eax, 0x7fffffff
add esp, 4
add ebp, 0x1c
lea edx, [eax + eax*4]
xor eax, eax
mov al, byte [edx*4 + 0x106bcb0]
lea edx, [edi + ecx]
shr eax, 5
add edx, eax
or byte [edx*2 + 0x55588b], 4
lea eax, [edx*2 + 0x55588a]
mov eax, dword [esi + 0xfdba88]
inc ebx
cmp ebx, eax
jl 0x4041ba
mov ebp, ecx
xor eax, eax
test ebp, ebp
jl 0x404250
mov esi, dword [esp + 0x10]
mov ecx, 0xfdba80
lea edx, [esp + esi*4 + 0xea8]
mov bl, byte [ecx + 0xcf]
test bl, bl
je 0x404241
test byte [ecx], 4
je 0x404241
mov bl, byte [esp + eax + 0x2a4]
test bl, bl
jne 0x404241
mov dword [edx], eax
inc esi
add edx, 4
inc eax
add ecx, 0xd0
cmp eax, ebp
jle 0x404221
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x5c]
mov esi, dword [esp + 0x24]
inc eax
mov edx, dword [ecx + 8]
add esi, 0x1c
mov dword [esp + 0x24], esi
cmp eax, edx
mov dword [esp + 0x5c], eax
mov esi, ecx
jl 0x40414d
mov ebx, dword [esi + 8]
test ebx, ebx
mov dword [esp + 0x14], ebx
jle 0x4043a6
mov esi, dword [esi + 0x14]
mov edi, dword [esp + 0x10]
add esi, 6
mov ebp, ebx
movsx eax, word [esi]
lea edx, [eax + eax*2]
lea eax, [eax + edx*4]
shl eax, 4
mov ecx, dword [eax + 0xfdba88]
test ecx, ecx
jle 0x4042d9
mov eax, dword [eax + 0xfdba94]
lea edx, [esp + edi*4 + 0xea8]
add eax, 6
mov ebx, ecx
movsx ecx, word [eax]
test ecx, ecx
jl 0x4042cf
cmp byte [esp + ecx + 0x2a4], 0
jne 0x4042cf
mov dword [edx], ecx
inc edi
add edx, 4
add eax, 0x1c
dec ebx
jne 0x4042b8
mov ebx, dword [esp + 0x14]
add esi, 0x1c
dec ebp
jne 0x404290
mov dword [esp + 0x10], edi
test edi, edi
jle 0x405746
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
mov ebp, dword [esp + eax*4 + 0xea8]
lea esi, [esp + eax*4 + 0xea8]
mov dword [esp + 0x24], ebp
mov al, byte [esp + ebp + 0x2a4]
test al, al
jne 0x40573a
mov edx, dword [esp + 0x18]
mov eax, ebp
shl eax, 4
add eax, ebp
mov byte [esp + ebp + 0x2a4], 1
lea eax, [eax + eax*2]
lea ecx, [edx + eax*8]
mov cl, byte [esp + ecx + 0x4d28]
cmp cl, 0xff
je 0x4043af
mov eax, edx
shl eax, 4
add eax, edx
lea eax, [eax + eax*2]
shl eax, 3
cmp cl, 1
lea edx, [eax + ebp]
mov byte [esp + edx + 0x4d28], cl
jne 0x40573a
add eax, ebp
or byte [eax*2 + 0x555889], 4
lea eax, [ebp + ebp*2]
lea eax, [ebp + eax*4]
shl eax, 4
mov ecx, dword [eax + 0xfdba88]
test ecx, ecx
jle 0x40573a
mov eax, dword [eax + 0xfdba94]
mov edi, dword [esp + 0x10]
add eax, 6
movsx edx, word [eax]
test edx, edx
jl 0x404397
mov dword [esi], edx
inc edi
add esi, 4
add eax, 0x1c
dec ecx
jne 0x40438a
mov dword [esp + 0x10], edi
jmp 0x40573a
mov edi, dword [esp + 0x10]
jmp 0x4042e3
xor eax, eax
cmp ebx, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x5c], eax
jle 0x405720
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x40573a
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x64]
mov edx, dword [ecx + 0x14]
movsx eax, word [edx + eax + 4]
lea edx, [eax*8]
sub edx, eax
mov eax, dword [ecx + 0x10]
mov cl, byte [eax + edx*8 + 2]
lea esi, [eax + edx*8]
xor eax, eax
mov dword [esp + 0x1e0], esi
test cl, cl
jbe 0x404450
mov ecx, dword [esp + 0x1c]
lea edi, [esp + 0x53c]
mov edx, dword [ecx + 0x18]
lea ecx, [esp + 0x63c]
mov dword [esp + 0x14], edx
mov edx, dword [esi + 4]
mov ebx, dword [esp + 0x14]
add edi, 4
movsx edx, word [edx + eax*2]
inc eax
lea edx, [edx + edx*2]
lea edx, [ebx + edx*4]
mov ebx, ecx
mov ebp, dword [edx]
mov dword [ebx], ebp
mov ebp, dword [edx + 4]
mov dword [ebx + 4], ebp
mov edx, dword [edx + 8]
mov dword [edi - 4], ecx
mov dword [ebx + 8], edx
xor edx, edx
mov dl, byte [esi + 2]
add ecx, 0xc
cmp eax, edx
jl 0x40441a
lea eax, [esi + 0xc]
xor ebx, ebx
push ebx
push ebx
mov ecx, dword [eax]
mov dword [esp + 0xbc], ecx
fld dword [esp + 0xbc]
fmul dword [0x51d854]
mov edx, dword [eax + 4]
mov dword [esp + 0xc0], edx
mov eax, dword [eax + 8]
fstp dword [esp + 0xbc]
fld dword [esp + 0xc0]
fmul dword [0x51d854]
mov ecx, dword [esp + 0xbc]
mov dword [esp + 0xc4], eax
mov dword [esp + 0x1ec], ecx
lea ecx, [esp + 0x1ec]
push ecx
fstp dword [esp + 0xc4]
fld dword [esp + 0xc8]
fmul dword [0x51d854]
mov edx, dword [esp + 0xc4]
mov dword [esp + 0x1f4], edx
lea edx, [esp + 0x1fc]
push edx
fstp dword [esp + 0xcc]
mov eax, dword [esp + 0xcc]
mov dword [esp + 0x1fc], eax
call fcn.004cc1e0
lea eax, [esp + 0x2a8]
lea ecx, [esp + 0x7c]
push eax
lea edx, [esp + 0x90]
push ecx
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x68]
push edx
push eax
push esi
push ecx
call fcn.004039b0
fld dword [esp + 0xa4]
fcomp dword [0x51d864]
add esp, 0x28
fnstsw ax
test ah, 0x41
jne 0x404686
fld dword [esp + 0x7c]
fmul dword [0x51d860]
mov eax, dword [esp + 0x1f0]
mov ecx, dword [esp + 0x1f4]
mov dword [esp + 0x1b0], eax
mov dword [esp + 0x1b4], ecx
fld st(0)
fmul dword [0x51d830]
fld dword [esp + 0x1f0]
mov edx, dword [esp + 0x1f8]
mov esi, dword [esp + 0x50]
fmul st(1)
mov dword [esp + 0x1b8], edx
mov dword [esp + 0x12c], esi
mov esi, dword [esp + 0x54]
mov dword [esp + 0xfc], eax
mov dword [esp + 0x130], esi
mov esi, dword [esp + 0x58]
fstp dword [esp + 0x1b0]
fld dword [esp + 0x1b4]
fmul st(1)
mov dword [esp + 0x134], esi
mov dword [esp + 0x100], ecx
mov dword [esp + 0x104], edx
mov dword [esp + 0x7c], 0x40c00000
fstp dword [esp + 0x1b4]
fmul dword [esp + 0x1b8]
fld dword [esp + 0x50]
fadd dword [esp + 0x1b0]
fstp dword [esp + 0x12c]
fld dword [esp + 0x130]
fadd dword [esp + 0x1b4]
mov esi, dword [esp + 0x12c]
mov dword [esp + 0x50], esi
fstp dword [esp + 0x130]
fld dword [esp + 0x134]
fadd st(1)
mov esi, dword [esp + 0x130]
mov dword [esp + 0x54], esi
fstp dword [esp + 0x134]
mov esi, dword [esp + 0x134]
fstp st(0)
fld dword [esp + 0x1f0]
fmul st(1)
mov dword [esp + 0x58], esi
fstp dword [esp + 0xfc]
fld dword [esp + 0x100]
fmul st(1)
mov edx, dword [esp + 0xfc]
mov dword [esp + 0x1f0], edx
fstp dword [esp + 0x100]
fld dword [esp + 0x104]
mov eax, dword [esp + 0x100]
fmul st(1)
mov dword [esp + 0x1f4], eax
fstp dword [esp + 0x104]
mov ecx, dword [esp + 0x104]
fstp st(0)
mov dword [esp + 0x1f8], ecx
fld dword [esp + 0x6c]
fcomp dword [0x51d864]
fnstsw ax
test ah, 0x41
jne 0x4047f2
fld dword [esp + 0x6c]
fmul dword [0x51d860]
mov eax, dword [esp + 0x1fc]
mov ecx, dword [esp + 0x200]
mov dword [esp + 0x1d4], eax
mov dword [esp + 0x1d8], ecx
fld st(0)
fmul dword [0x51d830]
fld dword [esp + 0x1fc]
mov edx, dword [esp + 0x204]
mov esi, dword [esp + 0x50]
fmul st(1)
mov dword [esp + 0x1dc], edx
mov dword [esp + 0x15c], esi
mov esi, dword [esp + 0x54]
mov dword [esp + 0x114], eax
mov dword [esp + 0x160], esi
mov esi, dword [esp + 0x58]
fstp dword [esp + 0x1d4]
fld dword [esp + 0x1d8]
fmul st(1)
mov dword [esp + 0x164], esi
mov dword [esp + 0x118], ecx
mov dword [esp + 0x11c], edx
mov dword [esp + 0x6c], 0x40c00000
fstp dword [esp + 0x1d8]
fmul dword [esp + 0x1dc]
fld dword [esp + 0x50]
fsub dword [esp + 0x1d4]
fstp dword [esp + 0x15c]
fld dword [esp + 0x160]
fsub dword [esp + 0x1d8]
mov esi, dword [esp + 0x15c]
mov dword [esp + 0x50], esi
fstp dword [esp + 0x160]
fld dword [esp + 0x164]
fsub st(1)
mov esi, dword [esp + 0x160]
mov dword [esp + 0x54], esi
fstp dword [esp + 0x164]
mov esi, dword [esp + 0x164]
fstp st(0)
fld dword [esp + 0x1fc]
fmul st(1)
mov dword [esp + 0x58], esi
fstp dword [esp + 0x114]
fld dword [esp + 0x118]
fmul st(1)
mov edx, dword [esp + 0x114]
mov dword [esp + 0x1fc], edx
fstp dword [esp + 0x118]
fld dword [esp + 0x11c]
mov eax, dword [esp + 0x118]
fmul st(1)
mov dword [esp + 0x200], eax
fstp dword [esp + 0x11c]
mov ecx, dword [esp + 0x11c]
fstp st(0)
mov dword [esp + 0x204], ecx
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x14], ebx
lea edx, [ebp + ebp*2]
lea edi, [ebp + edx*4]
shl edi, 4
cmp dword [edi + 0xfdba88], ebx
jle 0x4056f5
mov dword [esp + 0x4c], ebx
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x4056f5
mov eax, dword [edi + 0xfdba94]
mov ecx, dword [esp + 0x4c]
movsx eax, word [eax + ecx + 4]
lea edx, [eax*8]
sub edx, eax
mov eax, dword [edi + 0xfdba90]
mov cl, byte [eax + edx*8 + 2]
lea esi, [eax + edx*8]
xor eax, eax
mov dword [esp + 0x238], esi
test cl, cl
jbe 0x4048a5
lea ecx, [esp + 0x43c]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x93c]
mov edx, dword [esi + 4]
inc eax
movsx edx, word [edx + eax*2 - 2]
lea ebx, [edx + edx*2]
mov edx, dword [edi + 0xfdba98]
lea edx, [edx + ebx*4]
mov ebx, ecx
mov ebp, dword [edx]
mov dword [ebx], ebp
mov ebp, dword [edx + 4]
mov dword [ebx + 4], ebp
mov edx, dword [edx + 8]
mov dword [ebx + 8], edx
mov edx, dword [esp + 0x20]
mov dword [edx], ecx
add edx, 4
mov dword [esp + 0x20], edx
xor edx, edx
mov dl, byte [esi + 2]
add ecx, 0xc
cmp eax, edx
jl 0x404865
lea eax, [esi + 0xc]
push 0
push 0
mov ecx, dword [eax]
mov dword [esp + 0xb0], ecx
fld dword [esp + 0xb0]
fmul dword [0x51d854]
mov edx, dword [eax + 4]
mov dword [esp + 0xb4], edx
mov eax, dword [eax + 8]
fstp dword [esp + 0xb0]
fld dword [esp + 0xb4]
fmul dword [0x51d854]
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0xb8], eax
mov dword [esp + 0x1ec], ecx
lea ecx, [esp + 0x1ec]
push ecx
fstp dword [esp + 0xb8]
fld dword [esp + 0xbc]
fmul dword [0x51d854]
mov edx, dword [esp + 0xb8]
mov dword [esp + 0x1f4], edx
lea edx, [esp + 0x220]
push edx
fstp dword [esp + 0xc0]
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x1fc], eax
call fcn.004cc1e0
lea ecx, [esp + 0x29c]
lea edx, [esp + 0x78]
push ecx
push edx
lea ecx, [esp + 0x78]
lea edx, [esp + 0x88]
push ecx
lea eax, [edi + 0xfdba80]
push edx
push esi
push eax
call fcn.004039b0
fld dword [esp + 0x88]
fcomp dword [0x51d864]
add esp, 0x28
fnstsw ax
test ah, 0x41
jne 0x404add
fld dword [esp + 0x60]
fmul dword [0x51d860]
mov eax, dword [esp + 0x214]
mov ecx, dword [esp + 0x218]
mov dword [esp + 0x1c8], eax
mov dword [esp + 0x1cc], ecx
fld st(0)
fmul dword [0x51d830]
fld dword [esp + 0x214]
mov edx, dword [esp + 0x21c]
mov esi, dword [esp + 0x70]
fmul st(1)
mov dword [esp + 0x1d0], edx
mov dword [esp + 0xcc], esi
mov esi, dword [esp + 0x74]
mov dword [esp + 0x144], eax
mov dword [esp + 0xd0], esi
mov esi, dword [esp + 0x78]
fstp dword [esp + 0x1c8]
fld dword [esp + 0x1cc]
fmul st(1)
mov dword [esp + 0xd4], esi
mov dword [esp + 0x148], ecx
mov dword [esp + 0x14c], edx
mov dword [esp + 0x60], 0x40c00000
fstp dword [esp + 0x1cc]
fmul dword [esp + 0x1d0]
fld dword [esp + 0x70]
fadd dword [esp + 0x1c8]
fstp dword [esp + 0xcc]
fld dword [esp + 0xd0]
fadd dword [esp + 0x1cc]
mov esi, dword [esp + 0xcc]
mov dword [esp + 0x70], esi
fstp dword [esp + 0xd0]
fld dword [esp + 0xd4]
fadd st(1)
mov esi, dword [esp + 0xd0]
mov dword [esp + 0x74], esi
fstp dword [esp + 0xd4]
mov esi, dword [esp + 0xd4]
fstp st(0)
fld dword [esp + 0x214]
fmul st(1)
mov dword [esp + 0x78], esi
fstp dword [esp + 0x144]
fld dword [esp + 0x148]
fmul st(1)
mov eax, dword [esp + 0x144]
mov dword [esp + 0x214], eax
fstp dword [esp + 0x148]
fld dword [esp + 0x14c]
mov ecx, dword [esp + 0x148]
fmul st(1)
mov dword [esp + 0x218], ecx
fstp dword [esp + 0x14c]
mov edx, dword [esp + 0x14c]
fstp st(0)
mov dword [esp + 0x21c], edx
fld dword [esp + 0x68]
fcomp dword [0x51d864]
fnstsw ax
test ah, 0x41
jne 0x404c49
fld dword [esp + 0x68]
fmul dword [0x51d860]
mov eax, dword [esp + 0x220]
mov ecx, dword [esp + 0x224]
mov dword [esp + 0x1bc], eax
mov dword [esp + 0x1c0], ecx
fld st(0)
fmul dword [0x51d830]
fld dword [esp + 0x220]
mov edx, dword [esp + 0x228]
mov esi, dword [esp + 0x70]
fmul st(1)
mov dword [esp + 0x1c4], edx
mov dword [esp + 0xd8], esi
mov esi, dword [esp + 0x74]
mov dword [esp + 0xf0], eax
mov dword [esp + 0xdc], esi
mov esi, dword [esp + 0x78]
fstp dword [esp + 0x1bc]
fld dword [esp + 0x1c0]
fmul st(1)
mov dword [esp + 0xe0], esi
mov dword [esp + 0xf4], ecx
mov dword [esp + 0xf8], edx
mov dword [esp + 0x68], 0x40c00000
fstp dword [esp + 0x1c0]
fmul dword [esp + 0x1c4]
fld dword [esp + 0x70]
fsub dword [esp + 0x1bc]
fstp dword [esp + 0xd8]
fld dword [esp + 0xdc]
fsub dword [esp + 0x1c0]
mov esi, dword [esp + 0xd8]
mov dword [esp + 0x70], esi
fstp dword [esp + 0xdc]
fld dword [esp + 0xe0]
fsub st(1)
mov esi, dword [esp + 0xdc]
mov dword [esp + 0x74], esi
fstp dword [esp + 0xe0]
mov esi, dword [esp + 0xe0]
fstp st(0)
fld dword [esp + 0x220]
fmul st(1)
mov dword [esp + 0x78], esi
fstp dword [esp + 0xf0]
fld dword [esp + 0xf4]
fmul st(1)
mov eax, dword [esp + 0xf0]
mov dword [esp + 0x220], eax
fstp dword [esp + 0xf4]
fld dword [esp + 0xf8]
mov ecx, dword [esp + 0xf4]
fmul st(1)
mov dword [esp + 0x224], ecx
fstp dword [esp + 0xf8]
mov edx, dword [esp + 0xf8]
fstp st(0)
mov dword [esp + 0x228], edx
fld dword [0x51d808]
fcomp dword [esp + 0x6c]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], edx
fnstsw ax
mov dword [esp + 0x20], 0
test ah, 1
je 0x4056cf
mov ebp, dword [esp + 0x28]
test ebp, ebp
jne 0x4056cf
fld dword [0x51d808]
fcomp dword [esp + 0x7c]
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x94]
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], edx
fnstsw ax
mov dword [esp + 0x48], ebp
test ah, 1
je 0x405620
mov ebx, dword [esp + 0x1c]
test ebp, ebp
jne 0x405620
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0xa0]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x53c]
mov dword [esp + 0x40], ecx
push eax
mov eax, dword [esp + 0x1e4]
xor ecx, ecx
mov dword [esp + 0x48], edx
mov cl, byte [eax + 2]
add eax, 0xc
push ecx
lea edx, [esp + 0x44]
push eax
push edx
call fcn.004e4e00
add esp, 0x10
test eax, eax
jne 0x405571
fld dword [0x51d808]
fcomp dword [esp + 0x68]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov esi, dword [esp + 0x78]
mov dword [esp + 0x38], eax
mov dword [esp + 0x174], ecx
mov dword [esp + 0x178], edx
fnstsw ax
mov dword [esp + 0x17c], esi
test ah, 1
je 0x405571
test ebp, ebp
jne 0x405571
fld dword [0x51d808]
fcomp dword [esp + 0x60]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], esi
mov dword [esp + 0xa4], ebp
fnstsw ax
test ah, 1
je 0x4054c2
test ebp, ebp
jne 0x4054c2
mov eax, dword [ebx + 0x14]
mov ebp, dword [esp + 0x64]
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xc4], edx
movsx eax, word [eax + ebp + 4]
mov dword [esp + 0xc8], esi
lea ebp, [eax*8]
sub ebp, eax
mov eax, dword [ebx + 0x10]
lea eax, [eax + ebp*8 + 0xc]
mov ebp, dword [eax]
mov dword [esp + 0x180], ebp
fld dword [esp + 0x180]
mov ebp, dword [eax + 4]
fmul dword [0x51d85c]
mov eax, dword [eax + 8]
mov dword [esp + 0x184], ebp
fld dword [esp + 0x184]
fmul dword [0x51d85c]
mov dword [esp + 0x188], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x44]
fstp dword [esp + 0x184]
fld dword [esp + 0x188]
fmul dword [0x51d85c]
mov dword [esp + 0x88], eax
mov ebp, dword [esp + 0x4c]
fstp dword [esp + 0x188]
fld dword [esp + 0x3c]
fadd st(1)
fstp dword [esp + 0x80]
mov eax, dword [esp + 0x80]
fstp st(0)
fld dword [esp + 0x84]
fadd dword [esp + 0x184]
mov dword [esp + 0x3c], eax
fstp dword [esp + 0x84]
fld dword [esp + 0x88]
fadd dword [esp + 0x188]
mov eax, dword [esp + 0x84]
mov dword [esp + 0x40], eax
fstp dword [esp + 0x88]
mov eax, dword [esp + 0x88]
mov dword [esp + 0x44], eax
mov eax, dword [edi + 0xfdba94]
movsx eax, word [eax + ebp + 4]
lea ebp, [eax*8]
sub ebp, eax
mov eax, dword [edi + 0xfdba90]
lea eax, [eax + ebp*8 + 0xc]
mov ebp, dword [eax]
mov dword [esp + 0x18c], ebp
fld dword [esp + 0x18c]
mov ebp, dword [eax + 4]
fmul dword [0x51d85c]
mov eax, dword [eax + 8]
mov dword [esp + 0x190], ebp
fld dword [esp + 0x190]
fmul dword [0x51d85c]
mov dword [esp + 0x194], eax
fstp dword [esp + 0x190]
fld dword [esp + 0x194]
fmul dword [0x51d85c]
fstp dword [esp + 0x194]
fld dword [esp + 0x2c]
fadd st(1)
fstp dword [esp + 0xc0]
mov eax, dword [esp + 0xc0]
fstp st(0)
fld dword [esp + 0xc4]
fadd dword [esp + 0x190]
mov dword [esp + 0x2c], eax
fstp dword [esp + 0xc4]
fld dword [esp + 0xc8]
fadd dword [esp + 0x194]
mov edx, dword [esp + 0xc4]
mov dword [esp + 0x30], edx
fstp dword [esp + 0xc8]
fld dword [esp + 0xc0]
fsub dword [esp + 0x80]
mov ecx, dword [esp + 0xc8]
mov dword [esp + 0x248], eax
mov eax, dword [esp + 0x1e0]
mov dword [esp + 0x24c], edx
fld dword [esp + 0x24c]
fsub dword [esp + 0x84]
add eax, 0xc
mov dword [esp + 0x250], ecx
fld dword [esp + 0x250]
mov esi, dword [eax]
mov dword [esp + 0x34], ecx
fsub dword [esp + 0x88]
mov dword [esp + 0x23c], esi
mov esi, dword [eax + 4]
mov dword [esp + 0x240], esi
mov eax, dword [eax + 8]
mov dword [esp + 0x244], eax
fld dword [esp + 0x244]
fmul st(1)
fld dword [esp + 0x240]
fmul st(3)
faddp st(1)
fld dword [esp + 0x23c]
fmul st(4)
faddp st(1)
fcomp dword [0x51d808]
fstp st(0)
fnstsw ax
fstp st(0)
test ah, 0x41
fstp st(0)
je 0x405423
mov eax, dword [esp + 0x238]
xor edx, edx
lea ecx, [esp + 0x43c]
mov dl, byte [eax + 2]
push ecx
add eax, 0xc
push edx
push eax
lea eax, [esp + 0x38]
push eax
call fcn.004e4e00
add esp, 0x10
test eax, eax
jne 0x40541b
push eax
lea ecx, [esp + 0x40]
push ebx
push ecx
call fcn.004e7300
add esp, 0xc
test al, al
jne 0x405064
push 1
lea edx, [esp + 0x40]
push ebx
push edx
call fcn.004e7300
add esp, 0xc
test al, al
je 0x40541b
mov al, byte [edi + 0xfdba80]
lea esi, [edi + 0xfdba80]
test al, 4
jne 0x4050a0
push 0
lea eax, [esp + 0x30]
push esi
push eax
call fcn.004e7300
add esp, 0xc
test al, al
jne 0x4050a0
push 1
lea ecx, [esp + 0x30]
push esi
push ecx
call fcn.004e7300
add esp, 0xc
test al, al
je 0x40541b
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x3c]
mov dword [esp + 0x254], edx
lea ecx, [esp + 0xc3c]
push 0
lea edx, [esp + 0x258]
lea eax, [esp + 0x30]
push ecx
push edx
mov dword [esp + 0x268], esi
mov dword [esp + 0x264], eax
mov dword [esp + 0x26c], 0x3c23d70a
mov word [esp + 0x270], 0xffff
mov dword [esp + 0x274], 0
mov dword [esp + 0x278], 0x2000010
call fcn.004e8100
add esp, 0xc
test eax, eax
jne 0x405245
mov ecx, dword [edi + 0xfdba88]
test ecx, ecx
jle 0x405149
mov esi, dword [esp + 0x10]
mov eax, dword [edi + 0xfdba94]
add eax, 6
mov ebp, ecx
lea edx, [esp + esi*4 + 0xea8]
movsx ecx, word [eax]
test ecx, ecx
jl 0x40513b
mov dword [edx], ecx
inc esi
add edx, 4
add eax, 0x1c
dec ebp
jne 0x40512e
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x18]
mov eax, esi
shl eax, 4
add eax, esi
lea esi, [eax + eax*2]
mov eax, dword [esp + 0x24]
shl esi, 3
add eax, esi
or byte [eax*2 + 0x555889], 4
mov byte [esp + eax + 0x4d28], 1
test byte [edi + 0xfdba80], 4
je 0x40523d
mov ecx, dword [0x54bfa0]
xor ebp, ebp
lea eax, [esi + ecx]
or byte [eax*2 + 0x55588b], 4
mov eax, dword [edi + 0xfdba88]
test eax, eax
jle 0x4051ea
xor ebx, ebx
mov edx, dword [edi + 0xfdba94]
lea eax, [edx + ebx + 0x10]
push eax
call fcn.004ae740
and eax, 0x7fffffff
add esp, 4
add ebx, 0x1c
lea ecx, [eax + eax*4]
xor eax, eax
mov al, byte [ecx*4 + 0x106bcb0]
shr eax, 5
lea edx, [esi + eax]
mov eax, dword [0x54bfa0]
add edx, eax
or byte [edx*2 + 0x55588b], 4
lea eax, [edx*2 + 0x55588a]
mov eax, dword [edi + 0xfdba88]
inc ebp
cmp ebp, eax
jl 0x405198
mov ebx, dword [esp + 0x1c]
mov ecx, dword [0x54bfa0]
xor eax, eax
test ecx, ecx
jl 0x40523d
mov ecx, dword [esp + 0x10]
lea edx, [esp + ecx*4 + 0xea8]
mov ecx, 0xfdba80
cmp byte [ecx + 0xcf], 0
je 0x40522c
test byte [ecx], 4
je 0x40522c
cmp byte [esp + eax + 0x2a4], 0
jne 0x40522c
mov ebp, dword [esp + 0x10]
mov dword [edx], eax
inc ebp
add edx, 4
mov dword [esp + 0x10], ebp
mov esi, dword [0x54bfa0]
inc eax
add ecx, 0xd0
cmp eax, esi
jle 0x405206
mov dword [esp + 0x28], 1
mov edx, dword [ebx + 0x14]
mov eax, dword [esp + 0x64]
movsx eax, word [edx + eax + 4]
mov edx, dword [ebx + 0x10]
lea ecx, [eax*8]
sub ecx, eax
lea eax, [edx + ecx*8 + 0xc]
mov ecx, dword [edx + ecx*8 + 0xc]
mov dword [esp + 0x1a4], ecx
mov ecx, dword [esp + 0x3c]
fld dword [esp + 0x1a4]
mov edx, dword [eax + 4]
mov dword [esp + 0x108], ecx
fmul dword [0x51d85c]
mov eax, dword [eax + 8]
mov dword [esp + 0x1a8], edx
fld dword [esp + 0x1a8]
fmul dword [0x51d85c]
mov dword [esp + 0x1ac], eax
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x10c], edx
mov dword [esp + 0x110], eax
fstp dword [esp + 0x1a8]
fld dword [esp + 0x1ac]
fmul dword [0x51d85c]
fstp dword [esp + 0x1ac]
fld dword [esp + 0x3c]
fsub st(1)
fstp dword [esp + 0x108]
mov ecx, dword [esp + 0x108]
fstp st(0)
fld dword [esp + 0x10c]
fsub dword [esp + 0x1a8]
mov dword [esp + 0x3c], ecx
mov ecx, dword [edi + 0xfdba94]
fstp dword [esp + 0x10c]
fld dword [esp + 0x110]
fsub dword [esp + 0x1ac]
mov edx, dword [esp + 0x10c]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x4c]
fstp dword [esp + 0x110]
mov eax, dword [esp + 0x110]
mov dword [esp + 0x44], eax
movsx eax, word [ecx + edx + 4]
mov edx, dword [edi + 0xfdba90]
lea ecx, [eax*8]
sub ecx, eax
lea eax, [edx + ecx*8 + 0xc]
mov ecx, dword [edx + ecx*8 + 0xc]
mov dword [esp + 0x198], ecx
mov ecx, dword [esp + 0x2c]
fld dword [esp + 0x198]
mov edx, dword [eax + 4]
mov dword [esp + 0x120], ecx
fmul dword [0x51d85c]
mov eax, dword [eax + 8]
mov dword [esp + 0x19c], edx
fld dword [esp + 0x19c]
fmul dword [0x51d85c]
mov dword [esp + 0x1a0], eax
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x124], edx
mov dword [esp + 0x128], eax
fstp dword [esp + 0x19c]
fld dword [esp + 0x1a0]
fmul dword [0x51d85c]
fstp dword [esp + 0x1a0]
fld dword [esp + 0x2c]
fsub st(1)
fstp dword [esp + 0x120]
mov ecx, dword [esp + 0x120]
fstp st(0)
fld dword [esp + 0x124]
fsub dword [esp + 0x19c]
fstp dword [esp + 0x124]
fld dword [esp + 0x128]
fsub dword [esp + 0x1a0]
fstp dword [esp + 0x128]
mov edx, dword [esp + 0x124]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x128]
jmp 0x405423
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x13c], edx
fld dword [esp + 0x2c]
fadd dword [esp + 0x214]
inc eax
mov dword [esp + 0x140], ecx
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x138], eax
mov ebp, dword [esp + 0x28]
fstp dword [esp + 0x138]
fld dword [esp + 0x218]
fadd dword [esp + 0x13c]
mov ecx, dword [esp + 0x138]
mov dword [esp + 0x2c], ecx
fstp dword [esp + 0x13c]
fld dword [esp + 0x21c]
fadd dword [esp + 0x140]
mov edx, dword [esp + 0x13c]
mov dword [esp + 0x30], edx
fstp dword [esp + 0x140]
fild dword [esp + 0xa4]
mov esi, dword [esp + 0x140]
mov dword [esp + 0x34], esi
fcomp dword [esp + 0x60]
fnstsw ax
test ah, 1
jne 0x404d9b
fld dword [esp + 0x174]
fsub dword [esp + 0x220]
mov ecx, dword [esp + 0x174]
mov edx, dword [esp + 0x178]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x150], ecx
mov dword [esp + 0x154], edx
inc eax
fstp dword [esp + 0x150]
fld dword [esp + 0x154]
fsub dword [esp + 0x224]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x17c]
mov dword [esp + 0x158], eax
mov ecx, dword [esp + 0x150]
mov dword [esp + 0x174], ecx
fstp dword [esp + 0x154]
fld dword [esp + 0x158]
fsub dword [esp + 0x228]
mov edx, dword [esp + 0x154]
mov dword [esp + 0x178], edx
fstp dword [esp + 0x158]
fild dword [esp + 0x38]
mov esi, dword [esp + 0x158]
mov dword [esp + 0x17c], esi
fcomp dword [esp + 0x68]
fnstsw ax
test ah, 1
jne 0x404d6b
fld dword [esp + 0x1f0]
fadd dword [esp + 0x98]
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x9c]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x168], ecx
mov dword [esp + 0x16c], edx
inc eax
fstp dword [esp + 0x168]
fld dword [esp + 0x16c]
fadd dword [esp + 0x1f4]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x170], eax
mov ecx, dword [esp + 0x168]
mov dword [esp + 0x98], ecx
fstp dword [esp + 0x16c]
fld dword [esp + 0x170]
fadd dword [esp + 0x1f8]
mov edx, dword [esp + 0x16c]
mov dword [esp + 0x9c], edx
fstp dword [esp + 0x170]
fild dword [esp + 0x48]
mov eax, dword [esp + 0x170]
mov dword [esp + 0xa0], eax
fcomp dword [esp + 0x7c]
fnstsw ax
test ah, 1
jne 0x404cda
fld dword [esp + 0x8c]
fsub dword [esp + 0x1fc]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x90]
mov eax, dword [esp + 0x20]
mov dword [esp + 0xe4], ecx
mov dword [esp + 0xe8], edx
inc eax
fstp dword [esp + 0xe4]
fld dword [esp + 0xe8]
fsub dword [esp + 0x200]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0xec], eax
mov ecx, dword [esp + 0xe4]
mov dword [esp + 0x8c], ecx
fstp dword [esp + 0xe8]
fld dword [esp + 0xec]
fsub dword [esp + 0x204]
mov edx, dword [esp + 0xe8]
mov dword [esp + 0x90], edx
fstp dword [esp + 0xec]
fild dword [esp + 0x20]
mov eax, dword [esp + 0xec]
mov dword [esp + 0x94], eax
fcomp dword [esp + 0x6c]
fnstsw ax
test ah, 1
jne 0x404c87
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x4c]
mov ecx, dword [edi + 0xfdba88]
mov ebp, dword [esp + 0x24]
inc eax
add edx, 0x1c
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x4c], edx
jl 0x404815
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x64]
inc eax
mov ebx, dword [ecx + 8]
add edx, 0x1c
cmp eax, ebx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], edx
jl 0x4043c5
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x40573a
mov ecx, dword [esp + 0x18]
mov eax, ecx
shl eax, 4
add eax, ecx
lea edx, [eax + eax*2]
lea eax, [ebp + edx*8]
mov byte [esp + eax + 0x4d28], 0
mov eax, dword [esp + 0x10]
test eax, eax
jg 0x4042eb
mov ebp, dword [0x54bfa0]
mov eax, dword [esp + 0x18]
inc eax
cmp eax, ebp
mov dword [esp + 0x18], eax
jle 0x4040cb
test ebp, ebp
jl 0x4057b4
mov edi, 0x555888
lea ecx, [ebp + 1]
mov esi, edi
mov ebx, 0xfdbb4f
mov dword [esp + 0x14], ecx
cmp byte [ebx], 0
je 0x40579a
lea edx, [ebp + 8]
test edx, edx
jl 0x40579a
mov ecx, esi
mov eax, edi
inc edx
test byte [ecx + 1], 4
je 0x40578f
or byte [eax + 1], 4
add ecx, 2
add eax, 0x330
dec edx
jne 0x405785
mov eax, dword [esp + 0x14]
add ebx, 0xd0
add esi, 0x330
add edi, 2
dec eax
mov dword [esp + 0x14], eax
jne 0x405774
push 0
push 2
push 0x42c80000
call fcn.00403e00
mov al, byte [esp + 0x2d778]
add esp, 0xc
test al, al
pop edi
pop ebp
pop ebx
jne 0x4057e0
push str.BOA_vis_table_computed_
call fcn.004cd2a0
add esp, 4
mov edx, dword [0x5b762c]
mov byte [0x5b7634], 1
mov dword [0x5b7630], edx
pop esi
add esp, 0x2d758
ret