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

Disassembly:
mov eax, dword [0x160c950]
sub esp, 0x14c
mov ecx, dword [eax + 0x20]
push ebx
push ebp
push esi
xor esi, esi
push edi
cmp ecx, esi
je 0x4c502c
mov ecx, dword [0x160c968]
mov eax, dword [ecx + 0x20]
cmp eax, esi
mov eax, dword [0x160cb18]
je 0x4c44b3
cmp eax, esi
jne 0x4c4106
push 0x26
push esi
push 0x160cb1c
call fcn.0045d220
add esp, 0xc
mov dword [0x160cb20], 0xfffffc18
mov dword [0x160cbb4], esi
mov dword [0x160cbb8], esi
mov dword [0x160cb18], 1
mov edx, dword [0x160cbc8]
mov eax, dword [edx + 4]
push eax
call fcn.004beae0
mov ecx, dword [0x160cbc4]
mov edx, dword [0x160c964]
mov dword [0x160cb24], eax
add esp, 4
fld dword [ecx + 0x1c]
fmul dword [edx + 0x1c]
fst dword [0x160cb2c]
fcomp dword [0x54e61c]
fnstsw ax
test ah, 5
jp 0x4c414e
mov dword [0x160cb2c], 0x40000000
jmp 0x4c416d
fld dword [0x160cb2c]
fcomp dword [0x54ed64]
fnstsw ax
and eax, 0x4100
jne 0x4c416d
mov dword [0x160cb2c], 0x44800000
mov eax, dword [0x160cbbc]
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x10], ecx
fld dword [esp + 0x10]
fcomp dword [0x54e4d0]
fnstsw ax
test ah, 5
jp 0x4c4194
mov dword [esp + 0x10], 0
jmp 0x4c41af
fld dword [esp + 0x10]
fcomp dword [0x54e504]
fnstsw ax
and eax, 0x4100
jne 0x4c41af
mov dword [esp + 0x10], 0x3f800000
mov edx, dword [0x160c954]
mov eax, dword [0x160cbd0]
fld dword [0x54e504]
fdiv dword [edx + 0x1c]
mov ecx, dword [eax + 0x1c]
mov edx, dword [0x160cbdc]
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 [0x160cbe0]
push eax
mov edx, dword [ecx + 0x1c]
push edx
push ebx
push 0x160cb1c
call dword [0x160ccf8]
add esp, 0x18
cmp eax, 1
jne 0x4c423b
mov eax, dword [0x160cbb8]
mov ecx, dword [0x160cbd0]
mov dword [0x160cbb4], eax
mov eax, dword [0x160cbdc]
mov dword [0x160cbb8], esi
mov edx, dword [ecx + 0x1c]
mov ecx, dword [eax + 0x1c]
push edi
push edx
mov edx, dword [0x160cbe0]
push ecx
mov eax, dword [edx + 0x1c]
push eax
push ebx
push 0x160cb1c
call dword [0x160ccf8]
add esp, 0x18
jmp 0x4c4244
cmp eax, 0xffffffff
je 0x4c4487
mov eax, dword [0x160cbb8]
mov ebp, 0x160ca90
cmp eax, esi
mov ebx, 0x41000000
je 0x4c4290
push 2
push 1
push 1
push 0x57e130
push 0x57e130
mov dword [0x160cb14], eax
call fcn.004c2510
mov ecx, eax
add esp, 0x14
cmp ecx, esi
mov dword [0x160cb14], ecx
jne 0x4c4382
mov ecx, dword [0x160cbb8]
push ecx
jmp 0x4c4374
mov eax, dword [0x160cb10]
cmp eax, esi
jne 0x4c42d6
push 0x4000
call dword [0x160cc74]
add esp, 4
cmp eax, esi
jne 0x4c42b2
xor eax, eax
jmp 0x4c433b
mov dword [0x160cb10], eax
mov ecx, eax
mov edi, 0x7f
lea edx, [ecx + 0x80]
dec edi
mov dword [ecx], edx
mov ecx, edx
jne 0x4c42be
mov dword [eax + 0x3f80], esi
mov eax, dword [0x160cb10]
mov edx, dword [eax]
mov ecx, dword [0x160ca90]
mov dword [0x160cb10], edx
mov dword [eax], ecx
mov dword [eax + 4], ebp
mov edx, dword [0x160ca90]
mov dword [edx + 4], eax
mov ecx, dword [0x160cdbc]
mov dword [0x160ca90], 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 [0x160cbb8], eax
je 0x4c437c
push 2
push 1
push 1
push 0x57e130
push 0x57e130
mov dword [0x160cb14], eax
call fcn.004c2510
mov ecx, eax
add esp, 0x14
cmp ecx, esi
mov dword [0x160cb14], ecx
jne 0x4c4382
mov edx, dword [0x160cbb8]
push edx
call fcn.004c21f0
add esp, 4
mov ecx, dword [0x160cb14]
cmp dword [0x160cb28], 3
jne 0x4c448d
mov eax, dword [0x160cbb4]
cmp eax, esi
jne 0x4c4450
mov eax, dword [0x160cb10]
cmp eax, esi
jne 0x4c43e2
push 0x4000
call dword [0x160cc74]
add esp, 4
cmp eax, esi
jne 0x4c43be
xor eax, eax
jmp 0x4c4447
mov dword [0x160cb10], eax
mov ecx, eax
mov edi, 0x7f
lea edx, [ecx + 0x80]
dec edi
mov dword [ecx], edx
mov ecx, edx
jne 0x4c43ca
mov dword [eax + 0x3f80], esi
mov eax, dword [0x160cb10]
mov ecx, dword [eax]
mov edx, dword [0x160ca90]
mov dword [0x160cb10], ecx
mov dword [eax], edx
mov dword [eax + 4], ebp
mov ecx, dword [0x160ca90]
mov dword [ecx + 4], eax
mov edx, dword [0x160cdbc]
mov ecx, 0x3f800000
mov dword [0x160ca90], 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 [0x160cbb4], eax
je 0x4c4487
push 1
push 1
push 1
push 0x57e130
push 0x57e130
mov dword [0x160cb14], eax
call fcn.004c2510
mov ecx, eax
add esp, 0x14
cmp ecx, esi
mov dword [0x160cb14], ecx
jne 0x4c448d
mov eax, dword [0x160cbb4]
push eax
call fcn.004c21f0
add esp, 4
mov ecx, dword [0x160cb14]
mov eax, dword [0x160cbb8]
cmp eax, esi
je 0x4c44a0
mov ecx, eax
mov dword [0x160cb14], ecx
jmp 0x4c44c3
mov eax, dword [0x160cbb4]
cmp eax, esi
je 0x4c44c3
mov ecx, eax
mov dword [0x160cb14], ecx
jmp 0x4c44c3
mov ecx, dword [0x160cb14]
cmp eax, esi
je 0x4c44c3
mov dword [0x160cb18], esi
cmp dword [0x160ca88], esi
je 0x4c484b
cmp ecx, esi
je 0x4c484b
cmp dword [ecx + 0x30], 0xbf800000
je 0x4c484b
mov eax, dword [0x160cbc8]
xor ebx, ebx
cmp dword [eax + 0x14], esi
je 0x4c459c
mov ecx, dword [eax + 4]
push ecx
call fcn.004beae0
add esp, 4
cmp eax, esi
je 0x4c458d
push eax
call fcn.004becc0
mov edi, eax
mov eax, dword [0x160cdbc]
add esp, 4
cmp edi, eax
je 0x4c458d
mov eax, dword [0x160cb14]
cmp dword [eax + 8], edi
je 0x4c458d
push 0x41800000
push str.dcl_radius
mov dword [eax + 8], edi
mov ebx, 1
call fcn.0045de80
mov edx, dword [0x160c964]
add esp, 4
mov dword [edx + 0x14], esi
mov eax, dword [edi + 0x174]
mov ecx, dword [eax + 4]
fild dword [ecx + 0x44]
fmul dword [0x54f848]
fstp dword [esp]
push str.dcl_heightscale
call fcn.0045de80
mov edx, dword [edi + 0x174]
add esp, 4
mov eax, dword [edx + 4]
fild dword [eax + 0x40]
fmul dword [0x54f848]
fstp dword [esp]
push str.dcl_widthscale
call fcn.0045de80
add esp, 8
mov ecx, dword [0x160cbc8]
mov dword [ecx + 0x14], esi
mov ecx, dword [0x160cb14]
mov edx, dword [0x160c964]
cmp dword [edx + 0x14], esi
je 0x4c45ce
fld dword [ecx + 0x24]
fcomp dword [edx + 0x1c]
fnstsw ax
test ah, 0x44
jnp 0x4c45c5
mov edx, dword [edx + 0x1c]
mov ebx, 1
mov dword [ecx + 0x24], edx
mov edx, dword [0x160c964]
mov dword [edx + 0x14], esi
mov ecx, dword [0x160cb14]
mov edx, dword [0x160cbc0]
cmp dword [edx + 0x14], esi
je 0x4c4600
fld dword [ecx + 0x28]
fcomp dword [edx + 0x1c]
fnstsw ax
test ah, 0x44
jnp 0x4c45f7
mov eax, dword [edx + 0x1c]
mov ebx, 1
mov dword [ecx + 0x28], eax
mov edx, dword [0x160cbc0]
mov dword [edx + 0x14], esi
mov ecx, dword [0x160cb14]
mov edx, dword [0x160cbc4]
cmp dword [edx + 0x14], esi
je 0x4c4632
fld dword [ecx + 0x2c]
fcomp dword [edx + 0x1c]
fnstsw ax
test ah, 0x44
jnp 0x4c4629
mov edx, dword [edx + 0x1c]
mov ebx, 1
mov dword [ecx + 0x2c], edx
mov edx, dword [0x160cbc4]
mov dword [edx + 0x14], esi
mov ecx, dword [0x160cb14]
mov eax, dword [0x160cbe8]
cmp dword [eax + 0x14], esi
je 0x4c4673
mov eax, dword [eax + 0x1c]
push eax
call fcn.00472250
mov ecx, dword [0x160cb14]
add esp, 4
fcom dword [ecx + 0x30]
fnstsw ax
test ah, 0x44
jnp 0x4c4662
fstp dword [ecx + 0x30]
mov ebx, 1
jmp 0x4c4664
fstp st(0)
mov ecx, dword [0x160cbe8]
mov dword [ecx + 0x14], esi
mov ecx, dword [0x160cb14]
mov edx, dword [0x160c974]
cmp dword [edx + 0x14], esi
je 0x4c46d4
fld dword [edx + 0x1c]
fcom dword [0x54e4d0]
fnstsw ax
test ah, 5
jp 0x4c4698
fstp st(0)
fld dword [0x54e4d0]
jmp 0x4c46af
fcom dword [0x54e504]
fnstsw ax
and eax, 0x4100
jne 0x4c46af
fstp st(0)
fld dword [0x54e504]
fcom dword [ecx + 0x34]
fnstsw ax
test ah, 0x44
jnp 0x4c46c9
fstp dword [ecx + 0x34]
mov edx, dword [0x160c974]
mov ebx, 1
jmp 0x4c46cb
fstp st(0)
mov dword [edx + 0x14], esi
mov ecx, dword [0x160cb14]
mov edx, dword [0x160c970]
cmp dword [edx + 0x14], esi
je 0x4c4735
fld dword [edx + 0x1c]
fcom dword [0x54e4d0]
fnstsw ax
test ah, 5
jp 0x4c46f9
fstp st(0)
fld dword [0x54e4d0]
jmp 0x4c4710
fcom dword [0x54e504]
fnstsw ax
and eax, 0x4100
jne 0x4c4710
fstp st(0)
fld dword [0x54e504]
fcom dword [ecx + 0x38]
fnstsw ax
test ah, 0x44
jnp 0x4c472a
fstp dword [ecx + 0x38]
mov edx, dword [0x160c970]
mov ebx, 1
jmp 0x4c472c
fstp st(0)
mov dword [edx + 0x14], esi
mov ecx, dword [0x160cb14]
mov edx, dword [0x160c96c]
cmp dword [edx + 0x14], esi
je 0x4c4796
fld dword [edx + 0x1c]
fcom dword [0x54e4d0]
fnstsw ax
test ah, 5
jp 0x4c475a
fstp st(0)
fld dword [0x54e4d0]
jmp 0x4c4771
fcom dword [0x54e504]
fnstsw ax
and eax, 0x4100
jne 0x4c4771
fstp st(0)
fld dword [0x54e504]
fcom dword [ecx + 0x3c]
fnstsw ax
test ah, 0x44
jnp 0x4c478b
fstp dword [ecx + 0x3c]
mov edx, dword [0x160c96c]
mov ebx, 1
jmp 0x4c478d
fstp st(0)
mov dword [edx + 0x14], esi
mov ecx, dword [0x160cb14]
mov edx, dword [0x160cbbc]
cmp dword [edx + 0x14], esi
je 0x4c47f7
fld dword [edx + 0x1c]
fcom dword [0x54e4d0]
fnstsw ax
test ah, 5
jp 0x4c47bb
fstp st(0)
fld dword [0x54e4d0]
jmp 0x4c47d2
fcom dword [0x54e504]
fnstsw ax
and eax, 0x4100
jne 0x4c47d2
fstp st(0)
fld dword [0x54e504]
fcom dword [ecx + 0x40]
fnstsw ax
test ah, 0x44
jnp 0x4c47ec
fstp dword [ecx + 0x40]
mov edx, dword [0x160cbbc]
mov ebx, 1
jmp 0x4c47ee
fstp st(0)
mov dword [edx + 0x14], esi
mov ecx, dword [0x160cb14]
mov edi, dword [0x160c978]
cmp dword [edi + 0x14], esi
je 0x4c482a
mov ebp, dword [edi + 0x20]
mov edx, dword [ecx + 0x44]
xor eax, eax
cmp ebp, esi
setne al
cmp edx, eax
je 0x4c4821
mov dword [ecx + 0x44], eax
mov edi, dword [0x160c978]
mov ebx, 1
mov dword [edi + 0x14], esi
mov ecx, dword [0x160cb14]
cmp ebx, esi
je 0x4c484b
push esi
push 1
lea edx, [ecx + 0x18]
push 1
add ecx, 0xc
push edx
push ecx
call fcn.004c2510
mov ecx, eax
add esp, 0x14
mov dword [0x160cb14], ecx
mov eax, dword [0x160cbd8]
cmp dword [eax + 0x20], esi
je 0x4c502c
cmp ecx, esi
je 0x4c502c
cmp dword [ecx + 0x4c], esi
je 0x4c502c
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.00470e60
mov eax, dword [0x160cb14]
add esp, 4
fld dword [esp + 0x20]
fadd dword [eax + 0x30]
fstp dword [esp]
call fcn.00472250
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.00469800
mov eax, dword [0x160cb14]
lea edx, [esp + 0x48]
add eax, 0x18
push edx
push eax
call fcn.004695c0
lea ecx, [esp + 0x50]
lea edx, [esp + 0x5c]
push ecx
push edx
fstp st(0)
call fcn.00473250
mov eax, dword [0x160cb14]
add esp, 0x20
fld dword [eax + 0x30]
fadd dword [0x54ebcc]
fstp dword [esp]
call fcn.00472250
fstp dword [esp]
lea ecx, [esp + 0x44]
lea edx, [esp + 0x38]
push ecx
lea eax, [esp + 0x54]
push edx
push eax
call fcn.00470c20
fld dword [esp + 0x64]
fmul dword [esp + 0x48]
fld dword [esp + 0x60]
fmul dword [esp + 0x4c]
mov ecx, dword [0x160cb14]
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 [0x160d764]
mov edi, dword [ecx + 0x48]
cmp edi, esi
fmul qword [0x54f840]
fsin
fmul qword [0x54ed58]
fadd qword [0x54f838]
fstp dword [esp + 0x24]
je 0x4c4e6f
mov esi, dword [esp + 0x24]
mov eax, dword [edi + 4]
test eax, eax
jle 0x4c4aa5
mov ecx, dword [edi + 8]
xor ebx, ebx
test ecx, ecx
jle 0x4c4e61
fld dword [0x54e504]
fsub dword [esp + 0x24]
fstp dword [esp + 0x10]
mov eax, ebx
push 0x3f800000
cdq
fld dword [esp + 0x38]
idiv ecx
fmul qword [0x54ec08]
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 [0x54ec08]
fld dword [ebp + 4]
fadd st(1)
fstp dword [esp + 0x28]
fld dword [esp + 0x4c]
fmul qword [0x54ec08]
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.004ac300
fld dword [esp + 0x4c]
fmul qword [0x54f830]
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 [0x54f830]
fadd dword [esp + 0x48]
fstp dword [esp + 0x5c]
fld dword [esp + 0x6c]
fmul qword [0x54f830]
fadd dword [esp + 0x4c]
fstp dword [esp + 0x60]
call fcn.004ac300
mov ecx, dword [edi + 8]
add esp, 0x30
cmp ebx, ecx
jl 0x4c49aa
jmp 0x4c4e61
jge 0x4c4d50
mov ecx, dword [0x160cd60]
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 0x4c4b63
mov eax, dword [0x160d794]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x58], ebx
jle 0x4c4b5d
mov edx, dword [0x160d798]
lea ecx, [edx + 8]
mov eax, dword [ecx]
lea edx, [ecx - 8]
cmp eax, 1
mov dword [esp + 0x74], edx
jl 0x4c4b03
mov ebp, dword [0x1626240]
cmp eax, ebp
mov ebp, dword [esp + 0x70]
jl 0x4c4b05
xor eax, eax
lea eax, [eax + eax*8]
shl eax, 4
add eax, 0x160d880
cmp dword [eax + 0x80], 1
jne 0x4c4b21
cmp dword [eax + 0x8c], ebp
je 0x4c4b31
mov eax, dword [0x160d794]
inc ebx
add ecx, 0x1b8
cmp ebx, eax
jl 0x4c4ae7
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.00470f70
add esp, 8
jmp 0x4c4b67
mov edx, dword [esp + 0x74]
jmp 0x4c4b35
mov ebx, dword [esp + 0x58]
cmp ebx, dword [0x160d794]
je 0x4c4d43
mov ecx, dword [edi + 8]
lea eax, [esp + 0x9c]
test ecx, ecx
jle 0x4c4c2e
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 0x4c4b95
xor ebx, ebx
test ecx, ecx
jle 0x4c4d43
fld dword [0x54e504]
fsub dword [esp + 0x24]
fstp dword [esp + 0x10]
mov eax, ebx
push 0x3f800000
cdq
fld dword [esp + 0x38]
idiv ecx
fmul qword [0x54ec08]
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 [0x54ec08]
fld dword [ebp + 4]
fadd st(1)
fstp dword [esp + 0x28]
fld dword [esp + 0x4c]
fmul qword [0x54ec08]
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.004ac300
fld dword [esp + 0x4c]
fmul qword [0x54f830]
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 [0x54f830]
fadd dword [esp + 0x48]
fstp dword [esp + 0x5c]
fld dword [esp + 0x6c]
fmul qword [0x54f830]
fadd dword [esp + 0x4c]
fstp dword [esp + 0x60]
call fcn.004ac300
mov ecx, dword [edi + 8]
add esp, 0x30
cmp ebx, ecx
jl 0x4c4c46
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x20], ecx
jmp 0x4c4e61
mov ecx, dword [edi + 8]
xor ebx, ebx
test ecx, ecx
jle 0x4c4e61
fld dword [0x54e504]
fsub dword [esp + 0x24]
fstp dword [esp + 0x10]
mov eax, ebx
push 0x3f800000
cdq
fld dword [esp + 0x38]
idiv ecx
fmul qword [0x54ec08]
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 [0x54ec08]
fld dword [ebp + 4]
fadd st(1)
fstp dword [esp + 0x28]
fld dword [esp + 0x4c]
fmul qword [0x54ec08]
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.004ac300
fld dword [esp + 0x4c]
fmul qword [0x54f830]
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 [0x54f830]
fadd dword [esp + 0x48]
fstp dword [esp + 0x5c]
fld dword [esp + 0x6c]
fmul qword [0x54f830]
fadd dword [esp + 0x4c]
fstp dword [esp + 0x60]
call fcn.004ac300
mov ecx, dword [edi + 8]
add esp, 0x30
cmp ebx, ecx
jl 0x4c4d6b
mov edi, dword [edi + 0xd8]
test edi, edi
jne 0x4c4984
fld dword [0x54e504]
fsub dword [esp + 0x24]
mov ecx, dword [0x160cb14]
fstp dword [esp + 0x24]
fld dword [ecx + 0x2c]
fadd dword [ecx + 0x28]
fmul dword [ecx + 0x24]
fmul qword [0x54ec18]
fcom dword [0x54e688]
fnstsw ax
test ah, 5
jp 0x4c4ea7
fstp st(0)
fld dword [0x54e688]
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 [0x54e504]
fsub dword [esp + 0x2c]
fstp dword [esp + 0x18]
mov edi, dword [esp + 0x18]
push edi
push 0x3dcccccd
push ecx
push eax
call fcn.004ac300
mov ecx, dword [0x160cb14]
add esp, 0x18
fld dword [ecx + 0x2c]
fmul dword [ecx + 0x24]
fcom dword [0x54e504]
fnstsw ax
test ah, 5
jp 0x4c4f23
fstp st(0)
fld dword [0x54e504]
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.004ac300
mov ecx, dword [0x160cb14]
add esp, 0x18
fld dword [ecx + 0x28]
fmul dword [ecx + 0x24]
fcom dword [0x54e504]
fnstsw ax
test ah, 5
jp 0x4c4fb8
fstp st(0)
fld dword [0x54e504]
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.004ac300
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14c
ret
push ecx
mov eax, dword [0x16e0d9c]
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x4d4af5
test byte [0x160d768], 1
jne 0x4d4af5
mov ecx, dword [0x16e0ca4]
mov dword [0x160d390], 0x3fe
mov dword [0x160d398], 0x3fe00
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x4d4826
mov eax, dword [0x160d818]
test eax, eax
je 0x4d4826
mov eax, dword [0x160d4b0]
test eax, eax
jne 0x4d4826
call fcn.004e8170
mov edx, dword [0x16e0da0]
push ebp
push esi
push edi
mov eax, dword [edx + 0x20]
test eax, eax
jne 0x4d4a32
mov esi, dword [0x160cd60]
test esi, esi
jne 0x4d485a
push str.R_PointInLeaf:_bad_model
push 1
call dword [0x160cc64]
mov esi, dword [0x160cd60]
add esp, 8
mov edx, dword [esi + 0xa4]
cmp dword [edx], 0xffffffff
jne 0x4d48b6
mov ecx, dword [edx + 0x24]
mov al, byte [ecx + 0x10]
cmp al, 3
jae 0x4d487d
and eax, 0xff
fld dword [eax*4 + 0x160d49c]
jmp 0x4d489b
fld dword [0x160d4a4]
fmul dword [ecx + 8]
fld dword [0x160d4a0]
fmul dword [ecx + 4]
faddp st(1)
fld dword [0x160d49c]
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 0x4d4865
mov edi, dword [edx + 0x30]
mov eax, dword [0x160d81c]
cmp eax, edi
mov eax, dword [0x16e0c3c]
jne 0x4d48dc
mov ecx, dword [0x160d78c]
test ecx, ecx
jne 0x4d48dc
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x4d4a32
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x4d48ea
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x4d4919
mov dword [eax + 0x14], 0
mov ecx, dword [0x16e0c3c]
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x4d4913
mov edx, dword [edx + 0x34]
push edx
push edi
push str.cluster:_i__area:_i_n
push 0
call dword [0x160cc60]
add esp, 0x10
mov esi, dword [0x160cd60]
mov edx, dword [0x160cd44]
mov eax, dword [0x16e0c98]
inc edx
mov dword [0x160d81c], edi
mov dword [0x160cd44], edx
mov ecx, dword [eax + 0x20]
test ecx, ecx
jne 0x4d49fa
cmp edi, 0xffffffff
je 0x4d49fa
test esi, esi
je 0x4d496c
mov eax, dword [esi + 0x424]
test eax, eax
je 0x4d496c
test edi, edi
jl 0x4d496c
cmp edi, dword [esi + 0x41c]
jge 0x4d496c
mov ebp, dword [esi + 0x420]
imul ebp, edi
add ebp, eax
jmp 0x4d4972
mov ebp, dword [esi + 0x428]
mov eax, dword [esi + 0x9c]
mov edi, dword [esi + 0xa4]
xor edx, edx
test eax, eax
jle 0x4d4a32
push ebx
mov eax, dword [edi + 0x30]
test eax, eax
jl 0x4d49e9
cmp eax, dword [esi + 0x41c]
jge 0x4d49e9
mov ecx, eax
mov ebx, 1
and ecx, 7
shl ebx, cl
sar eax, 3
mov cl, byte [eax + ebp]
test cl, bl
je 0x4d49e9
mov eax, dword [edi + 0x34]
mov ebx, 1
mov ecx, eax
and ecx, 7
shl ebx, cl
sar eax, 3
mov al, byte [eax + 0x160d76c]
test al, bl
jne 0x4d49e9
mov eax, edi
mov ecx, dword [0x160cd44]
mov ebx, dword [eax + 4]
cmp ebx, ecx
je 0x4d49e9
mov dword [eax + 4], ecx
mov eax, dword [eax + 0x20]
mov esi, dword [0x160cd60]
test eax, eax
jne 0x4d49cc
mov eax, dword [esi + 0x9c]
inc edx
add edi, 0x60
cmp edx, eax
jl 0x4d4989
pop ebx
jmp 0x4d4a32
mov eax, dword [esi + 0x9c]
xor edx, edx
test eax, eax
jle 0x4d4a32
xor ecx, ecx
mov eax, dword [esi + 0xa4]
add eax, ecx
cmp dword [eax], 1
je 0x4d4a24
mov esi, dword [0x160cd44]
mov dword [eax + 4], esi
mov esi, dword [0x160cd60]
mov eax, dword [esi + 0x9c]
inc edx
add ecx, 0x60
cmp edx, eax
jl 0x4d4a08
push 0x160d598
push 0x160d58c
call fcn.00469740
mov eax, dword [0x160d7a4]
add esp, 8
cmp eax, 0x20
pop edi
pop esi
pop ebp
jle 0x4d4a5b
mov eax, 0x20
mov dword [0x160d7a4], eax
mov ecx, dword [0x160d7a8]
push 0x160d420
push ecx
push eax
call fcn.004d2cf0
mov ecx, dword [0x160d7a4]
mov edx, 1
shl edx, cl
add esp, 0xc
mov eax, dword [0x160cd60]
mov ecx, dword [eax + 0xa4]
dec edx
push edx
mov edx, dword [0x160d5b4]
neg edx
sbb edx, edx
and edx, 0x10
add edx, 0xf
call fcn.004d4b00
mov ecx, dword [0x16e0ca4]
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x4d4ac3
mov eax, dword [0x160d818]
test eax, eax
je 0x4d4ac3
mov eax, dword [0x160d4b0]
test eax, eax
jne 0x4d4ac3
call fcn.004e85d0
mov edx, dword [0x16e0d80]
mov eax, dword [edx + 0x20]
test eax, eax
je 0x4d4ad5
call fcn.004b6860
mov eax, dword [0x9a08e0]
test eax, eax
je 0x4d4aed
mov dword [0x9a08e0], 0
call fcn.004b66c0
add esp, 4
jmp 0x4c40a0
pop ecx
ret