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

Disassembly:
mov eax, dword [0x1313970]
sub esp, 0x14c
mov ecx, dword [eax + 0x20]
push ebx
push ebp
push esi
xor esi, esi
push edi
cmp ecx, esi
je 0x4b0b6c
mov ecx, dword [0x1313988]
mov eax, dword [ecx + 0x20]
cmp eax, esi
mov eax, dword [0x1313b38]
je 0x4afff3
cmp eax, esi
jne 0x4afc46
push 0x26
push esi
push 0x1313b3c
call fcn.0044ef50
add esp, 0xc
mov dword [0x1313b40], 0xfffffc18
mov dword [0x1313bd4], esi
mov dword [0x1313bd8], esi
mov dword [0x1313b38], 1
mov edx, dword [0x1313be8]
mov eax, dword [edx + 4]
push eax
call fcn.004ab630
mov ecx, dword [0x1313be4]
mov edx, dword [0x1313984]
mov dword [0x1313b44], eax
add esp, 4
fld dword [ecx + 0x1c]
fmul dword [edx + 0x1c]
fst dword [0x1313b4c]
fcomp dword [0x5355dc]
fnstsw ax
test ah, 5
jp 0x4afc8e
mov dword [0x1313b4c], 0x40000000
jmp 0x4afcad
fld dword [0x1313b4c]
fcomp dword [0x53632c]
fnstsw ax
and eax, 0x4100
jne 0x4afcad
mov dword [0x1313b4c], 0x44800000
mov eax, dword [0x1313bdc]
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x10], ecx
fld dword [esp + 0x10]
fcomp dword [0x5354b0]
fnstsw ax
test ah, 5
jp 0x4afcd4
mov dword [esp + 0x10], 0
jmp 0x4afcef
fld dword [esp + 0x10]
fcomp dword [0x5354d8]
fnstsw ax
and eax, 0x4100
jne 0x4afcef
mov dword [esp + 0x10], 0x3f800000
mov edx, dword [0x1313974]
mov eax, dword [0x1313bf0]
fld dword [0x5354d8]
fdiv dword [edx + 0x1c]
mov ecx, dword [eax + 0x1c]
mov edx, dword [0x1313bfc]
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 [0x1313c00]
push eax
mov edx, dword [ecx + 0x1c]
push edx
push ebx
push 0x1313b3c
call dword [0x1313d18]
add esp, 0x18
cmp eax, 1
jne 0x4afd7b
mov eax, dword [0x1313bd8]
mov ecx, dword [0x1313bf0]
mov dword [0x1313bd4], eax
mov eax, dword [0x1313bfc]
mov dword [0x1313bd8], esi
mov edx, dword [ecx + 0x1c]
mov ecx, dword [eax + 0x1c]
push edi
push edx
mov edx, dword [0x1313c00]
push ecx
mov eax, dword [edx + 0x1c]
push eax
push ebx
push 0x1313b3c
call dword [0x1313d18]
add esp, 0x18
jmp 0x4afd84
cmp eax, 0xffffffff
je 0x4affc7
mov eax, dword [0x1313bd8]
mov ebp, 0x1313ab0
cmp eax, esi
mov ebx, 0x41000000
je 0x4afdd0
push 2
push 1
push 1
push 0x5619ac
push 0x5619ac
mov dword [0x1313b34], eax
call fcn.004ae050
mov ecx, eax
add esp, 0x14
cmp ecx, esi
mov dword [0x1313b34], ecx
jne 0x4afec2
mov ecx, dword [0x1313bd8]
push ecx
jmp 0x4afeb4
mov eax, dword [0x1313b30]
cmp eax, esi
jne 0x4afe16
push 0x4000
call dword [0x1313c94]
add esp, 4
cmp eax, esi
jne 0x4afdf2
xor eax, eax
jmp 0x4afe7b
mov dword [0x1313b30], eax
mov ecx, eax
mov edi, 0x7f
lea edx, [ecx + 0x80]
dec edi
mov dword [ecx], edx
mov ecx, edx
jne 0x4afdfe
mov dword [eax + 0x3f80], esi
mov eax, dword [0x1313b30]
mov edx, dword [eax]
mov ecx, dword [0x1313ab0]
mov dword [0x1313b30], edx
mov dword [eax], ecx
mov dword [eax + 4], ebp
mov edx, dword [0x1313ab0]
mov dword [edx + 4], eax
mov ecx, dword [0x1313ddc]
mov dword [0x1313ab0], 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 [0x1313bd8], eax
je 0x4afebc
push 2
push 1
push 1
push 0x5619ac
push 0x5619ac
mov dword [0x1313b34], eax
call fcn.004ae050
mov ecx, eax
add esp, 0x14
cmp ecx, esi
mov dword [0x1313b34], ecx
jne 0x4afec2
mov edx, dword [0x1313bd8]
push edx
call fcn.004add30
add esp, 4
mov ecx, dword [0x1313b34]
cmp dword [0x1313b48], 3
jne 0x4affcd
mov eax, dword [0x1313bd4]
cmp eax, esi
jne 0x4aff90
mov eax, dword [0x1313b30]
cmp eax, esi
jne 0x4aff22
push 0x4000
call dword [0x1313c94]
add esp, 4
cmp eax, esi
jne 0x4afefe
xor eax, eax
jmp 0x4aff87
mov dword [0x1313b30], eax
mov ecx, eax
mov edi, 0x7f
lea edx, [ecx + 0x80]
dec edi
mov dword [ecx], edx
mov ecx, edx
jne 0x4aff0a
mov dword [eax + 0x3f80], esi
mov eax, dword [0x1313b30]
mov ecx, dword [eax]
mov edx, dword [0x1313ab0]
mov dword [0x1313b30], ecx
mov dword [eax], edx
mov dword [eax + 4], ebp
mov ecx, dword [0x1313ab0]
mov dword [ecx + 4], eax
mov edx, dword [0x1313ddc]
mov ecx, 0x3f800000
mov dword [0x1313ab0], 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 [0x1313bd4], eax
je 0x4affc7
push 1
push 1
push 1
push 0x5619ac
push 0x5619ac
mov dword [0x1313b34], eax
call fcn.004ae050
mov ecx, eax
add esp, 0x14
cmp ecx, esi
mov dword [0x1313b34], ecx
jne 0x4affcd
mov eax, dword [0x1313bd4]
push eax
call fcn.004add30
add esp, 4
mov ecx, dword [0x1313b34]
mov eax, dword [0x1313bd8]
cmp eax, esi
je 0x4affe0
mov ecx, eax
mov dword [0x1313b34], ecx
jmp 0x4b0003
mov eax, dword [0x1313bd4]
cmp eax, esi
je 0x4b0003
mov ecx, eax
mov dword [0x1313b34], ecx
jmp 0x4b0003
mov ecx, dword [0x1313b34]
cmp eax, esi
je 0x4b0003
mov dword [0x1313b38], esi
cmp dword [0x1313aa8], esi
je 0x4b038b
cmp ecx, esi
je 0x4b038b
cmp dword [ecx + 0x30], 0xbf800000
je 0x4b038b
mov eax, dword [0x1313be8]
xor ebx, ebx
cmp dword [eax + 0x14], esi
je 0x4b00dc
mov ecx, dword [eax + 4]
push ecx
call fcn.004ab630
add esp, 4
cmp eax, esi
je 0x4b00cd
push eax
call fcn.004ab810
mov edi, eax
mov eax, dword [0x1313ddc]
add esp, 4
cmp edi, eax
je 0x4b00cd
mov eax, dword [0x1313b34]
cmp dword [eax + 8], edi
je 0x4b00cd
push 0x41800000
push str.dcl_radius
mov dword [eax + 8], edi
mov ebx, 1
call fcn.0044fb90
mov edx, dword [0x1313984]
add esp, 4
mov dword [edx + 0x14], esi
mov eax, dword [edi + 0x174]
mov ecx, dword [eax + 4]
fild dword [ecx + 0x44]
fmul dword [0x536328]
fstp dword [esp]
push str.dcl_heightscale
call fcn.0044fb90
mov edx, dword [edi + 0x174]
add esp, 4
mov eax, dword [edx + 4]
fild dword [eax + 0x40]
fmul dword [0x536328]
fstp dword [esp]
push str.dcl_widthscale
call fcn.0044fb90
add esp, 8
mov ecx, dword [0x1313be8]
mov dword [ecx + 0x14], esi
mov ecx, dword [0x1313b34]
mov edx, dword [0x1313984]
cmp dword [edx + 0x14], esi
je 0x4b010e
fld dword [ecx + 0x24]
fcomp dword [edx + 0x1c]
fnstsw ax
test ah, 0x44
jnp 0x4b0105
mov edx, dword [edx + 0x1c]
mov ebx, 1
mov dword [ecx + 0x24], edx
mov edx, dword [0x1313984]
mov dword [edx + 0x14], esi
mov ecx, dword [0x1313b34]
mov edx, dword [0x1313be0]
cmp dword [edx + 0x14], esi
je 0x4b0140
fld dword [ecx + 0x28]
fcomp dword [edx + 0x1c]
fnstsw ax
test ah, 0x44
jnp 0x4b0137
mov eax, dword [edx + 0x1c]
mov ebx, 1
mov dword [ecx + 0x28], eax
mov edx, dword [0x1313be0]
mov dword [edx + 0x14], esi
mov ecx, dword [0x1313b34]
mov edx, dword [0x1313be4]
cmp dword [edx + 0x14], esi
je 0x4b0172
fld dword [ecx + 0x2c]
fcomp dword [edx + 0x1c]
fnstsw ax
test ah, 0x44
jnp 0x4b0169
mov edx, dword [edx + 0x1c]
mov ebx, 1
mov dword [ecx + 0x2c], edx
mov edx, dword [0x1313be4]
mov dword [edx + 0x14], esi
mov ecx, dword [0x1313b34]
mov eax, dword [0x1313c08]
cmp dword [eax + 0x14], esi
je 0x4b01b3
mov eax, dword [eax + 0x1c]
push eax
call fcn.00463070
mov ecx, dword [0x1313b34]
add esp, 4
fcom dword [ecx + 0x30]
fnstsw ax
test ah, 0x44
jnp 0x4b01a2
fstp dword [ecx + 0x30]
mov ebx, 1
jmp 0x4b01a4
fstp st(0)
mov ecx, dword [0x1313c08]
mov dword [ecx + 0x14], esi
mov ecx, dword [0x1313b34]
mov edx, dword [0x1313994]
cmp dword [edx + 0x14], esi
je 0x4b0214
fld dword [edx + 0x1c]
fcom dword [0x5354b0]
fnstsw ax
test ah, 5
jp 0x4b01d8
fstp st(0)
fld dword [0x5354b0]
jmp 0x4b01ef
fcom dword [0x5354d8]
fnstsw ax
and eax, 0x4100
jne 0x4b01ef
fstp st(0)
fld dword [0x5354d8]
fcom dword [ecx + 0x34]
fnstsw ax
test ah, 0x44
jnp 0x4b0209
fstp dword [ecx + 0x34]
mov edx, dword [0x1313994]
mov ebx, 1
jmp 0x4b020b
fstp st(0)
mov dword [edx + 0x14], esi
mov ecx, dword [0x1313b34]
mov edx, dword [0x1313990]
cmp dword [edx + 0x14], esi
je 0x4b0275
fld dword [edx + 0x1c]
fcom dword [0x5354b0]
fnstsw ax
test ah, 5
jp 0x4b0239
fstp st(0)
fld dword [0x5354b0]
jmp 0x4b0250
fcom dword [0x5354d8]
fnstsw ax
and eax, 0x4100
jne 0x4b0250
fstp st(0)
fld dword [0x5354d8]
fcom dword [ecx + 0x38]
fnstsw ax
test ah, 0x44
jnp 0x4b026a
fstp dword [ecx + 0x38]
mov edx, dword [0x1313990]
mov ebx, 1
jmp 0x4b026c
fstp st(0)
mov dword [edx + 0x14], esi
mov ecx, dword [0x1313b34]
mov edx, dword [0x131398c]
cmp dword [edx + 0x14], esi
je 0x4b02d6
fld dword [edx + 0x1c]
fcom dword [0x5354b0]
fnstsw ax
test ah, 5
jp 0x4b029a
fstp st(0)
fld dword [0x5354b0]
jmp 0x4b02b1
fcom dword [0x5354d8]
fnstsw ax
and eax, 0x4100
jne 0x4b02b1
fstp st(0)
fld dword [0x5354d8]
fcom dword [ecx + 0x3c]
fnstsw ax
test ah, 0x44
jnp 0x4b02cb
fstp dword [ecx + 0x3c]
mov edx, dword [0x131398c]
mov ebx, 1
jmp 0x4b02cd
fstp st(0)
mov dword [edx + 0x14], esi
mov ecx, dword [0x1313b34]
mov edx, dword [0x1313bdc]
cmp dword [edx + 0x14], esi
je 0x4b0337
fld dword [edx + 0x1c]
fcom dword [0x5354b0]
fnstsw ax
test ah, 5
jp 0x4b02fb
fstp st(0)
fld dword [0x5354b0]
jmp 0x4b0312
fcom dword [0x5354d8]
fnstsw ax
and eax, 0x4100
jne 0x4b0312
fstp st(0)
fld dword [0x5354d8]
fcom dword [ecx + 0x40]
fnstsw ax
test ah, 0x44
jnp 0x4b032c
fstp dword [ecx + 0x40]
mov edx, dword [0x1313bdc]
mov ebx, 1
jmp 0x4b032e
fstp st(0)
mov dword [edx + 0x14], esi
mov ecx, dword [0x1313b34]
mov edi, dword [0x1313998]
cmp dword [edi + 0x14], esi
je 0x4b036a
mov ebp, dword [edi + 0x20]
mov edx, dword [ecx + 0x44]
xor eax, eax
cmp ebp, esi
setne al
cmp edx, eax
je 0x4b0361
mov dword [ecx + 0x44], eax
mov edi, dword [0x1313998]
mov ebx, 1
mov dword [edi + 0x14], esi
mov ecx, dword [0x1313b34]
cmp ebx, esi
je 0x4b038b
push esi
push 1
lea edx, [ecx + 0x18]
push 1
add ecx, 0xc
push edx
push ecx
call fcn.004ae050
mov ecx, eax
add esp, 0x14
mov dword [0x1313b34], ecx
mov eax, dword [0x1313bf8]
cmp dword [eax + 0x20], esi
je 0x4b0b6c
cmp ecx, esi
je 0x4b0b6c
cmp dword [ecx + 0x4c], esi
je 0x4b0b6c
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.00461cc0
mov eax, dword [0x1313b34]
add esp, 4
fld dword [esp + 0x20]
fadd dword [eax + 0x30]
fstp dword [esp]
call fcn.00463070
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.0045b1f0
mov eax, dword [0x1313b34]
lea edx, [esp + 0x48]
add eax, 0x18
push edx
push eax
call fcn.0045afb0
lea ecx, [esp + 0x50]
lea edx, [esp + 0x5c]
push ecx
push edx
fstp st(0)
call fcn.00464060
mov eax, dword [0x1313b34]
add esp, 0x20
fld dword [eax + 0x30]
fadd dword [0x535944]
fstp dword [esp]
call fcn.00463070
fstp dword [esp]
lea ecx, [esp + 0x44]
lea edx, [esp + 0x38]
push ecx
lea eax, [esp + 0x54]
push edx
push eax
call fcn.00461a80
fld dword [esp + 0x64]
fmul dword [esp + 0x48]
fld dword [esp + 0x60]
fmul dword [esp + 0x4c]
mov ecx, dword [0x1313b34]
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 [0x131477c]
mov edi, dword [ecx + 0x48]
cmp edi, esi
fmul qword [0x535e00]
fsin
fmul qword [0x535ab0]
fadd qword [0x536320]
fstp dword [esp + 0x24]
je 0x4b09af
mov esi, dword [esp + 0x24]
mov eax, dword [edi + 4]
test eax, eax
jle 0x4b05e5
mov ecx, dword [edi + 8]
xor ebx, ebx
test ecx, ecx
jle 0x4b09a1
fld dword [0x5354d8]
fsub dword [esp + 0x24]
fstp dword [esp + 0x10]
mov eax, ebx
push 0x3f800000
cdq
fld dword [esp + 0x38]
idiv ecx
fmul qword [0x535980]
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 [0x535980]
fld dword [ebp + 4]
fadd st(1)
fstp dword [esp + 0x28]
fld dword [esp + 0x4c]
fmul qword [0x535980]
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.0049a4e0
fld dword [esp + 0x4c]
fmul qword [0x536318]
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 [0x536318]
fadd dword [esp + 0x48]
fstp dword [esp + 0x5c]
fld dword [esp + 0x6c]
fmul qword [0x536318]
fadd dword [esp + 0x4c]
fstp dword [esp + 0x60]
call fcn.0049a4e0
mov ecx, dword [edi + 8]
add esp, 0x30
cmp ebx, ecx
jl 0x4b04ea
jmp 0x4b09a1
jge 0x4b0890
mov ecx, dword [0x1313d80]
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 0x4b06a3
mov eax, dword [0x13147ac]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x58], ebx
jle 0x4b069d
mov edx, dword [0x13147b0]
lea ecx, [edx + 8]
mov eax, dword [ecx]
lea edx, [ecx - 8]
cmp eax, 1
mov dword [esp + 0x74], edx
jl 0x4b0643
mov ebp, dword [0x132d250]
cmp eax, ebp
mov ebp, dword [esp + 0x70]
jl 0x4b0645
xor eax, eax
lea eax, [eax + eax*8]
shl eax, 4
add eax, 0x1314890
cmp dword [eax + 0x80], 1
jne 0x4b0661
cmp dword [eax + 0x8c], ebp
je 0x4b0671
mov eax, dword [0x13147ac]
inc ebx
add ecx, 0x1b8
cmp ebx, eax
jl 0x4b0627
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.00461dd0
add esp, 8
jmp 0x4b06a7
mov edx, dword [esp + 0x74]
jmp 0x4b0675
mov ebx, dword [esp + 0x58]
cmp ebx, dword [0x13147ac]
je 0x4b0883
mov ecx, dword [edi + 8]
lea eax, [esp + 0x9c]
test ecx, ecx
jle 0x4b076e
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 0x4b06d5
xor ebx, ebx
test ecx, ecx
jle 0x4b0883
fld dword [0x5354d8]
fsub dword [esp + 0x24]
fstp dword [esp + 0x10]
mov eax, ebx
push 0x3f800000
cdq
fld dword [esp + 0x38]
idiv ecx
fmul qword [0x535980]
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 [0x535980]
fld dword [ebp + 4]
fadd st(1)
fstp dword [esp + 0x28]
fld dword [esp + 0x4c]
fmul qword [0x535980]
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.0049a4e0
fld dword [esp + 0x4c]
fmul qword [0x536318]
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 [0x536318]
fadd dword [esp + 0x48]
fstp dword [esp + 0x5c]
fld dword [esp + 0x6c]
fmul qword [0x536318]
fadd dword [esp + 0x4c]
fstp dword [esp + 0x60]
call fcn.0049a4e0
mov ecx, dword [edi + 8]
add esp, 0x30
cmp ebx, ecx
jl 0x4b0786
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x20], ecx
jmp 0x4b09a1
mov ecx, dword [edi + 8]
xor ebx, ebx
test ecx, ecx
jle 0x4b09a1
fld dword [0x5354d8]
fsub dword [esp + 0x24]
fstp dword [esp + 0x10]
mov eax, ebx
push 0x3f800000
cdq
fld dword [esp + 0x38]
idiv ecx
fmul qword [0x535980]
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 [0x535980]
fld dword [ebp + 4]
fadd st(1)
fstp dword [esp + 0x28]
fld dword [esp + 0x4c]
fmul qword [0x535980]
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.0049a4e0
fld dword [esp + 0x4c]
fmul qword [0x536318]
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 [0x536318]
fadd dword [esp + 0x48]
fstp dword [esp + 0x5c]
fld dword [esp + 0x6c]
fmul qword [0x536318]
fadd dword [esp + 0x4c]
fstp dword [esp + 0x60]
call fcn.0049a4e0
mov ecx, dword [edi + 8]
add esp, 0x30
cmp ebx, ecx
jl 0x4b08ab
mov edi, dword [edi + 0xd8]
test edi, edi
jne 0x4b04c4
fld dword [0x5354d8]
fsub dword [esp + 0x24]
mov ecx, dword [0x1313b34]
fstp dword [esp + 0x24]
fld dword [ecx + 0x2c]
fadd dword [ecx + 0x28]
fmul dword [ecx + 0x24]
fmul qword [0x535990]
fcom dword [0x53564c]
fnstsw ax
test ah, 5
jp 0x4b09e7
fstp st(0)
fld dword [0x53564c]
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 [0x5354d8]
fsub dword [esp + 0x2c]
fstp dword [esp + 0x18]
mov edi, dword [esp + 0x18]
push edi
push 0x3dcccccd
push ecx
push eax
call fcn.0049a4e0
mov ecx, dword [0x1313b34]
add esp, 0x18
fld dword [ecx + 0x2c]
fmul dword [ecx + 0x24]
fcom dword [0x5354d8]
fnstsw ax
test ah, 5
jp 0x4b0a63
fstp st(0)
fld dword [0x5354d8]
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.0049a4e0
mov ecx, dword [0x1313b34]
add esp, 0x18
fld dword [ecx + 0x28]
fmul dword [ecx + 0x24]
fcom dword [0x5354d8]
fnstsw ax
test ah, 5
jp 0x4b0af8
fstp st(0)
fld dword [0x5354d8]
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.0049a4e0
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14c
ret
push ecx
mov eax, dword [0x13e6d98]
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x4c01f1
test byte [0x1314780], 1
jne 0x4c01f1
mov ecx, dword [0x13e6c88]
mov dword [0x13143b0], 0x3fe
mov dword [0x13143b8], 0x3fe00
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x4bff34
call fcn.004d3460
mov edx, dword [0x13e6d9c]
push ebp
push esi
push edi
mov eax, dword [edx + 0x20]
test eax, eax
jne 0x4c0140
mov esi, dword [0x1313d80]
test esi, esi
jne 0x4bff68
push str.R_PointInLeaf:_bad_model
push 1
call dword [0x1313c84]
mov esi, dword [0x1313d80]
add esp, 8
mov edx, dword [esi + 0xa4]
cmp dword [edx], 0xffffffff
jne 0x4bffc4
mov ecx, dword [edx + 0x24]
mov al, byte [ecx + 0x10]
cmp al, 3
jae 0x4bff8b
and eax, 0xff
fld dword [eax*4 + 0x13144bc]
jmp 0x4bffa9
fld dword [0x13144c4]
fmul dword [ecx + 8]
fld dword [0x13144c0]
fmul dword [ecx + 4]
faddp st(1)
fld dword [0x13144bc]
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 0x4bff73
mov edi, dword [edx + 0x30]
mov eax, dword [0x131482c]
cmp eax, edi
mov eax, dword [0x13e6c28]
jne 0x4bffea
mov ecx, dword [0x13147a4]
test ecx, ecx
jne 0x4bffea
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x4c0140
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x4bfff8
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x4c0027
mov dword [eax + 0x14], 0
mov ecx, dword [0x13e6c28]
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x4c0021
mov edx, dword [edx + 0x34]
push edx
push edi
push str.cluster:_i__area:_i_n
push 0
call dword [0x1313c80]
add esp, 0x10
mov esi, dword [0x1313d80]
mov edx, dword [0x1313d64]
mov eax, dword [0x13e6c7c]
inc edx
mov dword [0x131482c], edi
mov dword [0x1313d64], edx
mov ecx, dword [eax + 0x20]
test ecx, ecx
jne 0x4c0108
cmp edi, 0xffffffff
je 0x4c0108
test esi, esi
je 0x4c007a
mov eax, dword [esi + 0x424]
test eax, eax
je 0x4c007a
test edi, edi
jl 0x4c007a
cmp edi, dword [esi + 0x41c]
jge 0x4c007a
mov ebp, dword [esi + 0x420]
imul ebp, edi
add ebp, eax
jmp 0x4c0080
mov ebp, dword [esi + 0x428]
mov eax, dword [esi + 0x9c]
mov edi, dword [esi + 0xa4]
xor edx, edx
test eax, eax
jle 0x4c0140
push ebx
mov eax, dword [edi + 0x30]
test eax, eax
jl 0x4c00f7
cmp eax, dword [esi + 0x41c]
jge 0x4c00f7
mov ecx, eax
mov ebx, 1
and ecx, 7
shl ebx, cl
sar eax, 3
mov cl, byte [eax + ebp]
test cl, bl
je 0x4c00f7
mov eax, dword [edi + 0x34]
mov ebx, 1
mov ecx, eax
and ecx, 7
shl ebx, cl
sar eax, 3
mov al, byte [eax + 0x1314784]
test al, bl
jne 0x4c00f7
mov eax, edi
mov ecx, dword [0x1313d64]
mov ebx, dword [eax + 4]
cmp ebx, ecx
je 0x4c00f7
mov dword [eax + 4], ecx
mov eax, dword [eax + 0x20]
mov esi, dword [0x1313d80]
test eax, eax
jne 0x4c00da
mov eax, dword [esi + 0x9c]
inc edx
add edi, 0x60
cmp edx, eax
jl 0x4c0097
pop ebx
jmp 0x4c0140
mov eax, dword [esi + 0x9c]
xor edx, edx
test eax, eax
jle 0x4c0140
xor ecx, ecx
mov eax, dword [esi + 0xa4]
add eax, ecx
cmp dword [eax], 1
je 0x4c0132
mov esi, dword [0x1313d64]
mov dword [eax + 4], esi
mov esi, dword [0x1313d80]
mov eax, dword [esi + 0x9c]
inc edx
add ecx, 0x60
cmp edx, eax
jl 0x4c0116
push 0x13145b4
push 0x13145a8
call fcn.0045b130
mov eax, dword [0x13147bc]
add esp, 8
cmp eax, 0x20
pop edi
pop esi
pop ebp
jle 0x4c0169
mov eax, 0x20
mov dword [0x13147bc], eax
mov ecx, dword [0x13147c0]
push 0x1314440
push ecx
push eax
call fcn.004be4a0
mov ecx, dword [0x13147bc]
mov edx, 1
shl edx, cl
add esp, 0xc
mov eax, dword [0x1313d80]
mov ecx, dword [eax + 0xa4]
dec edx
push edx
mov edx, dword [0x13145d0]
neg edx
sbb edx, edx
and edx, 0x10
add edx, 0xf
call fcn.004c0200
mov ecx, dword [0x13e6c88]
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x4c01bf
call fcn.004d38b0
mov edx, dword [0x13e6d80]
mov eax, dword [edx + 0x20]
test eax, eax
je 0x4c01d1
call fcn.004a6310
mov eax, dword [0x80a278]
test eax, eax
je 0x4c01e9
mov dword [0x80a278], 0
call fcn.004a6170
add esp, 4
jmp 0x4afbe0
pop ecx
ret