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

Disassembly:
mov eax, 0x2aec
call fcn.00535460
mov eax, dword [0x160cb14]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2b04]
push edi
test esi, esi
je 0x4c253d
test eax, eax
jne 0x4c253d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2aec
ret
mov ebp, dword [esp + 0x2b10]
test ebp, ebp
je 0x4c25a9
mov eax, dword [0x160cb24]
push eax
call fcn.004becc0
mov edx, dword [0x160cb14]
mov ecx, dword [0x160cb2c]
mov ebx, eax
mov dword [esp + 0x14], ecx
mov edi, dword [edx + 0x44]
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x48], 0x3f800000
mov dword [esp + 0x3c], 0x3f800000
mov dword [esp + 0x44], 0x3f800000
mov dword [esp + 0x40], 0x3f800000
mov dword [esp + 0x20], 0x3f800000
mov dword [esp + 0x1c], 0x3f800000
mov dword [esp + 0x18], 0xbf800000
jmp 0x4c2773
test esi, esi
je 0x4c25ff
mov ecx, dword [esp + 0x2b0c]
test ecx, ecx
je 0x4c25ff
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x2c]
mov ebx, dword [eax + 8]
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 0x28]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 0x34]
mov edi, dword [eax + 0x44]
mov dword [esp + 0x38], ecx
mov ecx, dword [eax + 0x38]
mov dword [esp + 0x40], edx
mov edx, dword [eax + 0x3c]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 0x40]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 0x30]
mov dword [esp + 0x68], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
jmp 0x4c2776
mov eax, dword [0x160cbc8]
mov ecx, dword [eax + 4]
push ecx
call fcn.004beae0
add esp, 4
test eax, eax
jne 0x4c2636
mov edx, dword [0x160cbc8]
mov eax, dword [edx + 4]
push eax
push str.Bad_decal_shader__s_n
push 0
call dword [0x160cc60]
mov ebx, dword [0x160cdbc]
add esp, 0xc
jmp 0x4c2641
push eax
call fcn.004becc0
add esp, 4
mov ebx, eax
mov ecx, dword [0x160c964]
mov eax, dword [0x160cbc4]
mov dword [esp + 0x68], ebx
mov edx, dword [ecx + 0x1c]
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x10], edx
mov edx, dword [0x160cbc0]
mov dword [esp + 0x44], ecx
mov ecx, dword [0x160c974]
mov eax, dword [edx + 0x1c]
mov edx, dword [ecx + 0x1c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], edx
fld dword [esp + 0x40]
fcomp dword [0x54e4d0]
fnstsw ax
test ah, 5
jnp 0x4c269c
fld dword [esp + 0x40]
fcomp dword [0x54e504]
fnstsw ax
and eax, 0x4100
jne 0x4c26a4
mov dword [esp + 0x40], 0x3f800000
mov eax, dword [0x160c970]
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x3c], ecx
fld dword [esp + 0x3c]
fcomp dword [0x54e4d0]
fnstsw ax
test ah, 5
jnp 0x4c26d4
fld dword [esp + 0x3c]
fcomp dword [0x54e504]
fnstsw ax
and eax, 0x4100
jne 0x4c26dc
mov dword [esp + 0x3c], 0x3f800000
mov edx, dword [0x160c96c]
mov eax, dword [edx + 0x1c]
mov dword [esp + 0x1c], eax
fld dword [esp + 0x1c]
fcomp dword [0x54e4d0]
fnstsw ax
test ah, 5
jnp 0x4c270d
fld dword [esp + 0x1c]
fcomp dword [0x54e504]
fnstsw ax
and eax, 0x4100
jne 0x4c2715
mov dword [esp + 0x1c], 0x3f800000
mov ecx, dword [0x160cbbc]
mov edx, dword [ecx + 0x1c]
mov dword [esp + 0x18], edx
fld dword [esp + 0x18]
fcomp dword [0x54e4d0]
fnstsw ax
test ah, 5
jnp 0x4c2746
fld dword [esp + 0x18]
fcomp dword [0x54e504]
fnstsw ax
and eax, 0x4100
jne 0x4c274e
mov dword [esp + 0x18], 0x3f800000
mov ecx, dword [0x160c978]
xor eax, eax
mov edx, dword [ecx + 0x20]
test edx, edx
mov edx, dword [0x160cbe8]
setne al
mov edi, eax
mov eax, dword [edx + 0x1c]
push eax
call fcn.00472250
fstp dword [esp + 0x18]
add esp, 4
fld dword [esp + 0x10]
fcomp dword [0x54e4d0]
fnstsw ax
test ah, 5
jp 0x4c278f
mov dword [esp + 0x10], 0x3a83126f
fld dword [esp + 0x44]
fcomp dword [0x54e4d0]
fnstsw ax
test ah, 5
jp 0x4c27a8
mov dword [esp + 0x44], 0x3a83126f
fld dword [esp + 0x38]
fcomp dword [0x54e4d0]
fnstsw ax
test ah, 5
jp 0x4c27c1
mov dword [esp + 0x38], 0x3a83126f
mov eax, dword [esp + 0x2b00]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x2b04]
lea ecx, [esp + 0x98]
mov dword [esp + 0x34], eax
push ecx
push edx
call fcn.004695c0
add esp, 8
lea eax, [esp + 0x6fc]
lea ecx, [esp + 0xfc]
push eax
push ecx
test ebp, ebp
fstp st(0)
je 0x4c2824
xor edx, edx
cmp ebp, 1
sete dl
push edi
push edx
push 0x160cb1c
call dword [0x160ccf4]
add esp, 0x14
jmp 0x4c2889
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x44]
push 0x3f000000
fld dword [esp + 0x44]
fmul dword [esp + 0x1c]
push 0x3f000000
push edi
push edx
mov edx, dword [esp + 0x58]
push eax
push ecx
push edx
sub esp, 0xc
fstp dword [esp + 8]
fld dword [esp + 0x74]
fmul dword [esp + 0x40]
fstp dword [esp + 4]
fld dword [esp + 0x44]
fadd dword [0x54ebcc]
fstp dword [esp]
call fcn.00472250
fstp dword [esp]
lea eax, [esp + 0xc8]
lea ecx, [esp + 0x5c]
push eax
push ecx
call dword [0x160ccf0]
add esp, 0x38
test eax, eax
mov dword [esp + 0x64], eax
jne 0x4c289e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2aec
ret
test esi, esi
je 0x4c28bc
mov esi, dword [0x160cb14]
push esi
mov dword [esp + 0x58], esi
call fcn.004c21f0
add esp, 4
xor edx, edx
jmp 0x4c2974
mov eax, dword [0x160cb10]
test eax, eax
jne 0x4c28ff
push 0x4000
call dword [0x160cc74]
add esp, 4
test eax, eax
je 0x4c2891
mov dword [0x160cb10], eax
mov ecx, eax
mov esi, 0x7f
lea edx, [ecx + 0x80]
dec esi
mov dword [ecx], edx
mov ecx, edx
jne 0x4c28e3
mov dword [eax + 0x3f80], 0
mov eax, dword [0x160cb10]
mov edx, dword [eax]
mov ecx, dword [0x160ca90]
mov dword [0x160cb10], edx
mov dword [eax], ecx
mov dword [eax + 4], 0x160ca90
mov edx, dword [0x160ca90]
mov esi, eax
mov dword [edx + 4], eax
mov ecx, dword [0x160cdbc]
mov dword [0x160ca90], eax
mov dword [eax + 8], ecx
xor edx, edx
mov ecx, 0x3f800000
mov dword [eax + 0x14], edx
mov dword [eax + 0x10], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], edx
mov dword [eax + 0x20], 0xbf800000
mov dword [eax + 0x24], 0x41000000
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], edx
mov dword [eax + 0x34], 0xffffffff
mov dword [eax + 0x44], 1
mov dword [eax + 0x48], edx
mov dword [eax + 0x4c], edx
mov dword [esp + 0x54], esi
mov eax, dword [esp + 0x2c]
cmp ebp, edx
mov dword [esi + 0xc], eax
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x10], ecx
mov eax, dword [esp + 0x34]
mov dword [esi + 0x14], eax
mov ecx, dword [esp + 0x98]
mov dword [esi + 0x18], ecx
mov eax, dword [esp + 0x9c]
mov dword [esi + 0x1c], eax
mov ecx, dword [esp + 0xa0]
mov eax, dword [esp + 0x10]
mov dword [esi + 0x20], ecx
mov ecx, dword [esp + 0x44]
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 0x2c], ecx
mov ecx, dword [esp + 0x40]
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x34], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0x3c], ecx
mov ecx, dword [esp + 0x14]
mov dword [esi + 8], ebx
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], edi
mov dword [esi + 0x30], ecx
je 0x4c2b50
cmp ebp, 1
jne 0x4c2a5e
mov eax, dword [0x160cb48]
mov dword [esi + 0x50], eax
mov ecx, dword [0x160cb4c]
lea eax, [esi + 0x54]
mov dword [eax], ecx
mov ecx, dword [0x160cb50]
mov dword [esi + 0x58], ecx
mov ecx, dword [0x160cb3c]
mov dword [esi + 0x5c], ecx
mov ecx, dword [0x160cb40]
mov dword [esi + 0x60], ecx
mov ecx, dword [0x160cb44]
mov dword [esi + 0x64], ecx
mov ecx, dword [0x160cb68]
mov dword [esi + 0x68], ecx
mov ecx, dword [0x160cb6c]
mov dword [esi + 0x6c], ecx
mov ecx, dword [0x160cb70]
mov dword [esi + 0x70], ecx
mov ecx, dword [0x160cb74]
mov dword [esi + 0x74], ecx
mov ecx, dword [0x160cb78]
mov dword [esi + 0x78], ecx
mov ecx, dword [0x160cb7c]
jmp 0x4c2ac8
mov eax, dword [0x160cb74]
mov dword [esi + 0x50], eax
mov ecx, dword [0x160cb78]
lea eax, [esi + 0x54]
mov dword [eax], ecx
mov ecx, dword [0x160cb7c]
mov dword [esi + 0x58], ecx
mov ecx, dword [0x160cb68]
mov dword [esi + 0x5c], ecx
mov ecx, dword [0x160cb6c]
mov dword [esi + 0x60], ecx
mov ecx, dword [0x160cb70]
mov dword [esi + 0x64], ecx
mov ecx, dword [0x160cb94]
mov dword [esi + 0x68], ecx
mov ecx, dword [0x160cb98]
mov dword [esi + 0x6c], ecx
mov ecx, dword [0x160cb9c]
mov dword [esi + 0x70], ecx
mov ecx, dword [0x160cba0]
mov dword [esi + 0x74], ecx
mov ecx, dword [0x160cba4]
mov dword [esi + 0x78], ecx
mov ecx, dword [0x160cba8]
mov dword [esi + 0x7c], ecx
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov ecx, 4
fld dword [esp + 0x2c]
fadd dword [eax - 4]
add eax, 0xc
dec ecx
fstp dword [esp + 0x2c]
fld dword [esp + 0x30]
fadd dword [eax - 0xc]
fstp dword [esp + 0x30]
fld dword [esp + 0x34]
fadd dword [eax - 8]
fstp dword [esp + 0x34]
jne 0x4c2ae8
fld dword [esp + 0x2c]
fmul qword [0x54ed58]
fst dword [esp + 0x2c]
fld dword [esp + 0x30]
fmul qword [0x54ed58]
fstp dword [esp + 0x30]
fld dword [esp + 0x34]
fmul qword [0x54ed58]
fadd dword [0x54e768]
fstp dword [esp + 0x34]
fstp dword [esi + 0xc]
mov eax, dword [esp + 0x30]
mov dword [esi + 0x10], eax
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x14], ecx
lea eax, [esp + 0xfc]
xor ebp, ebp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x64]
cmp eax, edx
mov dword [esp + 0x44], ebp
jle 0x4c3519
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x7c]
mov edi, dword [esp + 0x78]
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x4c34f5
mov ebx, ecx
xor ecx, ecx
test ebx, ebx
mov dword [esp + 0x10], ebx
jle 0x4c2bc2
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
lea eax, [eax + eax*2]
lea eax, [esp + eax*8 + 0x6fc]
mov dword [esp + ecx*4 + 0x78], eax
inc ecx
add eax, 0x18
cmp ecx, ebx
jl 0x4c2ba7
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x7c]
mov edi, dword [esp + 0x78]
fld dword [edi]
fsub dword [eax]
lea ecx, [esp + 0x58]
push ecx
fstp dword [esp + 0x24]
fld dword [edi + 4]
fsub dword [eax + 4]
fstp dword [esp + 0x28]
fld dword [edi + 8]
fsub dword [eax + 8]
fstp dword [esp + 0x2c]
fld dword [edx]
fsub dword [eax]
fstp dword [esp + 0x4c]
fld dword [edx + 4]
fsub dword [eax + 4]
fstp dword [esp + 0x50]
fld dword [edx + 8]
fsub dword [eax + 8]
fst dword [esp + 0x54]
fmul dword [esp + 0x28]
fld dword [esp + 0x50]
fmul dword [esp + 0x2c]
fsubp st(1)
fstp dword [esp + 0x5c]
fld dword [esp + 0x4c]
fmul dword [esp + 0x2c]
fld dword [esp + 0x54]
fmul dword [esp + 0x24]
fsubp st(1)
fstp dword [esp + 0x60]
fld dword [esp + 0x50]
fmul dword [esp + 0x24]
fld dword [esp + 0x4c]
fmul dword [esp + 0x28]
fsubp st(1)
fstp dword [esp + 0x64]
call fcn.004694c0
fstp st(0)
fld dword [esp + 0x60]
fmul dword [edi + 4]
fld dword [esp + 0x64]
fmul dword [edi + 8]
mov edx, dword [esp + 0x20]
add esp, 4
faddp st(1)
fld dword [esp + 0x58]
fmul dword [edi]
mov eax, dword [edx + 8]
test eax, eax
faddp st(1)
fstp dword [esp + 0x3c]
jg 0x4c3096
mov ecx, dword [esp + 0x64]
lea eax, [ebp + 1]
cmp eax, ecx
jge 0x4c3096
lea ecx, [eax + eax*2]
lea edi, [esp + ecx*4 + 0x100]
mov ecx, dword [esp + 0x64]
sub ecx, eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x38], ecx
cmp dword [edi], 0
je 0x4c3080
mov eax, dword [edi + 4]
test eax, eax
jg 0x4c3080
mov edx, dword [esp + 0x1c]
cmp dword [edx + 8], eax
jne 0x4c3080
mov eax, dword [edi - 4]
fld dword [esp + 0x60]
lea eax, [eax + eax*2]
fmul dword [esp + eax*8 + 0x704]
fld dword [esp + 0x5c]
fmul dword [esp + eax*8 + 0x700]
lea ebp, [esp + eax*8 + 0x6fc]
faddp st(1)
fld dword [esp + 0x58]
fmul dword [ebp]
faddp st(1)
fsub dword [esp + 0x3c]
fabs
fcomp qword [0x54ec00]
fnstsw ax
and eax, 0x4100
je 0x4c3080
fld dword [ebp]
fsub dword [ebp + 0x18]
lea ecx, [esp + 0x6c]
push ecx
fstp dword [esp + 0x24]
fld dword [ebp + 4]
fsub dword [ebp + 0x1c]
fstp dword [esp + 0x28]
fld dword [ebp + 8]
fsub dword [ebp + 0x20]
fstp dword [esp + 0x2c]
fld dword [ebp + 0x30]
fsub dword [ebp + 0x18]
fstp dword [esp + 0x4c]
fld dword [ebp + 0x34]
fsub dword [ebp + 0x1c]
fstp dword [esp + 0x50]
fld dword [ebp + 0x38]
fsub dword [ebp + 0x20]
fst dword [esp + 0x54]
fmul dword [esp + 0x28]
fld dword [esp + 0x50]
fmul dword [esp + 0x2c]
fsubp st(1)
fstp dword [esp + 0x70]
fld dword [esp + 0x4c]
fmul dword [esp + 0x2c]
fld dword [esp + 0x54]
fmul dword [esp + 0x24]
fsubp st(1)
fstp dword [esp + 0x74]
fld dword [esp + 0x50]
fmul dword [esp + 0x24]
fld dword [esp + 0x4c]
fmul dword [esp + 0x28]
fsubp st(1)
fstp dword [esp + 0x78]
call fcn.004694c0
lea edx, [esp + 0x70]
lea eax, [esp + 0x5c]
push edx
push eax
fstp st(0)
call fcn.00469280
add esp, 0xc
test eax, eax
je 0x4c3074
xor eax, eax
test ebx, ebx
mov dword [esp + 0x14], eax
jle 0x4c3074
mov ecx, dword [edi]
xor esi, esi
test ecx, ecx
jle 0x4c2e17
mov edx, dword [esp + eax*4 + 0x78]
mov ebx, ebp
mov dword [esp + 0x40], edx
lea edi, [esi + 1]
mov eax, edi
cdq
idiv ecx
lea eax, [edx + edx*2]
mov edx, dword [esp + 0x40]
lea ecx, [ebp + eax*8]
push ecx
push edx
call fcn.00469280
add esp, 8
test eax, eax
je 0x4c2dfe
mov eax, dword [esp + 0x14]
push ebx
inc eax
cdq
idiv dword [esp + 0x14]
mov ecx, dword [esp + edx*4 + 0x7c]
push ecx
call fcn.00469280
add esp, 8
test eax, eax
jne 0x4c2e25
mov edx, dword [esp + 0x18]
mov esi, edi
add ebx, 0x18
mov ecx, dword [edx]
cmp esi, ecx
jl 0x4c2dc1
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov edi, edx
inc eax
cmp eax, ebx
mov dword [esp + 0x14], eax
jl 0x4c2daf
jmp 0x4c3074
mov eax, dword [esp + 0x10]
mov ecx, 1
xor ebx, ebx
cmp eax, ecx
jle 0x4c2e55
mov edi, dword [esp + 0x14]
lea eax, [ecx + edi]
cdq
idiv dword [esp + 0x10]
inc ebx
inc ecx
mov eax, dword [esp + edx*4 + 0x78]
mov dword [esp + ebx*4 + 0xb8], eax
mov eax, dword [esp + 0x10]
cmp ecx, eax
jl 0x4c2e38
mov edx, dword [esp + 0x18]
mov ecx, 1
mov edi, dword [edx]
cmp edi, ecx
jle 0x4c2e7e
lea eax, [esi + ecx]
cdq
idiv edi
inc ebx
inc ecx
cmp ecx, edi
lea eax, [edx + edx*2]
lea edx, [ebp + eax*8]
mov dword [esp + ebx*4 + 0xb8], edx
jl 0x4c2e64
xor edi, edi
test ebx, ebx
jle 0x4c304a
mov ebp, 1
mov eax, ebp
mov esi, dword [esp + edi*4 + 0xbc]
cdq
idiv ebx
lea eax, [esp + 0x6c]
push eax
mov edx, dword [esp + edx*4 + 0xc0]
fld dword [edx]
fsub dword [esi]
fstp dword [esp + 0x24]
fld dword [edx + 4]
fsub dword [esi + 4]
fstp dword [esp + 0x28]
fld dword [edx + 8]
fsub dword [esi + 8]
fstp dword [esp + 0x2c]
fld dword [esp + 0x60]
fmul dword [esp + 0x2c]
fld dword [esp + 0x64]
fmul dword [esp + 0x28]
fsubp st(1)
fstp dword [esp + 0x70]
fld dword [esp + 0x64]
fmul dword [esp + 0x24]
fld dword [esp + 0x5c]
fmul dword [esp + 0x2c]
fsubp st(1)
fstp dword [esp + 0x74]
fld dword [esp + 0x5c]
fmul dword [esp + 0x28]
fld dword [esp + 0x60]
fmul dword [esp + 0x24]
fsubp st(1)
fstp dword [esp + 0x78]
call fcn.004694c0
fstp st(0)
fld dword [esp + 0x74]
fmul dword [esi + 4]
fld dword [esp + 0x78]
fmul dword [esi + 8]
add esp, 4
xor ecx, ecx
faddp st(1)
fld dword [esp + 0x6c]
fmul dword [esi]
faddp st(1)
fadd dword [0x54ec3c]
cmp ecx, edi
je 0x4c2f5f
mov eax, dword [esp + ecx*4 + 0xbc]
fld dword [esp + 0x74]
fmul dword [eax + 8]
fld dword [esp + 0x70]
fmul dword [eax + 4]
faddp st(1)
fld dword [esp + 0x6c]
fmul dword [eax]
faddp st(1)
fcomp st(1)
fnstsw ax
and eax, 0x4100
je 0x4c3072
inc ecx
cmp ecx, ebx
jl 0x4c2f2d
inc edi
inc ebp
cmp edi, ebx
fstp st(0)
jl 0x4c2e8d
lea ecx, [esp + 0xbc]
mov ebp, 1
mov dword [esp + 0x14], ecx
mov eax, ebp
cdq
idiv ebx
mov eax, dword [esp + edx*4 + 0xbc]
mov edx, dword [esp + 0x14]
mov esi, dword [edx]
fld dword [eax]
fsub dword [esi]
fstp dword [esp + 0x20]
fld dword [eax + 4]
fsub dword [esi + 4]
fstp dword [esp + 0x24]
fld dword [eax + 8]
fsub dword [esi + 8]
lea eax, [esp + 0x20]
push eax
fstp dword [esp + 0x2c]
call fcn.004694c0
lea eax, [ebx + ebp - 2]
lea ecx, [esp + 0x4c]
cdq
fstp st(0)
idiv ebx
fld dword [esi]
push ecx
mov eax, dword [esp + edx*4 + 0xc4]
fsub dword [eax]
fstp dword [esp + 0x50]
fld dword [esi + 4]
fsub dword [eax + 4]
fstp dword [esp + 0x54]
fld dword [esi + 8]
fsub dword [eax + 8]
fstp dword [esp + 0x58]
call fcn.004694c0
fstp st(0)
fld dword [esp + 0x58]
fmul dword [esp + 0x30]
fld dword [esp + 0x54]
fmul dword [esp + 0x2c]
add esp, 8
faddp st(1)
fld dword [esp + 0x48]
fmul dword [esp + 0x20]
faddp st(1)
fcomp qword [0x54ede0]
fnstsw ax
and eax, 0x4100
jne 0x4c3033
cmp ebp, ebx
jge 0x4c3032
mov edx, dword [esp + 0x14]
mov ecx, ebx
sub ecx, ebp
lea esi, [edx + 4]
lea edi, [esi - 4]
rep movsd dword es:[edi], dword [esi]
dec ebx
mov esi, dword [esp + 0x14]
add esi, 4
inc ebp
mov dword [esp + 0x14], esi
lea eax, [ebp - 1]
cmp eax, ebx
jl 0x4c2f80
cmp ebx, 8
jg 0x4c3074
test ebx, ebx
mov dword [esp + 0x10], ebx
jle 0x4c3066
mov ecx, ebx
lea esi, [esp + 0xbc]
lea edi, [esp + 0x78]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x18]
mov dword [ecx], 0
jmp 0x4c3074
fstp st(0)
mov esi, dword [esp + 0x54]
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x38]
add edi, 0xc
dec eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x38], eax
jne 0x4c2c99
mov ebx, dword [0x160ca8c]
test ebx, ebx
jne 0x4c30e4
push 0x18000
call dword [0x160cc74]
add esp, 4
test eax, eax
je 0x4c3519
mov dword [0x160ca8c], eax
lea ecx, [eax + 0xd8]
mov edx, 0x17f
lea esi, [ecx + 0x28]
mov dword [ecx], esi
add ecx, 0x100
dec edx
jne 0x4c30c6
mov dword [eax + 0x17fd8], 0
mov ebx, dword [0x160ca8c]
mov edx, dword [ebx + 0xd8]
lea eax, [ebx + 0xd8]
mov ebp, dword [esp + 0x10]
mov dword [0x160ca8c], edx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x68]
lea edx, [ebx + 0x18]
mov dword [ebx], 4
mov dword [ebx + 0xc], edx
mov dword [ebx + 0x10], eax
xor eax, eax
mov dword [ebx + 8], ebp
test ebp, ebp
jle 0x4c312f
mov esi, dword [esp + eax*4 + 0x78]
mov edi, edx
inc eax
mov ecx, 6
add edx, 0x18
cmp eax, ebp
rep movsd dword es:[edi], dword [esi]
jl 0x4c311a
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 8]
mov dword [ebx + 0xfc], 0
mov eax, edx
mov dword [ebx + 4], edx
mov ecx, dword [0x160cbd4]
test eax, eax
jle 0x4c316d
mov edx, dword [ecx + 0x20]
test edx, edx
je 0x4c34f5
mov edx, dword [0x160c960]
mov esi, dword [edx + 0x20]
test esi, esi
je 0x4c34f5
test eax, eax
jge 0x4c3226
mov ecx, dword [0x160c958]
mov edx, dword [ecx + 0x20]
test edx, edx
je 0x4c34f5
lea edx, [eax + eax*2]
mov eax, dword [0x160cd60]
shl edx, 4
mov esi, dword [eax + 0x90]
sub esi, edx
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4c31a7
mov ecx, dword [esi + 0x24]
cmp dword [eax + ecx*4], 0xffffffff
jne 0x4c3211
mov edx, dword [esi + 0x24]
lea eax, [edx*4 + 0x200]
push eax
call dword [0x160cc80]
mov edi, eax
add esp, 4
test edi, edi
je 0x4c34de
mov ecx, dword [esi + 0x24]
lea edx, [ecx*4 + 0x200]
shr edx, 2
push edx
push 0
push edi
call fcn.0045d220
mov eax, dword [esi + 0x24]
add esp, 0xc
mov dword [edi + eax*4 + 0x1fc], 0xffffffff
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4c320e
mov ecx, dword [esi + 0x24]
shl ecx, 2
push ecx
push eax
push edi
call fcn.0045d2d0
mov edx, dword [esi + 0x20]
push edx
call dword [0x160cc84]
add esp, 0x10
mov dword [esi + 0x20], edi
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
mov dword [ecx + eax*4], ebx
mov eax, dword [esi + 0x24]
inc eax
mov dword [esi + 0x24], eax
jmp 0x4c34de
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x4c34f5
lea edx, [esp + 0xb0]
lea eax, [esp + 0xa4]
push edx
push eax
call fcn.00469740
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov eax, dword [ebx + 8]
add esp, 8
mov dword [esp + 0x14], 0
test eax, eax
jle 0x4c33da
lea ebp, [ebx + 0x1c]
fld dword [esp + 0x58]
fadd dword [ebp - 4]
lea ecx, [esp + 0x20]
fstp dword [esp + 0x20]
fld dword [esp + 0x5c]
fadd dword [ebp]
fstp dword [esp + 0x24]
fld dword [esp + 0x60]
fadd dword [ebp + 4]
fstp dword [esp + 0x28]
call fcn.004d4710
mov esi, eax
test esi, esi
je 0x4c3384
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4c3384
test al, 1
jne 0x4c3384
mov ecx, dword [ebx + 0xfc]
xor eax, eax
test ecx, ecx
jle 0x4c32dc
lea edx, [ebx + 0xdc]
cmp dword [edx], esi
je 0x4c32dc
inc eax
add edx, 4
cmp eax, ecx
jl 0x4c32d0
cmp eax, ecx
jne 0x4c3384
mov eax, dword [esi + 0x58]
test eax, eax
je 0x4c32f4
mov ecx, dword [esi + 0x5c]
cmp dword [eax + ecx*4], 0xffffffff
jne 0x4c335a
mov edx, dword [esi + 0x5c]
lea eax, [edx*4 + 0x200]
push eax
call dword [0x160cc80]
mov edi, eax
add esp, 4
test edi, edi
je 0x4c336a
mov ecx, dword [esi + 0x5c]
lea edx, [ecx*4 + 0x200]
shr edx, 2
push edx
push 0
push edi
call fcn.0045d220
mov eax, dword [esi + 0x5c]
add esp, 0xc
mov dword [edi + eax*4 + 0x1fc], 0xffffffff
mov eax, dword [esi + 0x58]
test eax, eax
je 0x4c3357
mov ecx, dword [esi + 0x5c]
shl ecx, 2
push ecx
push eax
push edi
call fcn.0045d2d0
mov edx, dword [esi + 0x58]
push edx
call dword [0x160cc84]
add esp, 0x10
mov dword [esi + 0x58], edi
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x58]
mov dword [ecx + eax*4], ebx
mov eax, dword [esi + 0x5c]
inc eax
mov dword [esi + 0x5c], eax
mov edx, dword [ebx + 0xfc]
mov dword [ebx + edx*4 + 0xdc], esi
mov eax, dword [ebx + 0xfc]
inc eax
mov dword [ebx + 0xfc], eax
lea eax, [esp + 0xb0]
lea ecx, [esp + 0xa4]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.004697b0
fld dword [esp + 0x2c]
fadd dword [esp + 0x38]
mov eax, dword [esp + 0x20]
add esp, 0xc
inc eax
add ebp, 0x18
mov dword [esp + 0x14], eax
fstp dword [esp + 0x2c]
fld dword [esp + 0x24]
fadd dword [esp + 0x30]
fstp dword [esp + 0x30]
fld dword [esp + 0x28]
fadd dword [esp + 0x34]
fstp dword [esp + 0x34]
cmp eax, dword [ebx + 8]
jl 0x4c3277
fild dword [ebx + 8]
lea ecx, [esp + 0x2c]
fdivr dword [0x54e504]
fmul dword [esp + 0x2c]
fstp dword [esp + 0x2c]
fild dword [ebx + 8]
fdivr dword [0x54e504]
fmul dword [esp + 0x30]
fstp dword [esp + 0x30]
fild dword [ebx + 8]
fdivr dword [0x54e504]
fmul dword [esp + 0x34]
fstp dword [esp + 0x34]
call fcn.004d4710
mov ecx, dword [ebx + 0xfc]
mov esi, eax
xor eax, eax
test ecx, ecx
jle 0x4c3436
lea edx, [ebx + 0xdc]
cmp dword [edx], esi
je 0x4c3436
inc eax
add edx, 4
cmp eax, ecx
jl 0x4c342a
cmp eax, ecx
jne 0x4c34de
mov eax, dword [esi + 0x58]
test eax, eax
je 0x4c344e
mov ecx, dword [esi + 0x5c]
cmp dword [eax + ecx*4], 0xffffffff
jne 0x4c34b4
mov edx, dword [esi + 0x5c]
lea eax, [edx*4 + 0x200]
push eax
call dword [0x160cc80]
mov edi, eax
add esp, 4
test edi, edi
je 0x4c34c4
mov ecx, dword [esi + 0x5c]
lea edx, [ecx*4 + 0x200]
shr edx, 2
push edx
push 0
push edi
call fcn.0045d220
mov eax, dword [esi + 0x5c]
add esp, 0xc
mov dword [edi + eax*4 + 0x1fc], 0xffffffff
mov eax, dword [esi + 0x58]
test eax, eax
je 0x4c34b1
mov ecx, dword [esi + 0x5c]
shl ecx, 2
push ecx
push eax
push edi
call fcn.0045d2d0
mov edx, dword [esi + 0x58]
push edx
call dword [0x160cc84]
add esp, 0x10
mov dword [esi + 0x58], edi
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x58]
mov dword [ecx + eax*4], ebx
mov eax, dword [esi + 0x5c]
inc eax
mov dword [esi + 0x5c], eax
mov edx, dword [ebx + 0xfc]
mov dword [ebx + edx*4 + 0xdc], esi
mov eax, dword [ebx + 0xfc]
inc eax
mov dword [ebx + 0xfc], eax
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x38]
mov ecx, dword [eax + 0x48]
mov dword [edx], ecx
mov ecx, dword [eax + 0x4c]
inc ecx
mov dword [eax + 0x48], ebx
mov dword [eax + 0x4c], ecx
mov ebp, dword [esp + 0x44]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x64]
mov esi, dword [esp + 0x54]
inc ebp
add ecx, 0xc
cmp ebp, eax
mov dword [esp + 0x44], ebp
mov dword [esp + 0x1c], ecx
jl 0x4c2b6d
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2aec
ret