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

Disassembly:
mov eax, dword [0x1313930]
sub esp, 0x14c
mov ecx, dword [eax + 0x20]
push ebx
push ebp
push esi
xor esi, esi
push edi
cmp ecx, esi
je 0x4b0bfc
mov ecx, dword [0x1313948]
mov eax, dword [ecx + 0x20]
cmp eax, esi
mov eax, dword [0x1313af8]
je 0x4b0083
cmp eax, esi
jne 0x4afcd6
push 0x26
push esi
push 0x1313afc
call fcn.0044f0f0
add esp, 0xc
mov dword [0x1313b00], 0xfffffc18
mov dword [0x1313b94], esi
mov dword [0x1313b98], esi
mov dword [0x1313af8], 1
mov edx, dword [0x1313ba8]
mov eax, dword [edx + 4]
push eax
call fcn.004ab6c0
mov ecx, dword [0x1313ba4]
mov edx, dword [0x1313944]
mov dword [0x1313b04], eax
add esp, 4
fld dword [ecx + 0x1c]
fmul dword [edx + 0x1c]
fst dword [0x1313b0c]
fcomp dword [0x5355ec]
fnstsw ax
test ah, 5
jp 0x4afd1e
mov dword [0x1313b0c], 0x40000000
jmp 0x4afd3d
fld dword [0x1313b0c]
fcomp dword [0x53633c]
fnstsw ax
and eax, 0x4100
jne 0x4afd3d
mov dword [0x1313b0c], 0x44800000
mov eax, dword [0x1313b9c]
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x10], ecx
fld dword [esp + 0x10]
fcomp dword [0x5354c0]
fnstsw ax
test ah, 5
jp 0x4afd64
mov dword [esp + 0x10], 0
jmp 0x4afd7f
fld dword [esp + 0x10]
fcomp dword [0x5354e8]
fnstsw ax
and eax, 0x4100
jne 0x4afd7f
mov dword [esp + 0x10], 0x3f800000
mov edx, dword [0x1313934]
mov eax, dword [0x1313bb0]
fld dword [0x5354e8]
fdiv dword [edx + 0x1c]
mov ecx, dword [eax + 0x1c]
mov edx, dword [0x1313bbc]
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 [0x1313bc0]
push eax
mov edx, dword [ecx + 0x1c]
push edx
push ebx
push 0x1313afc
call dword [0x1313cd8]
add esp, 0x18
cmp eax, 1
jne 0x4afe0b
mov eax, dword [0x1313b98]
mov ecx, dword [0x1313bb0]
mov dword [0x1313b94], eax
mov eax, dword [0x1313bbc]
mov dword [0x1313b98], esi
mov edx, dword [ecx + 0x1c]
mov ecx, dword [eax + 0x1c]
push edi
push edx
mov edx, dword [0x1313bc0]
push ecx
mov eax, dword [edx + 0x1c]
push eax
push ebx
push 0x1313afc
call dword [0x1313cd8]
add esp, 0x18
jmp 0x4afe14
cmp eax, 0xffffffff
je 0x4b0057
mov eax, dword [0x1313b98]
mov ebp, 0x1313a70
cmp eax, esi
mov ebx, 0x41000000
je 0x4afe60
push 2
push 1
push 1
push 0x561964
push 0x561964
mov dword [0x1313af4], eax
call fcn.004ae0e0
mov ecx, eax
add esp, 0x14
cmp ecx, esi
mov dword [0x1313af4], ecx
jne 0x4aff52
mov ecx, dword [0x1313b98]
push ecx
jmp 0x4aff44
mov eax, dword [0x1313af0]
cmp eax, esi
jne 0x4afea6
push 0x4000
call dword [0x1313c54]
add esp, 4
cmp eax, esi
jne 0x4afe82
xor eax, eax
jmp 0x4aff0b
mov dword [0x1313af0], eax
mov ecx, eax
mov edi, 0x7f
lea edx, [ecx + 0x80]
dec edi
mov dword [ecx], edx
mov ecx, edx
jne 0x4afe8e
mov dword [eax + 0x3f80], esi
mov eax, dword [0x1313af0]
mov edx, dword [eax]
mov ecx, dword [0x1313a70]
mov dword [0x1313af0], edx
mov dword [eax], ecx
mov dword [eax + 4], ebp
mov edx, dword [0x1313a70]
mov dword [edx + 4], eax
mov ecx, dword [0x1313d9c]
mov dword [0x1313a70], 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 [0x1313b98], eax
je 0x4aff4c
push 2
push 1
push 1
push 0x561964
push 0x561964
mov dword [0x1313af4], eax
call fcn.004ae0e0
mov ecx, eax
add esp, 0x14
cmp ecx, esi
mov dword [0x1313af4], ecx
jne 0x4aff52
mov edx, dword [0x1313b98]
push edx
call fcn.004addc0
add esp, 4
mov ecx, dword [0x1313af4]
cmp dword [0x1313b08], 3
jne 0x4b005d
mov eax, dword [0x1313b94]
cmp eax, esi
jne 0x4b0020
mov eax, dword [0x1313af0]
cmp eax, esi
jne 0x4affb2
push 0x4000
call dword [0x1313c54]
add esp, 4
cmp eax, esi
jne 0x4aff8e
xor eax, eax
jmp 0x4b0017
mov dword [0x1313af0], eax
mov ecx, eax
mov edi, 0x7f
lea edx, [ecx + 0x80]
dec edi
mov dword [ecx], edx
mov ecx, edx
jne 0x4aff9a
mov dword [eax + 0x3f80], esi
mov eax, dword [0x1313af0]
mov ecx, dword [eax]
mov edx, dword [0x1313a70]
mov dword [0x1313af0], ecx
mov dword [eax], edx
mov dword [eax + 4], ebp
mov ecx, dword [0x1313a70]
mov dword [ecx + 4], eax
mov edx, dword [0x1313d9c]
mov ecx, 0x3f800000
mov dword [0x1313a70], 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 [0x1313b94], eax
je 0x4b0057
push 1
push 1
push 1
push 0x561964
push 0x561964
mov dword [0x1313af4], eax
call fcn.004ae0e0
mov ecx, eax
add esp, 0x14
cmp ecx, esi
mov dword [0x1313af4], ecx
jne 0x4b005d
mov eax, dword [0x1313b94]
push eax
call fcn.004addc0
add esp, 4
mov ecx, dword [0x1313af4]
mov eax, dword [0x1313b98]
cmp eax, esi
je 0x4b0070
mov ecx, eax
mov dword [0x1313af4], ecx
jmp 0x4b0093
mov eax, dword [0x1313b94]
cmp eax, esi
je 0x4b0093
mov ecx, eax
mov dword [0x1313af4], ecx
jmp 0x4b0093
mov ecx, dword [0x1313af4]
cmp eax, esi
je 0x4b0093
mov dword [0x1313af8], esi
cmp dword [0x1313a68], esi
je 0x4b041b
cmp ecx, esi
je 0x4b041b
cmp dword [ecx + 0x30], 0xbf800000
je 0x4b041b
mov eax, dword [0x1313ba8]
xor ebx, ebx
cmp dword [eax + 0x14], esi
je 0x4b016c
mov ecx, dword [eax + 4]
push ecx
call fcn.004ab6c0
add esp, 4
cmp eax, esi
je 0x4b015d
push eax
call fcn.004ab8a0
mov edi, eax
mov eax, dword [0x1313d9c]
add esp, 4
cmp edi, eax
je 0x4b015d
mov eax, dword [0x1313af4]
cmp dword [eax + 8], edi
je 0x4b015d
push 0x41800000
push str.dcl_radius
mov dword [eax + 8], edi
mov ebx, 1
call fcn.0044fd30
mov edx, dword [0x1313944]
add esp, 4
mov dword [edx + 0x14], esi
mov eax, dword [edi + 0x174]
mov ecx, dword [eax + 4]
fild dword [ecx + 0x44]
fmul dword [0x536338]
fstp dword [esp]
push str.dcl_heightscale
call fcn.0044fd30
mov edx, dword [edi + 0x174]
add esp, 4
mov eax, dword [edx + 4]
fild dword [eax + 0x40]
fmul dword [0x536338]
fstp dword [esp]
push str.dcl_widthscale
call fcn.0044fd30
add esp, 8
mov ecx, dword [0x1313ba8]
mov dword [ecx + 0x14], esi
mov ecx, dword [0x1313af4]
mov edx, dword [0x1313944]
cmp dword [edx + 0x14], esi
je 0x4b019e
fld dword [ecx + 0x24]
fcomp dword [edx + 0x1c]
fnstsw ax
test ah, 0x44
jnp 0x4b0195
mov edx, dword [edx + 0x1c]
mov ebx, 1
mov dword [ecx + 0x24], edx
mov edx, dword [0x1313944]
mov dword [edx + 0x14], esi
mov ecx, dword [0x1313af4]
mov edx, dword [0x1313ba0]
cmp dword [edx + 0x14], esi
je 0x4b01d0
fld dword [ecx + 0x28]
fcomp dword [edx + 0x1c]
fnstsw ax
test ah, 0x44
jnp 0x4b01c7
mov eax, dword [edx + 0x1c]
mov ebx, 1
mov dword [ecx + 0x28], eax
mov edx, dword [0x1313ba0]
mov dword [edx + 0x14], esi
mov ecx, dword [0x1313af4]
mov edx, dword [0x1313ba4]
cmp dword [edx + 0x14], esi
je 0x4b0202
fld dword [ecx + 0x2c]
fcomp dword [edx + 0x1c]
fnstsw ax
test ah, 0x44
jnp 0x4b01f9
mov edx, dword [edx + 0x1c]
mov ebx, 1
mov dword [ecx + 0x2c], edx
mov edx, dword [0x1313ba4]
mov dword [edx + 0x14], esi
mov ecx, dword [0x1313af4]
mov eax, dword [0x1313bc8]
cmp dword [eax + 0x14], esi
je 0x4b0243
mov eax, dword [eax + 0x1c]
push eax
call fcn.00463210
mov ecx, dword [0x1313af4]
add esp, 4
fcom dword [ecx + 0x30]
fnstsw ax
test ah, 0x44
jnp 0x4b0232
fstp dword [ecx + 0x30]
mov ebx, 1
jmp 0x4b0234
fstp st(0)
mov ecx, dword [0x1313bc8]
mov dword [ecx + 0x14], esi
mov ecx, dword [0x1313af4]
mov edx, dword [0x1313954]
cmp dword [edx + 0x14], esi
je 0x4b02a4
fld dword [edx + 0x1c]
fcom dword [0x5354c0]
fnstsw ax
test ah, 5
jp 0x4b0268
fstp st(0)
fld dword [0x5354c0]
jmp 0x4b027f
fcom dword [0x5354e8]
fnstsw ax
and eax, 0x4100
jne 0x4b027f
fstp st(0)
fld dword [0x5354e8]
fcom dword [ecx + 0x34]
fnstsw ax
test ah, 0x44
jnp 0x4b0299
fstp dword [ecx + 0x34]
mov edx, dword [0x1313954]
mov ebx, 1
jmp 0x4b029b
fstp st(0)
mov dword [edx + 0x14], esi
mov ecx, dword [0x1313af4]
mov edx, dword [0x1313950]
cmp dword [edx + 0x14], esi
je 0x4b0305
fld dword [edx + 0x1c]
fcom dword [0x5354c0]
fnstsw ax
test ah, 5
jp 0x4b02c9
fstp st(0)
fld dword [0x5354c0]
jmp 0x4b02e0
fcom dword [0x5354e8]
fnstsw ax
and eax, 0x4100
jne 0x4b02e0
fstp st(0)
fld dword [0x5354e8]
fcom dword [ecx + 0x38]
fnstsw ax
test ah, 0x44
jnp 0x4b02fa
fstp dword [ecx + 0x38]
mov edx, dword [0x1313950]
mov ebx, 1
jmp 0x4b02fc
fstp st(0)
mov dword [edx + 0x14], esi
mov ecx, dword [0x1313af4]
mov edx, dword [0x131394c]
cmp dword [edx + 0x14], esi
je 0x4b0366
fld dword [edx + 0x1c]
fcom dword [0x5354c0]
fnstsw ax
test ah, 5
jp 0x4b032a
fstp st(0)
fld dword [0x5354c0]
jmp 0x4b0341
fcom dword [0x5354e8]
fnstsw ax
and eax, 0x4100
jne 0x4b0341
fstp st(0)
fld dword [0x5354e8]
fcom dword [ecx + 0x3c]
fnstsw ax
test ah, 0x44
jnp 0x4b035b
fstp dword [ecx + 0x3c]
mov edx, dword [0x131394c]
mov ebx, 1
jmp 0x4b035d
fstp st(0)
mov dword [edx + 0x14], esi
mov ecx, dword [0x1313af4]
mov edx, dword [0x1313b9c]
cmp dword [edx + 0x14], esi
je 0x4b03c7
fld dword [edx + 0x1c]
fcom dword [0x5354c0]
fnstsw ax
test ah, 5
jp 0x4b038b
fstp st(0)
fld dword [0x5354c0]
jmp 0x4b03a2
fcom dword [0x5354e8]
fnstsw ax
and eax, 0x4100
jne 0x4b03a2
fstp st(0)
fld dword [0x5354e8]
fcom dword [ecx + 0x40]
fnstsw ax
test ah, 0x44
jnp 0x4b03bc
fstp dword [ecx + 0x40]
mov edx, dword [0x1313b9c]
mov ebx, 1
jmp 0x4b03be
fstp st(0)
mov dword [edx + 0x14], esi
mov ecx, dword [0x1313af4]
mov edi, dword [0x1313958]
cmp dword [edi + 0x14], esi
je 0x4b03fa
mov ebp, dword [edi + 0x20]
mov edx, dword [ecx + 0x44]
xor eax, eax
cmp ebp, esi
setne al
cmp edx, eax
je 0x4b03f1
mov dword [ecx + 0x44], eax
mov edi, dword [0x1313958]
mov ebx, 1
mov dword [edi + 0x14], esi
mov ecx, dword [0x1313af4]
cmp ebx, esi
je 0x4b041b
push esi
push 1
lea edx, [ecx + 0x18]
push 1
add ecx, 0xc
push edx
push ecx
call fcn.004ae0e0
mov ecx, eax
add esp, 0x14
mov dword [0x1313af4], ecx
mov eax, dword [0x1313bb8]
cmp dword [eax + 0x20], esi
je 0x4b0bfc
cmp ecx, esi
je 0x4b0bfc
cmp dword [ecx + 0x4c], esi
je 0x4b0bfc
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.00461e60
mov eax, dword [0x1313af4]
add esp, 4
fld dword [esp + 0x20]
fadd dword [eax + 0x30]
fstp dword [esp]
call fcn.00463210
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.0045b390
mov eax, dword [0x1313af4]
lea edx, [esp + 0x48]
add eax, 0x18
push edx
push eax
call fcn.0045b150
lea ecx, [esp + 0x50]
lea edx, [esp + 0x5c]
push ecx
push edx
fstp st(0)
call fcn.00464200
mov eax, dword [0x1313af4]
add esp, 0x20
fld dword [eax + 0x30]
fadd dword [0x535954]
fstp dword [esp]
call fcn.00463210
fstp dword [esp]
lea ecx, [esp + 0x44]
lea edx, [esp + 0x38]
push ecx
lea eax, [esp + 0x54]
push edx
push eax
call fcn.00461c20
fld dword [esp + 0x64]
fmul dword [esp + 0x48]
fld dword [esp + 0x60]
fmul dword [esp + 0x4c]
mov ecx, dword [0x1313af4]
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 [0x131473c]
mov edi, dword [ecx + 0x48]
cmp edi, esi
fmul qword [0x535e10]
fsin
fmul qword [0x535ac0]
fadd qword [0x536330]
fstp dword [esp + 0x24]
je 0x4b0a3f
mov esi, dword [esp + 0x24]
mov eax, dword [edi + 4]
test eax, eax
jle 0x4b0675
mov ecx, dword [edi + 8]
xor ebx, ebx
test ecx, ecx
jle 0x4b0a31
fld dword [0x5354e8]
fsub dword [esp + 0x24]
fstp dword [esp + 0x10]
mov eax, ebx
push 0x3f800000
cdq
fld dword [esp + 0x38]
idiv ecx
fmul qword [0x535990]
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 [0x535990]
fld dword [ebp + 4]
fadd st(1)
fstp dword [esp + 0x28]
fld dword [esp + 0x4c]
fmul qword [0x535990]
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.0049a570
fld dword [esp + 0x4c]
fmul qword [0x536328]
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 [0x536328]
fadd dword [esp + 0x48]
fstp dword [esp + 0x5c]
fld dword [esp + 0x6c]
fmul qword [0x536328]
fadd dword [esp + 0x4c]
fstp dword [esp + 0x60]
call fcn.0049a570
mov ecx, dword [edi + 8]
add esp, 0x30
cmp ebx, ecx
jl 0x4b057a
jmp 0x4b0a31
jge 0x4b0920
mov ecx, dword [0x1313d40]
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 0x4b0733
mov eax, dword [0x131476c]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x58], ebx
jle 0x4b072d
mov edx, dword [0x1314770]
lea ecx, [edx + 8]
mov eax, dword [ecx]
lea edx, [ecx - 8]
cmp eax, 1
mov dword [esp + 0x74], edx
jl 0x4b06d3
mov ebp, dword [0x132d210]
cmp eax, ebp
mov ebp, dword [esp + 0x70]
jl 0x4b06d5
xor eax, eax
lea eax, [eax + eax*8]
shl eax, 4
add eax, 0x1314850
cmp dword [eax + 0x80], 1
jne 0x4b06f1
cmp dword [eax + 0x8c], ebp
je 0x4b0701
mov eax, dword [0x131476c]
inc ebx
add ecx, 0x1b8
cmp ebx, eax
jl 0x4b06b7
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.00461f70
add esp, 8
jmp 0x4b0737
mov edx, dword [esp + 0x74]
jmp 0x4b0705
mov ebx, dword [esp + 0x58]
cmp ebx, dword [0x131476c]
je 0x4b0913
mov ecx, dword [edi + 8]
lea eax, [esp + 0x9c]
test ecx, ecx
jle 0x4b07fe
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 0x4b0765
xor ebx, ebx
test ecx, ecx
jle 0x4b0913
fld dword [0x5354e8]
fsub dword [esp + 0x24]
fstp dword [esp + 0x10]
mov eax, ebx
push 0x3f800000
cdq
fld dword [esp + 0x38]
idiv ecx
fmul qword [0x535990]
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 [0x535990]
fld dword [ebp + 4]
fadd st(1)
fstp dword [esp + 0x28]
fld dword [esp + 0x4c]
fmul qword [0x535990]
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.0049a570
fld dword [esp + 0x4c]
fmul qword [0x536328]
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 [0x536328]
fadd dword [esp + 0x48]
fstp dword [esp + 0x5c]
fld dword [esp + 0x6c]
fmul qword [0x536328]
fadd dword [esp + 0x4c]
fstp dword [esp + 0x60]
call fcn.0049a570
mov ecx, dword [edi + 8]
add esp, 0x30
cmp ebx, ecx
jl 0x4b0816
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x20], ecx
jmp 0x4b0a31
mov ecx, dword [edi + 8]
xor ebx, ebx
test ecx, ecx
jle 0x4b0a31
fld dword [0x5354e8]
fsub dword [esp + 0x24]
fstp dword [esp + 0x10]
mov eax, ebx
push 0x3f800000
cdq
fld dword [esp + 0x38]
idiv ecx
fmul qword [0x535990]
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 [0x535990]
fld dword [ebp + 4]
fadd st(1)
fstp dword [esp + 0x28]
fld dword [esp + 0x4c]
fmul qword [0x535990]
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.0049a570
fld dword [esp + 0x4c]
fmul qword [0x536328]
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 [0x536328]
fadd dword [esp + 0x48]
fstp dword [esp + 0x5c]
fld dword [esp + 0x6c]
fmul qword [0x536328]
fadd dword [esp + 0x4c]
fstp dword [esp + 0x60]
call fcn.0049a570
mov ecx, dword [edi + 8]
add esp, 0x30
cmp ebx, ecx
jl 0x4b093b
mov edi, dword [edi + 0xd8]
test edi, edi
jne 0x4b0554
fld dword [0x5354e8]
fsub dword [esp + 0x24]
mov ecx, dword [0x1313af4]
fstp dword [esp + 0x24]
fld dword [ecx + 0x2c]
fadd dword [ecx + 0x28]
fmul dword [ecx + 0x24]
fmul qword [0x5359a0]
fcom dword [0x53565c]
fnstsw ax
test ah, 5
jp 0x4b0a77
fstp st(0)
fld dword [0x53565c]
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 [0x5354e8]
fsub dword [esp + 0x2c]
fstp dword [esp + 0x18]
mov edi, dword [esp + 0x18]
push edi
push 0x3dcccccd
push ecx
push eax
call fcn.0049a570
mov ecx, dword [0x1313af4]
add esp, 0x18
fld dword [ecx + 0x2c]
fmul dword [ecx + 0x24]
fcom dword [0x5354e8]
fnstsw ax
test ah, 5
jp 0x4b0af3
fstp st(0)
fld dword [0x5354e8]
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.0049a570
mov ecx, dword [0x1313af4]
add esp, 0x18
fld dword [ecx + 0x28]
fmul dword [ecx + 0x24]
fcom dword [0x5354e8]
fnstsw ax
test ah, 5
jp 0x4b0b88
fstp st(0)
fld dword [0x5354e8]
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.0049a570
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14c
ret
push ecx
mov eax, dword [0x13e6d58]
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x4c0281
test byte [0x1314740], 1
jne 0x4c0281
mov ecx, dword [0x13e6c48]
mov dword [0x1314370], 0x3fe
mov dword [0x1314378], 0x3fe00
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x4bffc4
call fcn.004d34f0
mov edx, dword [0x13e6d5c]
push ebp
push esi
push edi
mov eax, dword [edx + 0x20]
test eax, eax
jne 0x4c01d0
mov esi, dword [0x1313d40]
test esi, esi
jne 0x4bfff8
push str.R_PointInLeaf:_bad_model
push 1
call dword [0x1313c44]
mov esi, dword [0x1313d40]
add esp, 8
mov edx, dword [esi + 0xa4]
cmp dword [edx], 0xffffffff
jne 0x4c0054
mov ecx, dword [edx + 0x24]
mov al, byte [ecx + 0x10]
cmp al, 3
jae 0x4c001b
and eax, 0xff
fld dword [eax*4 + 0x131447c]
jmp 0x4c0039
fld dword [0x1314484]
fmul dword [ecx + 8]
fld dword [0x1314480]
fmul dword [ecx + 4]
faddp st(1)
fld dword [0x131447c]
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 0x4c0003
mov edi, dword [edx + 0x30]
mov eax, dword [0x13147ec]
cmp eax, edi
mov eax, dword [0x13e6be8]
jne 0x4c007a
mov ecx, dword [0x1314764]
test ecx, ecx
jne 0x4c007a
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x4c01d0
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x4c0088
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x4c00b7
mov dword [eax + 0x14], 0
mov ecx, dword [0x13e6be8]
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x4c00b1
mov edx, dword [edx + 0x34]
push edx
push edi
push str.cluster:_i__area:_i_n
push 0
call dword [0x1313c40]
add esp, 0x10
mov esi, dword [0x1313d40]
mov edx, dword [0x1313d24]
mov eax, dword [0x13e6c3c]
inc edx
mov dword [0x13147ec], edi
mov dword [0x1313d24], edx
mov ecx, dword [eax + 0x20]
test ecx, ecx
jne 0x4c0198
cmp edi, 0xffffffff
je 0x4c0198
test esi, esi
je 0x4c010a
mov eax, dword [esi + 0x424]
test eax, eax
je 0x4c010a
test edi, edi
jl 0x4c010a
cmp edi, dword [esi + 0x41c]
jge 0x4c010a
mov ebp, dword [esi + 0x420]
imul ebp, edi
add ebp, eax
jmp 0x4c0110
mov ebp, dword [esi + 0x428]
mov eax, dword [esi + 0x9c]
mov edi, dword [esi + 0xa4]
xor edx, edx
test eax, eax
jle 0x4c01d0
push ebx
mov eax, dword [edi + 0x30]
test eax, eax
jl 0x4c0187
cmp eax, dword [esi + 0x41c]
jge 0x4c0187
mov ecx, eax
mov ebx, 1
and ecx, 7
shl ebx, cl
sar eax, 3
mov cl, byte [eax + ebp]
test cl, bl
je 0x4c0187
mov eax, dword [edi + 0x34]
mov ebx, 1
mov ecx, eax
and ecx, 7
shl ebx, cl
sar eax, 3
mov al, byte [eax + 0x1314744]
test al, bl
jne 0x4c0187
mov eax, edi
mov ecx, dword [0x1313d24]
mov ebx, dword [eax + 4]
cmp ebx, ecx
je 0x4c0187
mov dword [eax + 4], ecx
mov eax, dword [eax + 0x20]
mov esi, dword [0x1313d40]
test eax, eax
jne 0x4c016a
mov eax, dword [esi + 0x9c]
inc edx
add edi, 0x60
cmp edx, eax
jl 0x4c0127
pop ebx
jmp 0x4c01d0
mov eax, dword [esi + 0x9c]
xor edx, edx
test eax, eax
jle 0x4c01d0
xor ecx, ecx
mov eax, dword [esi + 0xa4]
add eax, ecx
cmp dword [eax], 1
je 0x4c01c2
mov esi, dword [0x1313d24]
mov dword [eax + 4], esi
mov esi, dword [0x1313d40]
mov eax, dword [esi + 0x9c]
inc edx
add ecx, 0x60
cmp edx, eax
jl 0x4c01a6
push 0x1314574
push 0x1314568
call fcn.0045b2d0
mov eax, dword [0x131477c]
add esp, 8
cmp eax, 0x20
pop edi
pop esi
pop ebp
jle 0x4c01f9
mov eax, 0x20
mov dword [0x131477c], eax
mov ecx, dword [0x1314780]
push 0x1314400
push ecx
push eax
call fcn.004be530
mov ecx, dword [0x131477c]
mov edx, 1
shl edx, cl
add esp, 0xc
mov eax, dword [0x1313d40]
mov ecx, dword [eax + 0xa4]
dec edx
push edx
mov edx, dword [0x1314590]
neg edx
sbb edx, edx
and edx, 0x10
add edx, 0xf
call fcn.004c0290
mov ecx, dword [0x13e6c48]
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x4c024f
call fcn.004d3940
mov edx, dword [0x13e6d40]
mov eax, dword [edx + 0x20]
test eax, eax
je 0x4c0261
call fcn.004a63a0
mov eax, dword [0x80a238]
test eax, eax
je 0x4c0279
mov dword [0x80a238], 0
call fcn.004a6200
add esp, 4
jmp 0x4afc70
pop ecx
ret