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

Disassembly:
mov eax, dword [0x12ff380]
sub esp, 0x14c
mov ecx, dword [eax + 0x20]
push ebx
push ebp
push esi
xor esi, esi
push edi
cmp ecx, esi
je 0x4addfc
mov ecx, dword [0x12ff398]
mov eax, dword [ecx + 0x20]
cmp eax, esi
mov eax, dword [0x12ff558]
je 0x4ad283
cmp eax, esi
jne 0x4aced6
push 0x26
push esi
push 0x12ff55c
call fcn.0044c5f0
add esp, 0xc
mov dword [0x12ff560], 0xfffffc18
mov dword [0x12ff5f4], esi
mov dword [0x12ff5f8], esi
mov dword [0x12ff558], 1
mov edx, dword [0x12ff608]
mov eax, dword [edx + 4]
push eax
call fcn.004a1cd0
mov ecx, dword [0x12ff604]
mov edx, dword [0x12ff394]
mov dword [0x12ff564], eax
add esp, 4
fld dword [ecx + 0x1c]
fmul dword [edx + 0x1c]
fst dword [0x12ff56c]
fcomp dword [0x5315ec]
fnstsw ax
test ah, 5
jp 0x4acf1e
mov dword [0x12ff56c], 0x40000000
jmp 0x4acf3d
fld dword [0x12ff56c]
fcomp dword [0x532224]
fnstsw ax
and eax, 0x4100
jne 0x4acf3d
mov dword [0x12ff56c], 0x44800000
mov eax, dword [0x12ff5fc]
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x10], ecx
fld dword [esp + 0x10]
fcomp dword [0x5314c0]
fnstsw ax
test ah, 5
jp 0x4acf64
mov dword [esp + 0x10], 0
jmp 0x4acf7f
fld dword [esp + 0x10]
fcomp dword [0x5314e8]
fnstsw ax
and eax, 0x4100
jne 0x4acf7f
mov dword [esp + 0x10], 0x3f800000
mov edx, dword [0x12ff384]
mov eax, dword [0x12ff610]
fld dword [0x5314e8]
fdiv dword [edx + 0x1c]
mov ecx, dword [eax + 0x1c]
mov edx, dword [0x12ff61c]
mov ebx, dword [esp + 0x10]
mov eax, dword [edx + 0x1c]
fstp dword [esp + 0x20]
mov edi, dword [esp + 0x20]
push edi
push ecx
mov ecx, dword [0x12ff620]
push eax
mov edx, dword [ecx + 0x1c]
push edx
push ebx
push 0x12ff55c
call dword [0x12ff738]
add esp, 0x18
cmp eax, 1
jne 0x4ad00b
mov eax, dword [0x12ff5f8]
mov ecx, dword [0x12ff610]
mov dword [0x12ff5f4], eax
mov eax, dword [0x12ff61c]
mov dword [0x12ff5f8], esi
mov edx, dword [ecx + 0x1c]
mov ecx, dword [eax + 0x1c]
push edi
push edx
mov edx, dword [0x12ff620]
push ecx
mov eax, dword [edx + 0x1c]
push eax
push ebx
push 0x12ff55c
call dword [0x12ff738]
add esp, 0x18
jmp 0x4ad014
cmp eax, 0xffffffff
je 0x4ad257
mov eax, dword [0x12ff5f8]
mov ebp, 0x12ff4d0
cmp eax, esi
mov ebx, 0x41000000
je 0x4ad060
push 2
push 1
push 1
push 0x55d524
push 0x55d524
mov dword [0x12ff554], eax
call fcn.004ab2e0
mov ecx, eax
add esp, 0x14
cmp ecx, esi
mov dword [0x12ff554], ecx
jne 0x4ad152
mov ecx, dword [0x12ff5f8]
push ecx
jmp 0x4ad144
mov eax, dword [0x12ff550]
cmp eax, esi
jne 0x4ad0a6
push 0x4000
call dword [0x12ff6b4]
add esp, 4
cmp eax, esi
jne 0x4ad082
xor eax, eax
jmp 0x4ad10b
mov dword [0x12ff550], eax
mov ecx, eax
mov edi, 0x7f
lea edx, [ecx + 0x80]
dec edi
mov dword [ecx], edx
mov ecx, edx
jne 0x4ad08e
mov dword [eax + 0x3f80], esi
mov eax, dword [0x12ff550]
mov edx, dword [eax]
mov ecx, dword [0x12ff4d0]
mov dword [0x12ff550], edx
mov dword [eax], ecx
mov dword [eax + 4], ebp
mov edx, dword [0x12ff4d0]
mov dword [edx + 4], eax
mov ecx, dword [0x12ff7fc]
mov dword [0x12ff4d0], eax
mov dword [eax + 8], ecx
mov ecx, 0x3f800000
mov dword [eax + 0x14], esi
mov dword [eax + 0x10], esi
mov dword [eax + 0xc], esi
mov dword [eax + 0x18], esi
mov dword [eax + 0x1c], esi
mov dword [eax + 0x20], 0xbf800000
mov dword [eax + 0x24], ebx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], esi
mov dword [eax + 0x34], 0xffffffff
mov dword [eax + 0x44], 1
mov dword [eax + 0x48], esi
mov dword [eax + 0x4c], esi
cmp eax, esi
mov dword [0x12ff5f8], eax
je 0x4ad14c
push 2
push 1
push 1
push 0x55d524
push 0x55d524
mov dword [0x12ff554], eax
call fcn.004ab2e0
mov ecx, eax
add esp, 0x14
cmp ecx, esi
mov dword [0x12ff554], ecx
jne 0x4ad152
mov edx, dword [0x12ff5f8]
push edx
call fcn.004aafc0
add esp, 4
mov ecx, dword [0x12ff554]
cmp dword [0x12ff568], 3
jne 0x4ad25d
mov eax, dword [0x12ff5f4]
cmp eax, esi
jne 0x4ad220
mov eax, dword [0x12ff550]
cmp eax, esi
jne 0x4ad1b2
push 0x4000
call dword [0x12ff6b4]
add esp, 4
cmp eax, esi
jne 0x4ad18e
xor eax, eax
jmp 0x4ad217
mov dword [0x12ff550], eax
mov ecx, eax
mov edi, 0x7f
lea edx, [ecx + 0x80]
dec edi
mov dword [ecx], edx
mov ecx, edx
jne 0x4ad19a
mov dword [eax + 0x3f80], esi
mov eax, dword [0x12ff550]
mov ecx, dword [eax]
mov edx, dword [0x12ff4d0]
mov dword [0x12ff550], ecx
mov dword [eax], edx
mov dword [eax + 4], ebp
mov ecx, dword [0x12ff4d0]
mov dword [ecx + 4], eax
mov edx, dword [0x12ff7fc]
mov ecx, 0x3f800000
mov dword [0x12ff4d0], eax
mov dword [eax + 8], edx
mov dword [eax + 0x14], esi
mov dword [eax + 0x10], esi
mov dword [eax + 0xc], esi
mov dword [eax + 0x18], esi
mov dword [eax + 0x1c], esi
mov dword [eax + 0x20], 0xbf800000
mov dword [eax + 0x24], ebx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], esi
mov dword [eax + 0x34], 0xffffffff
mov dword [eax + 0x44], 1
mov dword [eax + 0x48], esi
mov dword [eax + 0x4c], esi
cmp eax, esi
mov dword [0x12ff5f4], eax
je 0x4ad257
push 1
push 1
push 1
push 0x55d524
push 0x55d524
mov dword [0x12ff554], eax
call fcn.004ab2e0
mov ecx, eax
add esp, 0x14
cmp ecx, esi
mov dword [0x12ff554], ecx
jne 0x4ad25d
mov eax, dword [0x12ff5f4]
push eax
call fcn.004aafc0
add esp, 4
mov ecx, dword [0x12ff554]
mov eax, dword [0x12ff5f8]
cmp eax, esi
je 0x4ad270
mov ecx, eax
mov dword [0x12ff554], ecx
jmp 0x4ad293
mov eax, dword [0x12ff5f4]
cmp eax, esi
je 0x4ad293
mov ecx, eax
mov dword [0x12ff554], ecx
jmp 0x4ad293
mov ecx, dword [0x12ff554]
cmp eax, esi
je 0x4ad293
mov dword [0x12ff558], esi
cmp dword [0x12ff4c8], esi
je 0x4ad61b
cmp ecx, esi
je 0x4ad61b
cmp dword [ecx + 0x30], 0xbf800000
je 0x4ad61b
mov eax, dword [0x12ff608]
xor ebx, ebx
cmp dword [eax + 0x14], esi
je 0x4ad36c
mov ecx, dword [eax + 4]
push ecx
call fcn.004a1cd0
add esp, 4
cmp eax, esi
je 0x4ad35d
push eax
call fcn.004a1eb0
mov edi, eax
mov eax, dword [0x12ff7fc]
add esp, 4
cmp edi, eax
je 0x4ad35d
mov eax, dword [0x12ff554]
cmp dword [eax + 8], edi
je 0x4ad35d
push 0x41800000
push str.dcl_radius
mov dword [eax + 8], edi
mov ebx, 1
call fcn.0044d230
mov edx, dword [0x12ff394]
add esp, 4
mov dword [edx + 0x14], esi
mov eax, dword [edi + 0x174]
mov ecx, dword [eax + 4]
fild dword [ecx + 0x44]
fmul dword [0x532220]
fstp dword [esp]
push str.dcl_heightscale
call fcn.0044d230
mov edx, dword [edi + 0x174]
add esp, 4
mov eax, dword [edx + 4]
fild dword [eax + 0x40]
fmul dword [0x532220]
fstp dword [esp]
push str.dcl_widthscale
call fcn.0044d230
add esp, 8
mov ecx, dword [0x12ff608]
mov dword [ecx + 0x14], esi
mov ecx, dword [0x12ff554]
mov edx, dword [0x12ff394]
cmp dword [edx + 0x14], esi
je 0x4ad39e
fld dword [ecx + 0x24]
fcomp dword [edx + 0x1c]
fnstsw ax
test ah, 0x44
jnp 0x4ad395
mov edx, dword [edx + 0x1c]
mov ebx, 1
mov dword [ecx + 0x24], edx
mov edx, dword [0x12ff394]
mov dword [edx + 0x14], esi
mov ecx, dword [0x12ff554]
mov edx, dword [0x12ff600]
cmp dword [edx + 0x14], esi
je 0x4ad3d0
fld dword [ecx + 0x28]
fcomp dword [edx + 0x1c]
fnstsw ax
test ah, 0x44
jnp 0x4ad3c7
mov eax, dword [edx + 0x1c]
mov ebx, 1
mov dword [ecx + 0x28], eax
mov edx, dword [0x12ff600]
mov dword [edx + 0x14], esi
mov ecx, dword [0x12ff554]
mov edx, dword [0x12ff604]
cmp dword [edx + 0x14], esi
je 0x4ad402
fld dword [ecx + 0x2c]
fcomp dword [edx + 0x1c]
fnstsw ax
test ah, 0x44
jnp 0x4ad3f9
mov edx, dword [edx + 0x1c]
mov ebx, 1
mov dword [ecx + 0x2c], edx
mov edx, dword [0x12ff604]
mov dword [edx + 0x14], esi
mov ecx, dword [0x12ff554]
mov eax, dword [0x12ff628]
cmp dword [eax + 0x14], esi
je 0x4ad443
mov eax, dword [eax + 0x1c]
push eax
call fcn.004609c0
mov ecx, dword [0x12ff554]
add esp, 4
fcom dword [ecx + 0x30]
fnstsw ax
test ah, 0x44
jnp 0x4ad432
fstp dword [ecx + 0x30]
mov ebx, 1
jmp 0x4ad434
fstp st(0)
mov ecx, dword [0x12ff628]
mov dword [ecx + 0x14], esi
mov ecx, dword [0x12ff554]
mov edx, dword [0x12ff3a4]
cmp dword [edx + 0x14], esi
je 0x4ad4a4
fld dword [edx + 0x1c]
fcom dword [0x5314c0]
fnstsw ax
test ah, 5
jp 0x4ad468
fstp st(0)
fld dword [0x5314c0]
jmp 0x4ad47f
fcom dword [0x5314e8]
fnstsw ax
and eax, 0x4100
jne 0x4ad47f
fstp st(0)
fld dword [0x5314e8]
fcom dword [ecx + 0x34]
fnstsw ax
test ah, 0x44
jnp 0x4ad499
fstp dword [ecx + 0x34]
mov edx, dword [0x12ff3a4]
mov ebx, 1
jmp 0x4ad49b
fstp st(0)
mov dword [edx + 0x14], esi
mov ecx, dword [0x12ff554]
mov edx, dword [0x12ff3a0]
cmp dword [edx + 0x14], esi
je 0x4ad505
fld dword [edx + 0x1c]
fcom dword [0x5314c0]
fnstsw ax
test ah, 5
jp 0x4ad4c9
fstp st(0)
fld dword [0x5314c0]
jmp 0x4ad4e0
fcom dword [0x5314e8]
fnstsw ax
and eax, 0x4100
jne 0x4ad4e0
fstp st(0)
fld dword [0x5314e8]
fcom dword [ecx + 0x38]
fnstsw ax
test ah, 0x44
jnp 0x4ad4fa
fstp dword [ecx + 0x38]
mov edx, dword [0x12ff3a0]
mov ebx, 1
jmp 0x4ad4fc
fstp st(0)
mov dword [edx + 0x14], esi
mov ecx, dword [0x12ff554]
mov edx, dword [0x12ff39c]
cmp dword [edx + 0x14], esi
je 0x4ad566
fld dword [edx + 0x1c]
fcom dword [0x5314c0]
fnstsw ax
test ah, 5
jp 0x4ad52a
fstp st(0)
fld dword [0x5314c0]
jmp 0x4ad541
fcom dword [0x5314e8]
fnstsw ax
and eax, 0x4100
jne 0x4ad541
fstp st(0)
fld dword [0x5314e8]
fcom dword [ecx + 0x3c]
fnstsw ax
test ah, 0x44
jnp 0x4ad55b
fstp dword [ecx + 0x3c]
mov edx, dword [0x12ff39c]
mov ebx, 1
jmp 0x4ad55d
fstp st(0)
mov dword [edx + 0x14], esi
mov ecx, dword [0x12ff554]
mov edx, dword [0x12ff5fc]
cmp dword [edx + 0x14], esi
je 0x4ad5c7
fld dword [edx + 0x1c]
fcom dword [0x5314c0]
fnstsw ax
test ah, 5
jp 0x4ad58b
fstp st(0)
fld dword [0x5314c0]
jmp 0x4ad5a2
fcom dword [0x5314e8]
fnstsw ax
and eax, 0x4100
jne 0x4ad5a2
fstp st(0)
fld dword [0x5314e8]
fcom dword [ecx + 0x40]
fnstsw ax
test ah, 0x44
jnp 0x4ad5bc
fstp dword [ecx + 0x40]
mov edx, dword [0x12ff5fc]
mov ebx, 1
jmp 0x4ad5be
fstp st(0)
mov dword [edx + 0x14], esi
mov ecx, dword [0x12ff554]
mov edi, dword [0x12ff3a8]
cmp dword [edi + 0x14], esi
je 0x4ad5fa
mov ebp, dword [edi + 0x20]
mov edx, dword [ecx + 0x44]
xor eax, eax
cmp ebp, esi
setne al
cmp edx, eax
je 0x4ad5f1
mov dword [ecx + 0x44], eax
mov edi, dword [0x12ff3a8]
mov ebx, 1
mov dword [edi + 0x14], esi
mov ecx, dword [0x12ff554]
cmp ebx, esi
je 0x4ad61b
push esi
push 1
lea edx, [ecx + 0x18]
push 1
add ecx, 0xc
push edx
push ecx
call fcn.004ab2e0
mov ecx, eax
add esp, 0x14
mov dword [0x12ff554], ecx
mov eax, dword [0x12ff618]
cmp dword [eax + 0x20], esi
je 0x4addfc
cmp ecx, esi
je 0x4addfc
cmp dword [ecx + 0x4c], esi
je 0x4addfc
lea edx, [esp + 0x14]
add ecx, 0x18
push edx
push ecx
mov dword [esp + 0x60], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x28], esi
call fcn.0045f610
mov eax, dword [0x12ff554]
add esp, 4
fld dword [esp + 0x20]
fadd dword [eax + 0x30]
fstp dword [esp]
call fcn.004609c0
fstp dword [esp + 0x20]
lea ecx, [esp + 0x50]
lea edx, [esp + 0x44]
push ecx
lea eax, [esp + 0x3c]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.00458be0
mov eax, dword [0x12ff554]
lea edx, [esp + 0x48]
add eax, 0x18
push edx
push eax
call fcn.004589a0
lea ecx, [esp + 0x50]
lea edx, [esp + 0x5c]
push ecx
push edx
fstp st(0)
call fcn.004619b0
mov eax, dword [0x12ff554]
add esp, 0x20
fld dword [eax + 0x30]
fadd dword [0x53192c]
fstp dword [esp]
call fcn.004609c0
fstp dword [esp]
lea ecx, [esp + 0x44]
lea edx, [esp + 0x38]
push ecx
lea eax, [esp + 0x54]
push edx
push eax
call fcn.0045f3d0
fld dword [esp + 0x64]
fmul dword [esp + 0x48]
fld dword [esp + 0x60]
fmul dword [esp + 0x4c]
mov ecx, dword [0x12ff554]
add esp, 0x10
fsubp st(1)
fstp dword [esp + 0x40]
fld dword [esp + 0x4c]
fmul dword [esp + 0x3c]
fld dword [esp + 0x54]
fmul dword [esp + 0x34]
fsubp st(1)
fstp dword [esp + 0x44]
fld dword [esp + 0x50]
fmul dword [esp + 0x34]
fld dword [esp + 0x4c]
fmul dword [esp + 0x38]
fsubp st(1)
fstp dword [esp + 0x48]
fild dword [0x13001a0]
mov edi, dword [ecx + 0x48]
cmp edi, esi
fmul qword [0x532218]
fsin
fmul qword [0x531a98]
fadd qword [0x532210]
fstp dword [esp + 0x24]
je 0x4adc3f
mov esi, dword [esp + 0x24]
mov eax, dword [edi + 4]
test eax, eax
jle 0x4ad875
mov ecx, dword [edi + 8]
xor ebx, ebx
test ecx, ecx
jle 0x4adc31
fld dword [0x5314e8]
fsub dword [esp + 0x24]
fstp dword [esp + 0x10]
mov eax, ebx
push 0x3f800000
cdq
fld dword [esp + 0x38]
idiv ecx
fmul qword [0x531968]
push esi
push esi
push esi
inc edx
inc ebx
mov eax, ebx
lea edx, [edx + edx*2]
lea ebp, [edi + edx*8]
cdq
fld dword [ebp]
idiv ecx
fadd st(1)
fstp dword [esp + 0x24]
fld dword [esp + 0x48]
fmul qword [0x531968]
fld dword [ebp + 4]
fadd st(1)
fstp dword [esp + 0x28]
fld dword [esp + 0x4c]
fmul qword [0x531968]
fstp qword [esp + 0x78]
fld dword [ebp + 8]
fadd qword [esp + 0x78]
lea ecx, [esp + 0x38]
push ecx
fstp dword [esp + 0x30]
inc edx
lea eax, [edx + edx*2]
lea edx, [esp + 0x28]
push edx
fld dword [edi + eax*8]
lea eax, [edi + eax*8]
fadd st(2)
fstp dword [esp + 0x40]
fld dword [eax + 4]
fadd st(1)
fstp dword [esp + 0x44]
fstp st(0)
fstp st(0)
fld dword [eax + 8]
fadd qword [esp + 0x80]
fstp dword [esp + 0x48]
call fcn.00496bb0
fld dword [esp + 0x4c]
fmul qword [0x532208]
mov eax, dword [esp + 0x28]
push 0x3f800000
push 0x3dcccccd
push eax
fadd dword [esp + 0x38]
lea ecx, [esp + 0x4c]
push esi
lea edx, [esp + 0x3c]
push ecx
push edx
fstp dword [esp + 0x58]
fld dword [esp + 0x68]
fmul qword [0x532208]
fadd dword [esp + 0x48]
fstp dword [esp + 0x5c]
fld dword [esp + 0x6c]
fmul qword [0x532208]
fadd dword [esp + 0x4c]
fstp dword [esp + 0x60]
call fcn.00496bb0
mov ecx, dword [edi + 8]
add esp, 0x30
cmp ebx, ecx
jl 0x4ad77a
jmp 0x4adc31
jge 0x4adb20
mov ecx, dword [0x12ff7a0]
lea eax, [eax + eax*2]
shl eax, 4
mov ebp, dword [ecx + 0x90]
sub ebp, eax
mov eax, dword [esp + 0x20]
cmp ebp, eax
mov dword [esp + 0x70], ebp
je 0x4ad933
mov eax, dword [0x13001d0]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x58], ebx
jle 0x4ad92d
mov edx, dword [0x13001d4]
lea ecx, [edx + 8]
mov eax, dword [ecx]
lea edx, [ecx - 8]
cmp eax, 1
mov dword [esp + 0x74], edx
jl 0x4ad8d3
mov ebp, dword [0x1318c74]
cmp eax, ebp
mov ebp, dword [esp + 0x70]
jl 0x4ad8d5
xor eax, eax
lea eax, [eax + eax*8]
shl eax, 4
add eax, 0x13002b4
cmp dword [eax + 0x80], 1
jne 0x4ad8f1
cmp dword [eax + 0x8c], ebp
je 0x4ad901
mov eax, dword [0x13001d0]
inc ebx
add ecx, 0x1bc
cmp ebx, eax
jl 0x4ad8b7
mov dword [esp + 0x58], ebx
mov eax, dword [edx + 0x48]
add edx, 0x20
mov dword [esp + 0x5c], eax
mov ecx, dword [edx + 0x2c]
mov dword [esp + 0x60], ecx
mov eax, dword [edx + 0x30]
lea ecx, [esp + 0x78]
mov dword [esp + 0x64], eax
push ecx
push edx
call fcn.0045f720
add esp, 8
jmp 0x4ad937
mov edx, dword [esp + 0x74]
jmp 0x4ad905
mov ebx, dword [esp + 0x58]
cmp ebx, dword [0x13001d0]
je 0x4adb13
mov ecx, dword [edi + 8]
lea eax, [esp + 0x9c]
test ecx, ecx
jle 0x4ad9fe
mov edx, edi
lea ebx, [esp + 0x9c]
sub edx, ebx
mov ebx, ecx
add edx, 0x18
fld dword [esp + 0x78]
fmul dword [edx + eax]
add eax, 0x18
dec ebx
fst dword [esp + 0x20]
fstp dword [eax - 0x18]
fld dword [edx + eax - 0x14]
fld dword [esp + 0x84]
fmul st(1)
fadd dword [esp + 0x20]
fst dword [esp + 0x20]
fstp dword [eax - 0x18]
fld dword [edx + eax - 0x10]
fld dword [esp + 0x90]
fmul st(1)
fadd dword [esp + 0x20]
fadd dword [esp + 0x5c]
fstp dword [eax - 0x18]
fld dword [esp + 0x7c]
fmul dword [edx + eax - 0x18]
fld dword [esp + 0x88]
fmul st(3)
faddp st(1)
fld dword [esp + 0x94]
fmul st(2)
faddp st(1)
fadd dword [esp + 0x60]
fstp dword [eax - 0x14]
fld dword [esp + 0x80]
fmul dword [edx + eax - 0x18]
fld dword [esp + 0x8c]
fmul st(3)
faddp st(1)
fld dword [esp + 0x98]
fmul st(2)
faddp st(1)
fstp st(2)
fstp st(0)
fadd dword [esp + 0x64]
fstp dword [eax - 0x10]
jne 0x4ad965
xor ebx, ebx
test ecx, ecx
jle 0x4adb13
fld dword [0x5314e8]
fsub dword [esp + 0x24]
fstp dword [esp + 0x10]
mov eax, ebx
push 0x3f800000
cdq
fld dword [esp + 0x38]
idiv ecx
fmul qword [0x531968]
inc ebx
push esi
push esi
push esi
lea eax, [edx + edx*2]
lea ebp, [esp + eax*8 + 0xac]
mov eax, ebx
cdq
fld dword [ebp]
idiv ecx
fadd st(1)
fstp dword [esp + 0x24]
fld dword [esp + 0x48]
fmul qword [0x531968]
fld dword [ebp + 4]
fadd st(1)
fstp dword [esp + 0x28]
fld dword [esp + 0x4c]
fmul qword [0x531968]
fstp qword [esp + 0x78]
fld dword [ebp + 8]
fadd qword [esp + 0x78]
fstp dword [esp + 0x2c]
lea ecx, [edx + edx*2]
lea edx, [esp + 0x38]
push edx
fld dword [esp + ecx*8 + 0xb0]
lea eax, [esp + ecx*8 + 0xb0]
fadd st(2)
fstp dword [esp + 0x3c]
fld dword [eax + 4]
fadd st(1)
fstp dword [esp + 0x40]
fstp st(0)
fstp st(0)
fld dword [eax + 8]
fadd qword [esp + 0x7c]
lea eax, [esp + 0x28]
push eax
fstp dword [esp + 0x48]
call fcn.00496bb0
fld dword [esp + 0x4c]
fmul qword [0x532208]
mov ecx, dword [esp + 0x28]
push 0x3f800000
push esi
push ecx
fadd dword [esp + 0x38]
lea edx, [esp + 0x4c]
push 0x3dcccccd
lea eax, [esp + 0x3c]
push edx
push eax
fstp dword [esp + 0x58]
fld dword [esp + 0x68]
fmul qword [0x532208]
fadd dword [esp + 0x48]
fstp dword [esp + 0x5c]
fld dword [esp + 0x6c]
fmul qword [0x532208]
fadd dword [esp + 0x4c]
fstp dword [esp + 0x60]
call fcn.00496bb0
mov ecx, dword [edi + 8]
add esp, 0x30
cmp ebx, ecx
jl 0x4ada16
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x20], ecx
jmp 0x4adc31
mov ecx, dword [edi + 8]
xor ebx, ebx
test ecx, ecx
jle 0x4adc31
fld dword [0x5314e8]
fsub dword [esp + 0x24]
fstp dword [esp + 0x10]
mov eax, ebx
push 0x3f800000
cdq
fld dword [esp + 0x38]
idiv ecx
fmul qword [0x531968]
push esi
push esi
push esi
inc edx
inc ebx
mov eax, ebx
lea edx, [edx + edx*2]
lea ebp, [edi + edx*8]
cdq
fld dword [ebp]
idiv ecx
fadd st(1)
fstp dword [esp + 0x24]
fld dword [esp + 0x48]
fmul qword [0x531968]
fld dword [ebp + 4]
fadd st(1)
fstp dword [esp + 0x28]
fld dword [esp + 0x4c]
fmul qword [0x531968]
fstp qword [esp + 0x78]
fld dword [ebp + 8]
fadd qword [esp + 0x78]
lea ecx, [esp + 0x38]
push ecx
fstp dword [esp + 0x30]
inc edx
lea eax, [edx + edx*2]
lea edx, [esp + 0x28]
push edx
fld dword [edi + eax*8]
lea eax, [edi + eax*8]
fadd st(2)
fstp dword [esp + 0x40]
fld dword [eax + 4]
fadd st(1)
fstp dword [esp + 0x44]
fstp st(0)
fstp st(0)
fld dword [eax + 8]
fadd qword [esp + 0x80]
fstp dword [esp + 0x48]
call fcn.00496bb0
fld dword [esp + 0x4c]
fmul qword [0x532208]
mov eax, dword [esp + 0x28]
push 0x3f800000
push esi
push eax
fadd dword [esp + 0x38]
lea ecx, [esp + 0x4c]
push 0x3dcccccd
lea edx, [esp + 0x3c]
push ecx
push edx
fstp dword [esp + 0x58]
fld dword [esp + 0x68]
fmul qword [0x532208]
fadd dword [esp + 0x48]
fstp dword [esp + 0x5c]
fld dword [esp + 0x6c]
fmul qword [0x532208]
fadd dword [esp + 0x4c]
fstp dword [esp + 0x60]
call fcn.00496bb0
mov ecx, dword [edi + 8]
add esp, 0x30
cmp ebx, ecx
jl 0x4adb3b
mov edi, dword [edi + 0xd8]
test edi, edi
jne 0x4ad754
fld dword [0x5314e8]
fsub dword [esp + 0x24]
mov ecx, dword [0x12ff554]
fstp dword [esp + 0x24]
fld dword [ecx + 0x2c]
fadd dword [ecx + 0x28]
fmul dword [ecx + 0x24]
fmul qword [0x531978]
fcom dword [0x53165c]
fnstsw ax
test ah, 5
jp 0x4adc77
fstp st(0)
fld dword [0x53165c]
fld dword [esp + 0x34]
fmul st(1)
lea eax, [ecx + 0xc]
mov esi, dword [esp + 0x24]
push 0x3f800000
push esi
fadd dword [eax]
lea ecx, [esp + 0x1c]
fstp dword [esp + 0x1c]
fld dword [esp + 0x40]
fmul st(1)
fadd dword [eax + 4]
fstp dword [esp + 0x20]
fld dword [esp + 0x44]
fmul st(1)
fadd dword [eax + 8]
fstp dword [esp + 0x24]
fstp st(0)
fld dword [0x5314e8]
fsub dword [esp + 0x2c]
fstp dword [esp + 0x18]
mov edi, dword [esp + 0x18]
push edi
push 0x3dcccccd
push ecx
push eax
call fcn.00496bb0
mov ecx, dword [0x12ff554]
add esp, 0x18
fld dword [ecx + 0x2c]
fmul dword [ecx + 0x24]
fcom dword [0x5314e8]
fnstsw ax
test ah, 5
jp 0x4adcf3
fstp st(0)
fld dword [0x5314e8]
fld st(0)
fld dword [esp + 0x40]
fmul st(1)
push 0x3f800000
push esi
push edi
lea edx, [esp + 0x20]
fadd dword [ecx + 0xc]
push 0x3dcccccd
lea eax, [esp + 0x6c]
push edx
push eax
fstp dword [esp + 0x74]
fld dword [esp + 0x5c]
fmul st(1)
fadd dword [ecx + 0x10]
fstp dword [esp + 0x78]
fld dword [esp + 0x60]
fmul st(1)
fadd dword [ecx + 0x14]
fstp dword [esp + 0x7c]
fstp st(0)
fchs
fld dword [esp + 0x58]
fmul st(1)
fadd dword [ecx + 0xc]
fstp dword [esp + 0x2c]
fld dword [esp + 0x5c]
fmul st(1)
fadd dword [ecx + 0x10]
fstp dword [esp + 0x30]
fld dword [esp + 0x60]
fmul st(1)
fadd dword [ecx + 0x14]
fstp dword [esp + 0x34]
fstp st(0)
call fcn.00496bb0
mov ecx, dword [0x12ff554]
add esp, 0x18
fld dword [ecx + 0x28]
fmul dword [ecx + 0x24]
fcom dword [0x5314e8]
fnstsw ax
test ah, 5
jp 0x4add88
fstp st(0)
fld dword [0x5314e8]
fld st(0)
fld dword [esp + 0x4c]
fmul st(1)
push 0x3f800000
push esi
push edi
push 0x3dcccccd
fadd dword [ecx + 0xc]
lea edx, [esp + 0x6c]
fstp dword [esp + 0x6c]
fld dword [esp + 0x60]
fmul st(1)
fadd dword [ecx + 0x10]
fstp dword [esp + 0x70]
fld dword [esp + 0x64]
fmul st(1)
fadd dword [ecx + 0x14]
fstp dword [esp + 0x74]
fstp st(0)
fchs
fld dword [esp + 0x5c]
fmul st(1)
fadd dword [ecx + 0xc]
fstp dword [esp + 0x24]
fld dword [esp + 0x60]
fmul st(1)
fadd dword [ecx + 0x10]
fstp dword [esp + 0x28]
fld dword [esp + 0x64]
fmul st(1)
fadd dword [ecx + 0x14]
lea ecx, [esp + 0x24]
push ecx
push edx
fstp dword [esp + 0x34]
fstp st(0)
call fcn.00496bb0
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14c
ret
push ecx
mov eax, dword [0x13d37b8]
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x4bc798
test byte [0x13001a4], 1
jne 0x4bc798
mov ecx, dword [0x13d36a8]
mov dword [0x12ffdd4], 0x3fe
mov dword [0x12ffddc], 0x3fe00
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x4bc4f4
call fcn.004cfa00
mov edx, dword [0x13d37bc]
push ebp
push esi
push edi
mov eax, dword [edx + 0x20]
test eax, eax
jne 0x4bc700
mov esi, dword [0x12ff7a0]
test esi, esi
jne 0x4bc528
push str.R_PointInLeaf:_bad_model
push 1
call dword [0x12ff6a4]
mov esi, dword [0x12ff7a0]
add esp, 8
mov edx, dword [esi + 0xa4]
cmp dword [edx], 0xffffffff
jne 0x4bc584
mov ecx, dword [edx + 0x24]
mov al, byte [ecx + 0x10]
cmp al, 3
jae 0x4bc54b
and eax, 0xff
fld dword [eax*4 + 0x12ffee0]
jmp 0x4bc569
fld dword [0x12ffee8]
fmul dword [ecx + 8]
fld dword [0x12ffee4]
fmul dword [ecx + 4]
faddp st(1)
fld dword [0x12ffee0]
fmul dword [ecx]
faddp st(1)
fsub dword [ecx + 0xc]
xor eax, eax
fstp dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
test ecx, ecx
setl al
mov edx, dword [edx + eax*4 + 0x28]
cmp dword [edx], 0xffffffff
je 0x4bc533
mov edi, dword [edx + 0x30]
mov eax, dword [0x1300250]
cmp eax, edi
mov eax, dword [0x13d3648]
jne 0x4bc5aa
mov ecx, dword [0x13001c8]
test ecx, ecx
jne 0x4bc5aa
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x4bc700
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x4bc5b8
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x4bc5e7
mov dword [eax + 0x14], 0
mov ecx, dword [0x13d3648]
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x4bc5e1
mov edx, dword [edx + 0x34]
push edx
push edi
push str.cluster:_i__area:_i_n
push 0
call dword [0x12ff6a0]
add esp, 0x10
mov esi, dword [0x12ff7a0]
mov edx, dword [0x12ff784]
mov eax, dword [0x13d369c]
inc edx
mov dword [0x1300250], edi
mov dword [0x12ff784], edx
mov ecx, dword [eax + 0x20]
test ecx, ecx
jne 0x4bc6c8
cmp edi, 0xffffffff
je 0x4bc6c8
test esi, esi
je 0x4bc63a
mov eax, dword [esi + 0x424]
test eax, eax
je 0x4bc63a
test edi, edi
jl 0x4bc63a
cmp edi, dword [esi + 0x41c]
jge 0x4bc63a
mov ebp, dword [esi + 0x420]
imul ebp, edi
add ebp, eax
jmp 0x4bc640
mov ebp, dword [esi + 0x428]
mov eax, dword [esi + 0x9c]
mov edi, dword [esi + 0xa4]
xor edx, edx
test eax, eax
jle 0x4bc700
push ebx
mov eax, dword [edi + 0x30]
test eax, eax
jl 0x4bc6b7
cmp eax, dword [esi + 0x41c]
jge 0x4bc6b7
mov ecx, eax
mov ebx, 1
and ecx, 7
shl ebx, cl
sar eax, 3
mov cl, byte [eax + ebp]
test cl, bl
je 0x4bc6b7
mov eax, dword [edi + 0x34]
mov ebx, 1
mov ecx, eax
and ecx, 7
shl ebx, cl
sar eax, 3
mov al, byte [eax + 0x13001a8]
test al, bl
jne 0x4bc6b7
mov eax, edi
mov ecx, dword [0x12ff784]
mov ebx, dword [eax + 4]
cmp ebx, ecx
je 0x4bc6b7
mov dword [eax + 4], ecx
mov eax, dword [eax + 0x20]
mov esi, dword [0x12ff7a0]
test eax, eax
jne 0x4bc69a
mov eax, dword [esi + 0x9c]
inc edx
add edi, 0x60
cmp edx, eax
jl 0x4bc657
pop ebx
jmp 0x4bc700
mov eax, dword [esi + 0x9c]
xor edx, edx
test eax, eax
jle 0x4bc700
xor ecx, ecx
mov eax, dword [esi + 0xa4]
add eax, ecx
cmp dword [eax], 1
je 0x4bc6f2
mov esi, dword [0x12ff784]
mov dword [eax + 4], esi
mov esi, dword [0x12ff7a0]
mov eax, dword [esi + 0x9c]
inc edx
add ecx, 0x60
cmp edx, eax
jl 0x4bc6d6
push 0x12fffd8
push 0x12fffcc
call fcn.00458b20
mov ecx, dword [0x13001e0]
add esp, 8
cmp ecx, 0x20
pop edi
pop esi
pop ebp
jle 0x4bc72b
mov ecx, 0x20
mov dword [0x13001e0], ecx
mov edx, 1
mov eax, dword [0x12ff7a0]
shl edx, cl
mov ecx, dword [eax + 0xa4]
dec edx
push edx
mov edx, dword [0x12ffff4]
neg edx
sbb edx, edx
and edx, 0x10
add edx, 0xf
call fcn.004bc7a0
mov ecx, dword [0x13d36a8]
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x4bc766
call fcn.004cfe50
mov edx, dword [0x13d37a0]
mov eax, dword [edx + 0x20]
test eax, eax
je 0x4bc778
call fcn.004a8e10
mov eax, dword [0x7d1e00]
test eax, eax
je 0x4bc790
mov dword [0x7d1e00], 0
call fcn.004a8c70
add esp, 4
jmp 0x4ace70
pop ecx
ret