Function at 0x140057130
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov rbp, rdx
mov rdi, rcx
call fcn.140056d50
mov rcx, qword [rdi + 0x40]
lea rdx, str.MATERIAL_
call fcn.14007da10
mov rbx, qword [rbp + 0x10]
mov rcx, rdi
call fcn.140056d50
mov rcx, qword [rdi + 0x40]
lea r8, str.NAME
mov r9, rbx
lea rdx, str._s__s_
call fcn.14007da90
mov rcx, rdi
call fcn.140056d50
mov rcx, qword [rdi + 0x40]
lea rdx, [0x14018a9a4]
call fcn.14007da10
mov rcx, qword [rdi + 0x40]
lea rdx, [0x14018a67c]
xor r14d, r14d
mov dword [rdi + 0x304], r14d
call fcn.14007da10
mov eax, dword [rdi + 0x300]
cmp dword [rdi + 0x304], r14d
jne 0x1400571fc
mov ebx, r14d
test eax, eax
jle 0x1400571fc
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rdi + 0x40]
lea rdx, [0x14018a5c4]
call fcn.14007da10
mov eax, dword [rdi + 0x300]
inc ebx
cmp ebx, eax
jl 0x1400571e0
mov rcx, qword [rdi + 0x40]
lea rdx, [0x14018a680]
add eax, 2
mov dword [rdi + 0x304], r14d
mov dword [rdi + 0x300], eax
call fcn.14007da10
mov rcx, qword [rdi + 0x40]
lea rdx, [0x14018a67c]
mov dword [rdi + 0x304], r14d
call fcn.14007da10
cmp qword [rbp + 0x30], r14
je 0x14005735b
cmp dword [rdi + 0x304], r14d
jne 0x140057284
mov ebx, r14d
cmp dword [rdi + 0x300], ebx
jle 0x14005727a
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rdi + 0x40]
lea rdx, [0x14018a5c4]
call fcn.14007da10
inc ebx
cmp ebx, dword [rdi + 0x300]
jl 0x140057260
mov dword [rdi + 0x304], 1
mov rcx, qword [rdi + 0x40]
lea rdx, str.TEXTURE_
call fcn.14007da10
mov rdx, qword [rbp + 0x30]
mov rcx, rdi
call fcn.140054530
mov rsi, rax
cmp dword [rdi + 0x304], r14d
jne 0x1400572e4
mov ebx, r14d
cmp dword [rdi + 0x300], ebx
jle 0x1400572da
nop word [rax + rax]
mov rcx, qword [rdi + 0x40]
lea rdx, [0x14018a5c4]
call fcn.14007da10
inc ebx
cmp ebx, dword [rdi + 0x300]
jl 0x1400572c0
mov dword [rdi + 0x304], 1
mov rcx, qword [rdi + 0x40]
lea rdx, [0x14018a6a0]
mov r8, rsi
call fcn.14007da90
cmp dword [rdi + 0x304], r14d
jne 0x140057334
mov ebx, r14d
cmp dword [rdi + 0x300], ebx
jle 0x14005732a
nop dword [rax + rax]
mov rcx, qword [rdi + 0x40]
lea rdx, [0x14018a5c4]
call fcn.14007da10
inc ebx
cmp ebx, dword [rdi + 0x300]
jl 0x140057310
mov dword [rdi + 0x304], 1
mov rcx, qword [rdi + 0x40]
lea rdx, [0x14018a9cc]
call fcn.14007da10
mov rcx, qword [rdi + 0x40]
lea rdx, [0x14018a67c]
mov dword [rdi + 0x304], r14d
call fcn.14007da10
cmp qword [rbp + 0x48], r14
je 0x14005747b
cmp dword [rdi + 0x304], r14d
jne 0x1400573a4
mov ebx, r14d
cmp dword [rdi + 0x300], ebx
jle 0x14005739a
nop dword [rax]
mov rcx, qword [rdi + 0x40]
lea rdx, [0x14018a5c4]
call fcn.14007da10
inc ebx
cmp ebx, dword [rdi + 0x300]
jl 0x140057380
mov dword [rdi + 0x304], 1
mov rcx, qword [rdi + 0x40]
lea rdx, str.ENVIRONMENT_STANDARD_
call fcn.14007da10
mov rdx, qword [rbp + 0x48]
mov rcx, rdi
call fcn.140054530
mov rsi, rax
cmp dword [rdi + 0x304], r14d
jne 0x140057404
mov ebx, r14d
cmp dword [rdi + 0x300], ebx
jle 0x1400573fa
nop word [rax + rax]
mov rcx, qword [rdi + 0x40]
lea rdx, [0x14018a5c4]
call fcn.14007da10
inc ebx
cmp ebx, dword [rdi + 0x300]
jl 0x1400573e0
mov dword [rdi + 0x304], 1
mov rcx, qword [rdi + 0x40]
lea rdx, [0x14018a6a0]
mov r8, rsi
call fcn.14007da90
cmp dword [rdi + 0x304], r14d
jne 0x140057454
mov ebx, r14d
cmp dword [rdi + 0x300], ebx
jle 0x14005744a
nop dword [rax + rax]
mov rcx, qword [rdi + 0x40]
lea rdx, [0x14018a5c4]
call fcn.14007da10
inc ebx
cmp ebx, dword [rdi + 0x300]
jl 0x140057430
mov dword [rdi + 0x304], 1
mov rcx, qword [rdi + 0x40]
lea rdx, [0x14018a9dc]
call fcn.14007da10
mov rcx, qword [rdi + 0x40]
lea rdx, [0x14018a67c]
mov dword [rdi + 0x304], r14d
call fcn.14007da10
mov rsi, qword [rbp + 0x18]
test rsi, rsi
je 0x1400577e6
mov rax, qword [0x1401834b0]
cmp qword [rsi + 0x10], rax
jne 0x1400574a4
mov ecx, dword [0x1401834b8]
cmp dword [rsi + 0x18], ecx
je 0x140057534
cmp dword [rdi + 0x304], r14d
jne 0x1400574e4
mov ebx, r14d
cmp dword [rdi + 0x300], ebx
jle 0x1400574da
nop dword [rax + rax]
mov rcx, qword [rdi + 0x40]
lea rdx, [0x14018a5c4]
call fcn.14007da10
inc ebx
cmp ebx, dword [rdi + 0x300]
jl 0x1400574c0
mov dword [rdi + 0x304], 1
mov rcx, qword [rdi + 0x40]
lea rdx, str.AMBIENT
call fcn.14007da10
mov rcx, qword [rdi + 0x40]
lea rdx, [0x14018a690]
call fcn.14007da10
lea rdx, [rsi + 0x10]
mov rcx, rdi
call fcn.140056cf0
mov rcx, qword [rdi + 0x40]
lea rdx, [0x14018a67c]
mov dword [rdi + 0x304], r14d
call fcn.14007da10
mov ecx, dword [0x1401834b8]
mov rax, qword [0x1401834b0]
cmp qword [rsi + 0x1c], rax
jne 0x140057543
cmp dword [rsi + 0x24], ecx
je 0x1400575c7
cmp dword [rdi + 0x304], r14d
jne 0x140057584
mov ebx, r14d
cmp dword [rdi + 0x300], ebx
jle 0x14005757a
nop word [rax + rax]
mov rcx, qword [rdi + 0x40]
lea rdx, [0x14018a5c4]
call fcn.14007da10
inc ebx
cmp ebx, dword [rdi + 0x300]
jl 0x140057560
mov dword [rdi + 0x304], 1
mov rcx, qword [rdi + 0x40]
lea rdx, str.DIFFUSE
call fcn.14007da10
mov rcx, qword [rdi + 0x40]
lea rdx, [0x14018a690]
call fcn.14007da10
lea rdx, [rsi + 0x1c]
mov rcx, rdi
call fcn.140056cf0
mov rcx, qword [rdi + 0x40]
lea rdx, [0x14018a67c]
mov dword [rdi + 0x304], r14d
call fcn.14007da10
mov rax, qword [0x1401baed8]
cmp qword [rsi + 0x28], rax
jne 0x1400575e3
mov ecx, dword [0x1401baee0]
cmp dword [rsi + 0x30], ecx
je 0x1400576ae
cmp dword [rdi + 0x304], r14d
jne 0x140057624
mov ebx, r14d
cmp dword [rdi + 0x300], ebx
jle 0x14005761a
nop word [rax + rax]
mov rcx, qword [rdi + 0x40]
lea rdx, [0x14018a5c4]
call fcn.14007da10
inc ebx
cmp ebx, dword [rdi + 0x300]
jl 0x140057600
mov dword [rdi + 0x304], 1
mov rcx, qword [rdi + 0x40]
lea rdx, str.SPECULAR
call fcn.14007da10
mov rcx, qword [rdi + 0x40]
lea rdx, [0x14018a690]
call fcn.14007da10
movss xmm0, dword [rsi + 0x34]
lea rdx, str._g___g___g___g
movss xmm3, dword [rsi + 0x2c]
movss xmm2, dword [rsi + 0x28]
movss xmm1, dword [rsi + 0x30]
mov rcx, qword [rdi + 0x40]
cvtps2pd xmm0, xmm0
cvtps2pd xmm3, xmm3
cvtps2pd xmm2, xmm2
cvtps2pd xmm1, xmm1
movsd qword [rsp + 0x28], xmm0
movq r9, xmm3
movq r8, xmm2
movsd qword [rsp + 0x20], xmm1
call fcn.14007da90
mov rcx, qword [rdi + 0x40]
lea rdx, [0x14018a67c]
mov dword [rdi + 0x304], r14d
call fcn.14007da10
mov ecx, dword [0x1401baee0]
mov rax, qword [0x1401baed8]
cmp qword [rsi + 0x38], rax
jne 0x1400576b9
cmp dword [rsi + 0x40], ecx
je 0x140057737
cmp dword [rdi + 0x304], r14d
jne 0x1400576f4
mov ebx, r14d
cmp dword [rdi + 0x300], ebx
jle 0x1400576ea
nop dword [rax]
mov rcx, qword [rdi + 0x40]
lea rdx, [0x14018a5c4]
call fcn.14007da10
inc ebx
cmp ebx, dword [rdi + 0x300]
jl 0x1400576d0
mov dword [rdi + 0x304], 1
mov rcx, qword [rdi + 0x40]
lea rdx, str.EMISSIVE
call fcn.14007da10
mov rcx, qword [rdi + 0x40]
lea rdx, [0x14018a690]
call fcn.14007da10
lea rdx, [rsi + 0x38]
mov rcx, rdi
call fcn.140056cf0
mov rcx, qword [rdi + 0x40]
lea rdx, [0x14018a67c]
mov dword [rdi + 0x304], r14d
call fcn.14007da10
movss xmm0, dword [rsi + 0x44]
ucomiss xmm0, dword [0x1401587ac]
jp 0x14005774b
je 0x1400577e6
cmp dword [rdi + 0x304], r14d
jne 0x140057784
mov ebx, r14d
cmp dword [rdi + 0x300], ebx
jle 0x14005777a
nop
mov rcx, qword [rdi + 0x40]
lea rdx, [0x14018a5c4]
call fcn.14007da10
inc ebx
cmp ebx, dword [rdi + 0x300]
jl 0x140057760
mov dword [rdi + 0x304], 1
mov rcx, qword [rdi + 0x40]
lea rdx, str.OPACITY
call fcn.14007da10
mov rcx, qword [rdi + 0x40]
lea rdx, [0x14018a690]
call fcn.14007da10
movss xmm2, dword [rsi + 0x44]
lea rdx, str._g___g___g
mov rcx, qword [rdi + 0x40]
cvtps2pd xmm2, xmm2
movaps xmm3, xmm2
movsd qword [rsp + 0x20], xmm2
movq r9, xmm2
movq r8, xmm2
call fcn.14007da90
mov rcx, qword [rdi + 0x40]
lea rdx, [0x14018a67c]
mov dword [rdi + 0x304], r14d
call fcn.14007da10
mov eax, dword [rdi + 0x300]
add eax, 0xfffffffe
mov dword [rdi + 0x300], eax
cmp dword [rdi + 0x304], r14d
jne 0x14005782a
mov ebx, r14d
test eax, eax
jle 0x14005782a
nop word [rax + rax]
mov rcx, qword [rdi + 0x40]
lea rdx, [0x14018a5c4]
call fcn.14007da10
inc ebx
cmp ebx, dword [rdi + 0x300]
jl 0x140057810
mov rcx, qword [rdi + 0x40]
lea rdx, [0x14018a684]
mov dword [rdi + 0x304], r14d
call fcn.14007da10
mov rcx, qword [rdi + 0x40]
lea rdx, [0x14018a67c]
mov dword [rdi + 0x304], r14d
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
jmp fcn.14007da10