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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x188
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0xb0]
lea esi, [edi + 0x254]
mov edx, esi
call fcn.0044a150
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x40]
call eax
cmp byte [edi + 0x1e0], 0
movups xmm0, xmmword [eax + 0x30]
movups xmmword [esp + 0x50], xmm0
je 0x5993f4
mov eax, dword [edi + 0x1e4]
shr eax, 1
test al, 1
je 0x599063
push 0x60
lea eax, [esp + 0x134]
push 0
push eax
call fcn.005c3040
add esp, 0xc
lea ecx, [esp + 0x130]
push esi
call fcn.005162e0
mov eax, dword [edi + 0x70]
xor ecx, ecx
movss xmm0, dword [0x739878]
movss xmm2, dword [eax + 0x10c]
movss xmm3, dword [eax + 0x110]
movss xmm4, dword [eax + 0x114]
mulss xmm2, xmm0
mulss xmm3, xmm0
addss xmm2, dword [eax + 0x18]
mulss xmm4, xmm0
addss xmm3, dword [eax + 0x1c]
addss xmm4, dword [eax + 0x20]
lea eax, [esp + 0x138]
nop dword [eax + eax]
movaps xmm0, xmm2
movaps xmm1, xmm3
mulss xmm0, dword [eax - 8]
mulss xmm1, dword [eax - 4]
addss xmm1, xmm0
movaps xmm0, xmm4
mulss xmm0, dword [eax]
addss xmm1, xmm0
xorps xmm0, xmm0
addss xmm1, dword [eax + 4]
comiss xmm0, xmm1
ja 0x59905c
inc ecx
add eax, 0x10
cmp ecx, 6
jl 0x599020
mov al, 1
jmp 0x59946a
xor al, al
jmp 0x59946a
mov eax, dword [edi + 0x70]
mov ecx, edi
movss xmm0, dword [0x73989c]
movss xmm1, dword [eax + 0x10c]
mulss xmm1, xmm0
addss xmm1, dword [eax + 0x18]
subss xmm1, dword [esp + 0x50]
movss dword [esp + 0x6c], xmm1
movss xmm1, dword [eax + 0x110]
mulss xmm1, xmm0
addss xmm1, dword [eax + 0x1c]
subss xmm1, dword [esp + 0x54]
movss dword [esp + 0x64], xmm1
movss xmm1, dword [eax + 0x114]
mulss xmm1, xmm0
addss xmm1, dword [eax + 0x20]
mov eax, dword [edi]
subss xmm1, dword [esp + 0x58]
mov eax, dword [eax + 0x40]
movss dword [esp + 0x40], xmm1
call eax
mov esi, eax
movups xmm4, xmmword [esi]
movups xmm2, xmmword [esi]
movaps xmm3, xmm4
movaps xmm1, xmm4
shufps xmm3, xmm4, 0xff
movaps xmm0, xmm2
shufps xmm0, xmm2, 0xff
mulss xmm3, xmm0
movaps xmm0, xmm2
shufps xmm1, xmm4, 0xaa
shufps xmm0, xmm2, 0xaa
mulss xmm1, xmm0
movaps xmm0, xmm2
shufps xmm0, xmm2, 0x55
addss xmm3, xmm1
movaps xmm1, xmm4
shufps xmm1, xmm4, 0x55
mulss xmm1, xmm0
xorps xmm0, xmm0
mulss xmm4, xmm2
addss xmm1, xmm4
addss xmm3, xmm1
xorps xmm1, xmm1
cvtss2sd xmm0, xmm3
ucomisd xmm1, xmm0
ja 0x599132
sqrtsd xmm0, xmm0
jmp 0x599137
call fcn.006d5e50
movss xmm3, dword [0x739900]
cvtsd2ss xmm0, xmm0
movups xmm1, xmmword [esi]
divss xmm3, xmm0
movss xmm7, dword [esp + 0xb4]
movaps xmm0, xmm3
movss xmm5, dword [esp + 0xcc]
mulss xmm0, xmm1
movaps xmm2, xmm3
mulss xmm5, dword [0x739804]
movss dword [esp + 0x48], xmm0
movaps xmm0, xmm1
shufps xmm0, xmm1, 0x55
mulss xmm2, xmm0
movss xmm0, dword [esp + 0xb8]
movss xmm4, dword [esp + 0xb0]
shufps xmm1, xmm1, 0xaa
mulss xmm3, xmm1
xorps xmm1, xmm1
mulss xmm0, xmm1
mulss xmm7, xmm1
movss dword [esp + 0x4c], xmm0
movss xmm0, dword [esp + 0xbc]
mulss xmm0, xmm1
movss dword [esp + 0x60], xmm7
mulss xmm4, xmm1
movss xmm1, dword [esp + 0xec]
movaps xmm7, xmm0
addss xmm1, dword [esp + 0xdc]
addss xmm5, xmm7
movss dword [esp + 0x68], xmm2
addss xmm7, dword [esp + 0xcc]
movss xmm2, dword [esp + 0xd0]
addss xmm2, dword [esp + 0xe0]
movss dword [esp + 0x44], xmm3
addss xmm5, xmm1
movss xmm3, dword [esp + 0xd4]
movaps xmm0, xmm7
movss xmm6, dword [esp + 0xd8]
addss xmm0, xmm1
movaps xmm7, xmm4
addss xmm3, dword [esp + 0xe4]
addss xmm6, dword [esp + 0xe8]
movss dword [esp + 0x38], xmm0
movss xmm0, dword [esp + 0xc0]
addss xmm7, xmm0
movss xmm1, dword [esp + 0x38]
mulss xmm0, dword [0x739804]
addss xmm0, xmm4
xorps xmm4, xmm4
addss xmm7, xmm2
addss xmm0, xmm2
movss xmm2, dword [esp + 0x60]
divss xmm7, xmm1
divss xmm0, xmm5
subss xmm7, xmm0
movss xmm0, dword [esp + 0xc4]
addss xmm2, xmm0
mulss xmm0, xmm4
addss xmm0, dword [esp + 0x60]
addss xmm2, xmm3
addss xmm0, xmm3
movss xmm3, dword [esp + 0x4c]
divss xmm2, xmm1
divss xmm0, xmm5
subss xmm2, xmm0
movss xmm0, dword [esp + 0xc8]
addss xmm3, xmm0
mulss xmm0, xmm4
addss xmm0, dword [esp + 0x4c]
addss xmm3, xmm6
addss xmm0, xmm6
divss xmm3, xmm1
divss xmm0, xmm5
subss xmm3, xmm0
movaps xmm0, xmm7
mulss xmm0, xmm0
movss dword [esp + 0x3c], xmm0
movaps xmm0, xmm2
mulss xmm0, xmm0
movss dword [esp + 0x38], xmm0
movss xmm6, dword [esp + 0x6c]
movss xmm7, dword [esp + 0x40]
movaps xmm0, xmm6
mulss xmm0, dword [esp + 0x48]
mulss xmm3, xmm3
movss dword [esp + 0x4c], xmm3
movss xmm3, dword [esp + 0x64]
movaps xmm5, xmm3
mulss xmm5, dword [esp + 0x68]
addss xmm5, xmm0
movaps xmm0, xmm7
mulss xmm0, dword [esp + 0x44]
addss xmm5, xmm0
comiss xmm5, xmm4
movaps xmm0, xmm5
movss dword [esp + 0x40], xmm5
mulss xmm0, dword [esp + 0x48]
subss xmm6, xmm0
movaps xmm0, xmm5
mulss xmm0, dword [esp + 0x68]
subss xmm3, xmm0
mulss xmm6, xmm6
movaps xmm0, xmm5
mulss xmm0, dword [esp + 0x44]
mulss xmm3, xmm3
subss xmm7, xmm0
mulss xmm7, xmm7
jbe 0x59905c
movss xmm0, dword [edi + 0x208]
comiss xmm0, xmm5
jb 0x59905c
addss xmm3, xmm6
xorps xmm1, xmm1
addss xmm3, xmm7
cvtps2pd xmm0, xmm3
ucomisd xmm1, xmm0
ja 0x599397
sqrtsd xmm0, xmm0
jmp 0x59939c
call fcn.006d5e50
cvtsd2ss xmm0, xmm0
xorps xmm1, xmm1
movss dword [esp + 0x48], xmm0
movss xmm0, dword [esp + 0x38]
addss xmm0, dword [esp + 0x3c]
addss xmm0, dword [esp + 0x4c]
cvtps2pd xmm0, xmm0
ucomisd xmm1, xmm0
ja 0x5993ca
sqrtsd xmm0, xmm0
jmp 0x5993cf
call fcn.006d5e50
movss xmm1, dword [esp + 0x40]
divss xmm1, dword [edi + 0x208]
cvtsd2ss xmm0, xmm0
mulss xmm0, xmm1
comiss xmm0, dword [esp + 0x48]
jb 0x59905c
mov al, 1
jmp 0x59946a
mov eax, dword [edi + 0x70]
movss xmm0, dword [0x73989c]
movss xmm3, dword [eax + 0x10c]
movss xmm2, dword [eax + 0x110]
movss xmm1, dword [eax + 0x114]
mulss xmm2, xmm0
mulss xmm3, xmm0
addss xmm2, dword [eax + 0x1c]
mulss xmm1, xmm0
addss xmm3, dword [eax + 0x18]
movss xmm0, dword [edi + 0x208]
subss xmm2, dword [esp + 0x54]
addss xmm1, dword [eax + 0x20]
mulss xmm0, xmm0
subss xmm3, dword [esp + 0x50]
mulss xmm2, xmm2
subss xmm1, dword [esp + 0x58]
mulss xmm3, xmm3
mulss xmm1, xmm1
addss xmm2, xmm3
addss xmm2, xmm1
comiss xmm0, xmm2
seta al
cmp dword [edi + 0x29c], 0
lea ecx, [edi + 0x29c]
mov byte [esp + 0xf], al
mov esi, edi
jne 0x5997c8
push ecx
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 0
push eax
lea ecx, [esp + 0x78]
call fcn.00428e90
mov eax, 0x1e4
mov eax, dword [esi + eax]
shr eax, 1
test al, 1
je 0x599508
mov eax, dword [str.COOKIE]
lea ecx, [esp + 0x70]
xorps xmm0, xmm0
mov dword [esp + 0x20], 6
movaps xmmword [esp + 0x10], xmm0
mov dword [esp + 0x10], eax
mov ax, word [0x739298]
mov word [esp + 0x14], ax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x28], 0xf
mov byte [esp + 0x1a], 0
call fcn.004be2e0
mov dword [eax], 1
mov eax, dword [esp + 0x24]
cmp eax, 0xf
jbe 0x599508
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
call fcn.00414390
add esp, 0xc
mov eax, 0x1e4
test byte [esi + eax], 1
je 0x59957f
mov eax, dword [edi + 0x70]
cmp byte [eax + 0x158], 0
je 0x59957f
mov eax, dword [str.SHADOW]
lea ecx, [esp + 0x70]
xorps xmm0, xmm0
mov dword [esp + 0x20], 6
movaps xmmword [esp + 0x10], xmm0
mov dword [esp + 0x10], eax
mov ax, word [0x7392d0]
mov word [esp + 0x14], ax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x28], 0xf
mov byte [esp + 0x1a], 0
call fcn.004be2e0
mov dword [eax], 1
mov eax, dword [esp + 0x24]
cmp eax, 0xf
jbe 0x59957f
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
call fcn.00414390
add esp, 0xc
mov eax, dword [edi + 0x70]
lea ecx, [esp + 0x70]
xorps xmm0, xmm0
movzx esi, byte [eax + 0x159]
mov eax, dword [str.QUALITY]
mov dword [esp + 0x10], eax
mov ax, word [0x7392c8]
mov word [esp + 0x14], ax
mov al, byte [0x7392ca]
mov byte [esp + 0x16], al
lea eax, [esp + 0x10]
push eax
movlpd qword [esp + 0x1c], xmm0
mov dword [esp + 0x24], 7
mov dword [esp + 0x28], 0xf
mov byte [esp + 0x1b], 0
call fcn.004be2e0
mov dword [eax], esi
mov ecx, dword [esp + 0x24]
cmp ecx, 0xf
jbe 0x59960a
mov edx, dword [esp + 0x10]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x599600
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x599ba7
push ecx
push edx
call fcn.005ab85c
add esp, 8
cmp byte [edi + 0x1e0], 0
jne 0x59975a
mov ax, word [0x739308]
lea ecx, [esp + 0x70]
xorps xmm0, xmm0
mov dword [esp + 0x20], 0xa
movaps xmmword [esp + 0x10], xmm0
movq xmm0, qword [str.POINTLIGHT]
mov word [esp + 0x18], ax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x28], 0xf
movq qword [esp + 0x14], xmm0
mov byte [esp + 0x1e], 0
call fcn.004be2e0
mov dword [eax], 1
mov ecx, dword [esp + 0x24]
cmp ecx, 0xf
jbe 0x599697
mov edx, dword [esp + 0x10]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x59968d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x599bac
push ecx
push edx
call fcn.005ab85c
add esp, 8
mov eax, dword [edi + 0x70]
xorps xmm0, xmm0
mov dword [esp + 0x44], 0x1f
movzx esi, byte [eax + 0x158]
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x14]
movaps xmmword [esp + 0x14], xmm0
push eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call fcn.00414510
movups xmm0, xmmword [str.LIGHTS_SHADOW_MAPPING_QUALITY]
mov ecx, dword [esp + 0x4c]
mov edx, eax
mov dword [esp + 0x2c], ecx
add esp, 8
mov dword [esp + 0x10], edx
lea ecx, [esp + 0x70]
mov dword [esp + 0x20], 0x1d
movups xmmword [edx], xmm0
movq xmm0, qword [0x7378d8]
movq qword [edx + 0x10], xmm0
mov eax, dword [0x7378e0]
mov dword [edx + 0x18], eax
mov al, byte [0x7378e4]
mov byte [edx + 0x1c], al
lea eax, [esp + 0x10]
push eax
mov byte [edx + 0x1d], 0
call fcn.004be2e0
mov dword [eax], esi
mov ecx, dword [esp + 0x24]
cmp ecx, 0xf
jbe 0x59975a
mov edx, dword [esp + 0x10]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x599750
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x599bb1
push ecx
push edx
call fcn.005ab85c
add esp, 8
mov ecx, dword [edi + 0x70]
lea eax, [esp + 0x70]
push 0
push eax
add ecx, 0x2968
push str.materials_util_volumetrics_fullscreen.json
call fcn.004f59e0
mov dword [edi + 0x29c], eax
lea esi, [edi + 0x2a0]
mov ecx, dword [edi + 0x70]
lea eax, [esp + 0x70]
push 0
push eax
add ecx, 0x2968
push str.materials_util_volumetrics_front.json
call fcn.004f59e0
lea ecx, [esp + 0x7c]
mov dword [esi], eax
call fcn.0040aea0
mov edx, dword [esp + 0x74]
call fcn.0042b120
push 0x24
push dword [esp + 0x78]
call fcn.005ab85c
mov al, byte [esp + 0x17]
lea ecx, [edi + 0x29c]
add esp, 8
jmp 0x5997ce
lea esi, [edi + 0x2a0]
test al, al
cmove ecx, esi
mov esi, dword [edi + 0x70]
cmp byte [esi + 0x161], 0
mov eax, dword [ecx]
mov dword [esp + 0x3c], eax
je 0x5997ec
mov ecx, esi
call fcn.004a5e00
lea edx, [esi + 0x8b0]
lea ecx, [esp + 0xf0]
call fcn.0044a150
cmp byte [edi + 0x1e0], 0
mov ecx, edi
je 0x599857
mov eax, dword [edi + 0x70]
movups xmm0, xmmword [esp + 0xb0]
movups xmmword [eax + 0x9f0], xmm0
movups xmm0, xmmword [esp + 0xc0]
movups xmmword [eax + 0xa00], xmm0
movups xmm0, xmmword [esp + 0xd0]
movups xmmword [eax + 0xa10], xmm0
movups xmm0, xmmword [esp + 0xe0]
movups xmmword [eax + 0xa20], xmm0
mov eax, dword [edi]
mov eax, dword [eax + 0x40]
call eax
movups xmm0, xmmword [eax]
jmp 0x5999d1
mov eax, dword [edi]
movss xmm0, dword [edi + 0x208]
movss dword [esp + 0x48], xmm0
mov eax, dword [eax + 0x40]
call eax
lea ecx, [esp + 0x70]
mov dword [esp + 0x1c], 0x3f800000
mov dword [esp + 0x40], 0x3f800000
movups xmm1, xmmword [eax + 0x30]
lea eax, [esp + 0x40]
push eax
movaps xmm0, xmm1
movss dword [esp + 0x14], xmm1
shufps xmm0, xmm1, 0x55
shufps xmm1, xmm1, 0xaa
movss dword [esp + 0x18], xmm0
movss dword [esp + 0x1c], xmm1
call fcn.00449760
movss xmm6, dword [esp + 0x48]
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 [edi + 0x70]
movups xmmword [esp + 0xa0], xmm0
movaps xmm0, xmm6
mulss xmm0, xmm2
movss dword [esp + 0x70], 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 + 0x74], xmm1
movaps xmm1, xmm6
mulss xmm1, xmm0
movaps xmm0, xmm6
mulss xmm0, xmm2
movss dword [esp + 0x78], xmm1
movaps xmm1, xmm6
movss dword [esp + 0x7c], xmm0
movaps xmm0, xmm6
movups xmm4, xmmword [esp + 0x70]
mulss xmm0, xmm3
movups xmmword [eax + 0x9f0], xmm4
movss dword [esp + 0x70], 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 + 0x74], xmm1
movaps xmm1, xmm6
mulss xmm1, xmm0
movaps xmm0, xmm6
mulss xmm0, xmm3
movss dword [esp + 0x78], xmm1
movaps xmm1, xmm6
movss dword [esp + 0x7c], xmm0
movaps xmm0, xmm6
movups xmm2, xmmword [esp + 0x70]
mulss xmm0, xmm5
movups xmmword [eax + 0xa00], xmm2
movss dword [esp + 0x70], 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 + 0x74], xmm1
movaps xmm1, xmm6
mulss xmm1, xmm0
mulss xmm6, xmm5
movss dword [esp + 0x78], xmm1
movups xmm1, xmmword [esp + 0x10]
movss dword [esp + 0x7c], xmm6
movups xmm0, xmmword [esp + 0x70]
movups xmmword [eax + 0xa10], xmm0
movups xmmword [eax + 0xa20], xmm1
movups xmm0, xmmword [edi + 0x240]
mov eax, dword [edi + 0x70]
movups xmmword [eax + 0x90], xmm0
mov eax, dword [edi + 0x70]
movups xmm0, xmmword [edi + 0x254]
movups xmm1, xmmword [edi + 0x264]
movups xmm2, xmmword [edi + 0x274]
movups xmm3, xmmword [edi + 0x284]
movups xmmword [eax + 0x9b0], xmm0
movups xmmword [eax + 0x9c0], xmm1
movups xmmword [eax + 0x9d0], xmm2
movups xmmword [eax + 0x9e0], xmm3
mov eax, dword [edi + 0x70]
movups xmm0, xmmword [esp + 0xf0]
movups xmmword [eax + 0x8f0], xmm0
movups xmm0, xmmword [esp + 0x100]
movups xmmword [eax + 0x900], xmm0
movups xmm0, xmmword [esp + 0x110]
movups xmmword [eax + 0x910], xmm0
movups xmm0, xmmword [esp + 0x120]
movups xmmword [eax + 0x920], xmm0
mov eax, dword [edi + 0x70]
movups xmm0, xmmword [edi + 0x230]
movups xmmword [eax + 0x60], xmm0
movss xmm0, dword [edi + 0x208]
mulss xmm0, dword [0x7398f0]
movss dword [esp + 0x10], xmm0
movss xmm0, dword [edi + 0x210]
mulss xmm0, dword [0x739854]
cvtps2pd xmm0, xmm0
call fcn.006d3190
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x14], xmm0
movss xmm0, dword [edi + 0x214]
mulss xmm0, dword [0x739854]
cvtps2pd xmm0, xmm0
call fcn.006d3190
mov eax, dword [edi + 0x70]
cvtsd2ss xmm0, xmm0
mov esi, dword [esp + 0x3c]
movss dword [esp + 0x18], xmm0
movss xmm0, dword [edi + 0x204]
movss dword [esp + 0x1c], xmm0
movups xmm0, xmmword [esp + 0x10]
movups xmmword [eax + 0x70], xmm0
mov eax, dword [edi + 0x70]
movss xmm0, dword [esp + 0x50]
movss dword [esp + 0x10], xmm0
movss xmm0, dword [esp + 0x54]
movss dword [esp + 0x14], xmm0
movss xmm0, dword [esp + 0x58]
movss dword [esp + 0x18], xmm0
movss xmm0, dword [edi + 0x218]
movss dword [esp + 0x1c], xmm0
movups xmm0, xmmword [esp + 0x10]
movups xmmword [eax + 0x80], xmm0
mov eax, dword [edi + 0x70]
movss xmm0, dword [edi + 0x1ec]
movss dword [esp + 0x10], xmm0
movss xmm0, dword [edi + 0x1f0]
movss dword [esp + 0x14], xmm0
movss xmm0, dword [edi + 0x1f4]
movss dword [esp + 0x18], xmm0
movss xmm0, dword [edi + 0x21c]
movss dword [esp + 0x1c], xmm0
movups xmm0, xmmword [esp + 0x10]
movups xmmword [eax + 0xa0], xmm0
mov eax, dword [edi + 0x1e4]
shr eax, 1
test al, 1
je 0x599b7c
mov eax, dword [edi + 0x250]
test eax, eax
je 0x599b7c
mov dword [esi + 0x7c], eax
mov ecx, esi
call fcn.004f99a0
cmp byte [esp + 0xf], 0
mov ecx, dword [ebp + 8]
jne 0x599b93
mov ecx, dword [edi + 0x294]
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, esi
call fcn.004fa700
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
call fcn.005c695f
call fcn.005c695f
call fcn.005c695f
int3