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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xf8
push esi
mov esi, ecx
push edi
mov dword [esp + 0x6c], esi
cmp dword [esi + 0x294], 0
jne 0x598d2a
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0
lea ecx, [esp + 0xc]
push eax
push ecx
call fcn.00473d50
add esp, 8
mov dword [esp + 0x68], eax
cmp byte [esi + 0x1e0], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
jne 0x59862b
movss xmm2, dword [0x739900]
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00597630
mov edi, dword [esp + 0x24]
add esp, 8
jmp 0x598c8a
mov eax, dword [esi + 0x1e4]
shr eax, 1
test al, 1
je 0x5988e4
movaps xmm0, xmmword [0x739ed0]
lea eax, [esp + 0xe0]
movups xmmword [esp + 0x80], xmm0
lea edx, [esp + 0x80]
xor esi, esi
movaps xmm0, xmmword [0x739eb0]
sub eax, edx
movups xmmword [esp + 0x90], xmm0
xor edi, edi
mov dword [esp + 0x4c], eax
movaps xmm0, xmmword [0x739ec0]
xor ecx, ecx
movups xmmword [esp + 0xa0], xmm0
sar eax, 2
movaps xmm0, xmmword [0x739e70]
imul eax, eax, 0xaaaaaaab
movups xmmword [esp + 0xb0], xmm0
movaps xmm0, xmmword [0x739e90]
movups xmmword [esp + 0xc0], xmm0
mov dword [esp + 8], eax
movaps xmm0, xmmword [0x739be0]
movups xmmword [esp + 0xd0], xmm0
test eax, eax
je 0x598739
cmp eax, 0x15555555
ja 0x598f45
lea edi, [eax + eax*2]
shl edi, 2
test edi, edi
je 0x59870f
cmp edi, 0x1000
jb 0x598704
lea eax, [edi + 0x23]
cmp eax, edi
jbe 0x598f4a
push eax
call fcn.005ab82c
add esp, 4
test eax, eax
je 0x598f59
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x59870f
push edi
call fcn.005ab82c
add esp, 4
mov esi, eax
push dword [esp + 0x4c]
lea eax, [edi + esi]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x84]
push eax
push esi
call fcn.005c3580
mov eax, dword [esp + 0x14]
add esp, 0xc
mov ecx, dword [esp + 0xc]
lea eax, [eax + eax*2]
lea edi, [esi + eax*4]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
call fcn.004b7000
xor eax, eax
mov dword [esp + 0x80], 1
mov dword [esp + 0x50], eax
lea esi, [esp + 0xc8]
mov dword [esp + 0x14], eax
xor edx, edx
lea eax, [esp + 0x80]
mov dword [esp + 0x84], 0x20002
sub esi, eax
mov dword [esp + 0x88], 0x30000
mov dword [esp + 0x4c], esi
sar esi, 1
mov dword [esp + 0x8c], 0x50004
mov dword [esp + 0x90], 0x40006
mov dword [esp + 0x94], 0x70006
mov dword [esp + 0x98], 3
mov dword [esp + 0x9c], 0x30004
mov dword [esp + 0xa0], 0x70004
mov dword [esp + 0xa4], 0x20001
mov dword [esp + 0xa8], 0x50005
mov dword [esp + 0xac], 0x60002
mov dword [esp + 0xb0], 0x30002
mov dword [esp + 0xb4], 0x60006
mov dword [esp + 0xb8], 0x70003
mov dword [esp + 0xbc], 0x10000
mov dword [esp + 0xc0], 5
mov dword [esp + 0xc4], 0x40005
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], esi
je 0x598ca2
cmp esi, 0x7fffffff
ja 0x598f4f
add esi, esi
jne 0x598872
mov dword [esp + 0x10], esi
jmp 0x5988b4
cmp esi, 0x1000
jb 0x5988a5
lea eax, [esi + 0x23]
cmp eax, esi
jbe 0x598f54
push eax
call fcn.005ab82c
add esp, 4
test eax, eax
je 0x598f59
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esp + 0x10], esi
mov dword [esi - 4], eax
jmp 0x5988b4
push esi
call fcn.005ab82c
add esp, 4
mov dword [esp + 0x10], eax
mov esi, eax
mov eax, dword [esp + 0xc]
push dword [esp + 0x4c]
lea eax, [esi + eax*2]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x84]
push eax
push esi
call fcn.005c3580
mov eax, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [esp + 0x10]
lea eax, [esi + eax*2]
jmp 0x598c9e
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0x3f000000
push eax
push 0
lea ecx, [esp + 0x20]
mov dword [esp + 0x3c], 0x3f000000
mov dword [esp + 0x40], 0
call fcn.0059b580
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x50], 0x3f000000
mov dword [esp + 0x54], 0x3f000000
mov dword [esp + 0x58], 0x3f800000
cmp esi, dword [esp + 0x20]
je 0x598948
movq xmm0, qword [esp + 0x50]
mov eax, dword [esp + 0x58]
movq qword [esi], xmm0
mov dword [esi + 8], eax
add esi, 0xc
mov dword [esp + 0x1c], esi
jmp 0x59895b
lea eax, [esp + 0x50]
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.0059b580
mov esi, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0xf0], 0x3f800000
mov dword [esp + 0x4c], eax
mov dword [esp + 0xfc], 0x3f800000
mov dword [esp + 0x78], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0xe4], 1
mov dword [esp + 0x64], eax
jmp 0x598994
mov esi, dword [esp + 0xc]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x739860]
mulss xmm0, dword [0x7399b8]
movss dword [esp + 0x14], xmm0
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x50], xmm0
call fcn.006d3350
cvtsd2ss xmm0, xmm0
movss dword [esp + 0xc], xmm0
movss xmm0, dword [esp + 0x14]
addss xmm0, dword [0x739898]
movss dword [esp + 0x14], xmm0
cvtps2pd xmm0, xmm0
call fcn.006d3350
cvtsd2ss xmm0, xmm0
movss dword [esp + 8], xmm0
movsd xmm0, qword [esp + 0x50]
call fcn.006d3190
movss xmm1, dword [esp + 0x14]
cvtsd2ss xmm0, xmm0
xorps xmm0, xmmword [0x739fa0]
movss dword [esp + 0x50], xmm0
cvtps2pd xmm0, xmm1
call fcn.006d3190
cvtsd2ss xmm0, xmm0
mov eax, esi
sub eax, dword [esp + 0x18]
sar eax, 2
imul edi, eax, 0xaaaaaaab
xorps xmm0, xmmword [0x739fa0]
movss dword [esp + 0x14], xmm0
movss xmm0, dword [esp + 0xc]
movss dword [esp + 0xe8], xmm0
movss xmm0, dword [esp + 0x50]
mov dword [esp + 0x10], edi
movss dword [esp + 0xec], xmm0
cmp esi, dword [esp + 0x20]
je 0x598a81
movq xmm0, qword [esp + 0xe8]
mov eax, dword [esp + 0xf0]
movq qword [esi], xmm0
mov dword [esi + 8], eax
add esi, 0xc
mov dword [esp + 0x1c], esi
jmp 0x598a97
lea eax, [esp + 0xe8]
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.0059b580
mov esi, dword [esp + 0x1c]
movss xmm0, dword [esp + 8]
movss dword [esp + 0xf4], xmm0
movss xmm0, dword [esp + 0x14]
movss dword [esp + 0xf8], xmm0
cmp esi, dword [esp + 0x20]
je 0x598adb
movq xmm0, qword [esp + 0xf4]
mov eax, dword [esp + 0xfc]
movq qword [esi], xmm0
mov dword [esi + 8], eax
add esi, 0xc
mov dword [esp + 0x1c], esi
jmp 0x598af1
lea eax, [esp + 0xf4]
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.0059b580
mov esi, dword [esp + 0x1c]
movss xmm0, dword [esp + 0xc]
movss dword [esp + 0x70], xmm0
movss xmm0, dword [esp + 0x50]
movss dword [esp + 0x74], xmm0
cmp esi, dword [esp + 0x20]
je 0x598b29
movq xmm0, qword [esp + 0x70]
mov eax, dword [esp + 0x78]
movq qword [esi], xmm0
mov dword [esi + 8], eax
add esi, 0xc
mov dword [esp + 0x1c], esi
jmp 0x598b3c
lea eax, [esp + 0x70]
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.0059b580
mov esi, dword [esp + 0x1c]
movss xmm0, dword [esp + 8]
movss dword [esp + 0x30], xmm0
movss xmm0, dword [esp + 0x14]
movss dword [esp + 0x34], xmm0
cmp esi, dword [esp + 0x20]
je 0x598b78
movq xmm0, qword [esp + 0x30]
mov eax, dword [esp + 0x38]
movq qword [esi], xmm0
mov dword [esi + 8], eax
add esi, 0xc
mov dword [esp + 0xc], esi
mov dword [esp + 0x1c], esi
jmp 0x598b8f
lea eax, [esp + 0x30]
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.0059b580
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], eax
lea eax, [edi + 2]
mov dword [esp + 8], eax
lea ecx, [esp + 0x24]
lea eax, [esp + 8]
push eax
call fcn.004ab070
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x28]
call fcn.004ab070
mov esi, dword [esp + 0x10]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x28]
lea edi, [esi + 1]
mov dword [esp + 0xc], edi
call fcn.004ab070
lea eax, [esi + 2]
mov dword [esp + 8], eax
lea ecx, [esp + 0x24]
lea eax, [esp + 8]
push eax
call fcn.004ab070
lea eax, [esp + 8]
mov dword [esp + 8], edi
push eax
lea ecx, [esp + 0x28]
call fcn.004ab070
lea eax, [esi + 3]
mov dword [esp + 8], eax
lea ecx, [esp + 0x24]
lea eax, [esp + 8]
push eax
call fcn.004ab070
lea eax, [esp + 0xe4]
push eax
lea ecx, [esp + 0x28]
call fcn.004ab070
lea eax, [esp + 8]
mov dword [esp + 8], edi
push eax
lea ecx, [esp + 0x28]
call fcn.004ab070
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x28]
call fcn.004ab070
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x28]
call fcn.004ab070
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x24]
lea eax, [esi + 2]
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
call fcn.004ab070
lea eax, [esi + 3]
mov dword [esp + 8], eax
lea ecx, [esp + 0x24]
lea eax, [esp + 8]
push eax
call fcn.004ab070
mov eax, dword [esp + 0x4c]
inc eax
mov dword [esp + 0x4c], eax
cmp eax, 0x20
jl 0x598990
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], edx
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x6c]
push 0
push 0
push 0
mov eax, dword [eax + 0x70]
mov ecx, dword [eax + 0x28dc]
mov eax, dword [ecx]
mov esi, dword [eax + 0x20]
mov eax, dword [esp + 0x5c]
sub eax, edx
sar eax, 1
push eax
push edx
mov edx, dword [esp + 0x2c]
sub edi, edx
sar edi, 2
imul eax, edi, 0xaaaaaaab
push eax
push edx
push dword [esp + 0x84]
call esi
mov esi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x294], eax
test ecx, ecx
je 0x598d21
mov edx, dword [esp + 0x14]
mov eax, ecx
sub edx, ecx
and edx, 0xfffffffe
cmp edx, 0x1000
jb 0x598d17
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x598f59
push edx
push ecx
call fcn.005ab85c
add esp, 8
lea ecx, [esp + 0x18]
call fcn.004b7000
mov edi, dword [esi + 0x298]
test edi, edi
jne 0x598d4f
mov ecx, dword [esi + 0x70]
push str.materials_util_volumetrics_back.json
add ecx, 0x2968
call fcn.004f58c0
mov edi, eax
mov dword [esi + 0x298], edi
cmp byte [esi + 0x1e0], 0
je 0x598dae
lea edx, [esi + 0x254]
lea ecx, [esp + 0x80]
call fcn.0044a150
mov eax, dword [esi + 0x70]
movups xmm0, xmmword [esp + 0x80]
movups xmm1, xmmword [esp + 0x90]
movups xmm2, xmmword [esp + 0xa0]
movups xmm3, xmmword [esp + 0xb0]
movups xmmword [eax + 0x9f0], xmm0
movups xmmword [eax + 0xa00], xmm1
movups xmmword [eax + 0xa10], xmm2
movups xmmword [eax + 0xa20], xmm3
jmp 0x598f26
mov eax, dword [esi]
mov ecx, esi
movss xmm0, dword [esi + 0x208]
movss dword [esp + 0x64], xmm0
mov eax, dword [eax + 0x40]
call eax
lea ecx, [esp + 0x80]
mov dword [esp + 0x7c], 0x3f800000
mov dword [esp + 0x68], 0x3f800000
movups xmm1, xmmword [eax + 0x30]
lea eax, [esp + 0x68]
push eax
movaps xmm0, xmm1
movss dword [esp + 0x74], xmm1
shufps xmm0, xmm1, 0x55
shufps xmm1, xmm1, 0xaa
movss dword [esp + 0x78], xmm0
movss dword [esp + 0x7c], xmm1
call fcn.00449760
movss xmm6, dword [esp + 0x64]
movaps xmm1, xmm6
movups xmm2, xmmword [eax]
movups xmm3, xmmword [eax + 0x10]
movups xmm5, xmmword [eax + 0x20]
movups xmm0, xmmword [eax + 0x30]
mov eax, dword [esi + 0x70]
movups xmmword [esp + 0xb0], xmm0
movaps xmm0, xmm6
mulss xmm0, xmm2
movss dword [esp + 0x30], xmm0
movaps xmm0, xmm2
shufps xmm0, xmm2, 0x55
mulss xmm1, xmm0
movaps xmm0, xmm2
shufps xmm0, xmm2, 0xaa
shufps xmm2, xmm2, 0xff
movss dword [esp + 0x34], xmm1
movaps xmm1, xmm6
mulss xmm1, xmm0
movaps xmm0, xmm6
mulss xmm0, xmm2
movss dword [esp + 0x38], xmm1
movaps xmm1, xmm6
movss dword [esp + 0x3c], xmm0
movaps xmm0, xmm6
movups xmm4, xmmword [esp + 0x30]
mulss xmm0, xmm3
movups xmmword [eax + 0x9f0], xmm4
movss dword [esp + 0x30], xmm0
movaps xmm0, xmm3
shufps xmm0, xmm3, 0x55
mulss xmm1, xmm0
movaps xmm0, xmm3
shufps xmm0, xmm3, 0xaa
shufps xmm3, xmm3, 0xff
movss dword [esp + 0x34], xmm1
movaps xmm1, xmm6
mulss xmm1, xmm0
movaps xmm0, xmm6
mulss xmm0, xmm3
movss dword [esp + 0x38], xmm1
movaps xmm1, xmm6
movss dword [esp + 0x3c], xmm0
movaps xmm0, xmm6
movups xmm2, xmmword [esp + 0x30]
mulss xmm0, xmm5
movss dword [esp + 0x30], xmm0
movaps xmm0, xmm5
shufps xmm0, xmm5, 0x55
mulss xmm1, xmm0
movaps xmm0, xmm5
shufps xmm0, xmm5, 0xaa
shufps xmm5, xmm5, 0xff
movss dword [esp + 0x34], xmm1
movaps xmm1, xmm6
mulss xmm1, xmm0
mulss xmm6, xmm5
movss dword [esp + 0x38], xmm1
movups xmm1, xmmword [esp + 0x70]
movss dword [esp + 0x3c], xmm6
movups xmm0, xmmword [esp + 0x30]
movups xmmword [eax + 0xa00], xmm2
movups xmmword [eax + 0xa10], xmm0
movups xmmword [eax + 0xa20], xmm1
mov ecx, edi
call fcn.004f99a0
mov ecx, dword [esi + 0x294]
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, edi
call fcn.004fa700
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00410570
call fcn.004144a0
call fcn.00410570
call fcn.004144a0
call fcn.005c695f
int3