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

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x408]
sub rsp, 0x4d0
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
mov rax, qword [0x140424b58]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
mov r13, r8
mov r12, rdx
mov rbx, rcx
xor esi, esi
mov qword [rbp - 0x70], rsi
mov byte [rbp - 0x68], sil
mov r8, qword [rdx + 0x10]
cmp r8, 0x3ff
ja 0x1401bb869
mov qword [rbp - 0x70], r8
cmp qword [rdx + 0x18], 0x10
jb 0x1401bb857
mov rdx, qword [rdx]
lea rcx, [rbp - 0x68]
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbp - 0x70]
mov byte [rbp + rax - 0x68], sil
mov dword [rsp + 0x20], esi
xor r9d, r9d
lea r8, [0x1403537a0]
lea rdx, [rbp - 0x70]
mov rcx, r13
call fcn.1401f1010
mov eax, esi
cmp byte [r12 + 0x2c], al
setne al
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
lea r9, str._mat.twosided
mov r8d, 4
lea rdx, [rsp + 0x60]
mov rcx, r13
call fcn.1401f0e30
lea rdx, [r12 + 0xf8]
mov r14d, 1
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
lea r9, str._mat.refracti
lea r8d, [r14 + 3]
mov rcx, r13
call fcn.1401f0e30
lea rdx, [r12 + 0xfc]
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
lea r9, str._mat.bumpscaling
lea r8d, [r14 + 3]
mov rcx, r13
call fcn.1401f0e30
movss xmm0, dword [r12 + 0x34]
xorps xmm7, xmm7
ucomiss xmm0, xmm7
jp 0x1401bb922
je 0x1401bb930
movss xmm0, dword [r12 + 0x3c]
ucomiss xmm0, xmm7
jp 0x1401bb93a
jne 0x1401bb93a
mov eax, 2
jmp 0x1401bba07
cmp byte [rbx + 0x30], sil
je 0x1401bb95b
mulss xmm0, dword [0x140355594]
movss xmm1, dword [0x1403607cc]
addss xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_powf
jmp 0x1401bb9ae
cvtps2pd xmm1, xmm0
movsd xmm0, qword [0x14037f7d8]
comisd xmm0, xmm1
jb 0x1401bb976
movss xmm0, dword [0x14037f7f0]
jmp 0x1401bb9ae
movsd xmm0, qword [0x14037f7e0]
comisd xmm0, xmm1
jb 0x1401bb98e
movss xmm0, dword [0x14037f7f4]
jmp 0x1401bb9ae
movsd xmm0, qword [0x14037f7e8]
comisd xmm0, xmm1
jb 0x1401bb9a6
movss xmm0, dword [0x14037d37c]
jmp 0x1401bb9ae
movss xmm0, dword [0x14037f7f8]
movss dword [rsp + 0x40], xmm0
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
lea r9, str._mat.shinpercent
mov r8d, 4
lea rdx, [r12 + 0x34]
mov rcx, r13
call fcn.1401f0e30
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
lea r9, str._mat.shininess
mov r8d, 4
lea rdx, [rsp + 0x40]
mov rcx, r13
call fcn.1401f0e30
mov eax, 3
mov dword [rsp + 0x58], eax
movss xmm2, dword [r12 + 0x44]
movss xmm3, dword [r12 + 0x28]
movss xmm6, dword [0x140354214]
subss xmm3, xmm6
movss xmm1, dword [r12 + 0x24]
subss xmm1, xmm6
mulss xmm3, xmm2
mulss xmm1, xmm2
addss xmm3, xmm6
addss xmm1, xmm6
movss xmm0, dword [r12 + 0x20]
subss xmm0, xmm6
mulss xmm0, xmm2
addss xmm0, xmm6
movss dword [rsp + 0x48], xmm0
movss dword [rsp + 0x4c], xmm1
movss dword [rsp + 0x50], xmm3
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
lea r9, str._clr.specular
mov r8d, 0xc
lea rdx, [rsp + 0x48]
mov rcx, r13
call fcn.1401f0e30
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
lea r9, str._mat.shinpercent
mov r8d, 4
lea rdx, [r12 + 0x34]
mov rcx, r13
call fcn.1401f0e30
movss xmm0, dword [r12 + 0x40]
mulss xmm0, dword [0x14037f7d0]
movss dword [rsp + 0x48], xmm0
movss dword [rsp + 0x50], xmm0
movss dword [rsp + 0x4c], xmm0
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
lea r9, str._clr.emissive
mov r8d, 0xc
lea rdx, [rsp + 0x48]
mov rcx, r13
call fcn.1401f0e30
lea rdx, [r12 + 0x104]
movss xmm1, dword [rdx]
cvtps2pd xmm1, xmm1
xorps xmm0, xmm0
ucomisd xmm0, xmm1
jp 0x1401bbb40
jne 0x1401bbb40
movss xmm1, dword [r12 + 0x38]
movss xmm0, dword [0x14035ede4]
ucomiss xmm0, xmm1
jp 0x1401bbb2b
je 0x1401bbb91
mov dword [rsp + 0x5c], esi
subss xmm6, xmm1
movss dword [rsp + 0x40], xmm6
lea rdx, [rsp + 0x40]
jmp 0x1401bbb45
mov dword [rsp + 0x5c], r14d
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
lea r9, str._mat.opacity
mov r8d, 4
mov rcx, r13
call fcn.1401f0e30
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
lea r9, str._mat.blend
mov r8d, 4
lea rdx, [rsp + 0x5c]
mov rcx, r13
call fcn.1401f0e30
lea r8, [r12 + 0x88]
mov r9d, r14d
mov rdx, r13
mov rcx, rbx
call fcn.1401bca60
test al, al
jne 0x1401bbbc1
lea r8, [r12 + 0x98]
mov r9d, r14d
mov rdx, r13
mov rcx, rbx
call fcn.1401bca60
lea r8, [r12 + 0xa8]
mov r9d, 2
mov rdx, r13
mov rcx, rbx
call fcn.1401bca60
lea r8, [r12 + 0xd8]
mov r9d, 7
mov rdx, r13
mov rcx, rbx
call fcn.1401bca60
lea r8, [r12 + 0xc8]
mov r9d, 5
mov rdx, r13
mov rcx, rbx
call fcn.1401bca60
lea r8, [r12 + 0xb8]
mov r9d, 8
mov rdx, r13
mov rcx, rbx
call fcn.1401bca60
lea r8, [r12 + 0xe8]
mov r9d, 0xb
mov rdx, r13
mov rcx, rbx
call fcn.1401bca60
mov rdi, qword [r12 + 0x78]
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x1401bbdb4
mov r14, qword [rbx + 0x40]
lea rcx, [rbx + 0x30]
mov r15, qword [rbx + 0x48]
cmp r15, 0x10
jb 0x1401bbc65
mov rcx, qword [rbx + 0x30]
cmp r14, 0x11
jne 0x1401bbc82
mov r8, r14
lea rdx, str.LW_SuperCelShader
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1401bbd77
lea rcx, [rbx + 0x30]
cmp r15, 0x10
jb 0x1401bbc90
mov rcx, qword [rbx + 0x30]
cmp r14, 0xc
jne 0x1401bbcad
mov r8, r14
lea rdx, str.AH_CelShader
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1401bbd77
lea rcx, [rbx + 0x30]
cmp r15, 0x10
jb 0x1401bbcbb
mov rcx, qword [rbx + 0x30]
cmp r14, 0xe
jne 0x1401bbcd8
mov r8, r14
lea rdx, str.LW_RealFresnel
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1401bbd92
lea rcx, [rbx + 0x30]
cmp r15, 0x10
jb 0x1401bbce6
mov rcx, qword [rbx + 0x30]
cmp r14, 0xe
jne 0x1401bbd03
mov r8, r14
lea rdx, str.LW_FastFresnel
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1401bbd92
call fcn.1400f2ee0
mov r14, rax
lea r8, [rbx + 0x30]
lea rdx, str.LWO2:_Unknown_surface_shader:
lea rcx, [rsp + 0x70]
call fcn.140028c30
nop
cmp qword [rax + 0x18], 0x10
jb 0x1401bbd2b
mov rax, qword [rax]
mov rdx, rax
mov rcx, r14
call fcn.1400f2f30
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x1401bbd6f
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401bbd6a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401bbdad
call fcn.1401a68e0
mov rbx, qword [rbx]
jmp 0x1401bbc46
call fcn.1400f2ee0
lea rdx, str.LWO2:_Mapping_LW_SuperCelShader_AH_CelShader_to_aiShadingMode_Toon
mov rcx, rax
call fcn.1400f2ef0
mov eax, 5
jmp 0x1401bbdb8
call fcn.1400f2ee0
lea rdx, str.LWO2:_Mapping_LW_RealFresnel_LW_FastFresnel_to_aiShadingMode_Fresnel
mov rcx, rax
call fcn.1400f2ef0
mov eax, 0xa
jmp 0x1401bbdb8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov eax, dword [rsp + 0x58]
comiss xmm7, dword [r12 + 0x48]
mov edi, 1
cmovae eax, edi
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x30], 4
xor ebx, ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
lea r9, str._mat.shadingm
lea r8d, [rdi + 3]
lea rdx, [rsp + 0x58]
mov rcx, r13
call fcn.1401f0e30
movss xmm2, dword [r12 + 0x24]
movss xmm0, dword [r12 + 0x28]
movss dword [rsp + 0x6c], xmm0
movss xmm1, dword [r12 + 0x20]
unpcklps xmm1, xmm2
movsd qword [rsp + 0x48], xmm1
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x50], eax
movss xmm2, dword [r12 + 0x30]
movaps xmm0, xmm2
mulss xmm0, dword [r12 + 0x20]
movss dword [rsp + 0x48], xmm0
movss xmm1, dword [rsp + 0x4c]
mulss xmm1, xmm2
movss dword [rsp + 0x4c], xmm1
movss xmm0, dword [rsp + 0x50]
mulss xmm0, xmm2
movss dword [rsp + 0x50], xmm0
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
lea r9, str._clr.diffuse
lea r8d, [rdi + 0xb]
lea rdx, [rsp + 0x48]
mov rcx, r13
call fcn.1401f0e30
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.14032b620
lea r11, [rsp + 0x4d0]
mov rbx, qword [r11 + 0x58]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret