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

Disassembly:
sub esp, 0x9c
cmp dword [0x5c8588], 0
push ebx
mov ebx, ecx
je 0x419cde
lea eax, [ebx + 0x14130]
mov dword [ebx + 0x1e1c8], eax
movss xmm0, dword [ebx + 0x80]
subss xmm0, dword [ebx + 0x74]
movss dword [esp + 0x18], xmm0
movss xmm0, dword [ebx + 0x84]
subss xmm0, dword [ebx + 0x78]
movss dword [esp + 0x1c], xmm0
movss xmm0, dword [ebx + 0x88]
subss xmm0, dword [ebx + 0x7c]
push esi
push edi
lea edx, [esp + 0x20]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x1c], 0
movss dword [esp + 0x28], xmm0
call fcn.0043cf20
movq xmm0, qword [eax]
movss xmm3, dword [0x5652d8]
movq qword [ebx + 0x1e240], xmm0
mov ecx, dword [eax + 8]
xorps xmm0, xmm0
lea esi, [ebx + 0x1e240]
mov dword [esi + 8], ecx
movss dword [ebx + 0x1e244], xmm0
movss xmm0, dword [esi]
movss xmm1, dword [esi + 4]
movss xmm2, dword [esi + 8]
mulss xmm0, xmm3
mulss xmm1, xmm3
mulss xmm2, xmm3
movss xmm3, dword [0x565ea4]
mulss xmm0, xmm3
mulss xmm1, xmm3
mulss xmm2, xmm3
movss xmm3, dword [ebx + 0x74]
addss xmm3, xmm0
movss xmm0, dword [ebx + 0x78]
addss xmm0, xmm1
movss dword [esp + 0x10], xmm0
movss xmm0, dword [ebx + 0x7c]
addss xmm0, xmm2
movss dword [esp + 0x14], xmm0
mov edx, dword [esp + 0x14]
movss dword [esp + 0xc], xmm3
movq xmm0, qword [esp + 0xc]
movq qword [esi], xmm0
push esi
mov ecx, 0x5c9660
mov dword [esi + 8], edx
call fcn.00420ba0
fstp dword [ebx + 0x1e244]
movq xmm0, qword [0x6b3d40]
movss xmm3, dword [0x5652fc]
mov eax, dword [0x6b3d48]
movq qword [esp + 0xc], xmm0
movss xmm0, dword [esp + 0xc]
movss xmm1, dword [esp + 0x10]
mulss xmm0, xmm3
addss xmm0, dword [esi]
movss dword [esp + 0xc], xmm0
movss xmm0, dword [esi + 4]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x1e1c8]
movss xmm2, dword [esp + 0x14]
mulss xmm1, xmm3
addss xmm0, xmm1
movss dword [esp + 0x10], xmm0
movss xmm0, dword [esi + 8]
add eax, 0x74
mulss xmm2, xmm3
addss xmm0, xmm2
movss dword [esp + 0x14], xmm0
movq xmm0, qword [esp + 0xc]
mov ecx, dword [esp + 0x14]
movq qword [eax], xmm0
mov dword [eax + 8], ecx
mov eax, dword [ebx + 0x1e1c8]
movq xmm0, qword [esi]
sub eax, 0xffffff80
movq qword [eax], xmm0
mov edx, dword [esi + 8]
mov dword [eax + 8], edx
movq xmm0, qword [0x6928a4]
movss xmm1, dword [esi]
mov eax, dword [0x6928ac]
movq qword [esp + 0x20], xmm0
subss xmm1, dword [esp + 0x20]
movss xmm0, dword [ebx + 0x1e244]
movss dword [esp + 0x44], xmm1
movss xmm1, dword [esi + 4]
subss xmm1, xmm0
movss xmm0, dword [esi + 8]
mov dword [esp + 0x28], eax
subss xmm0, dword [esp + 0x28]
lea edx, [esp + 0x44]
lea ecx, [esp + 0x2c]
movss dword [esp + 0x48], xmm1
movss dword [esp + 0x4c], xmm0
call fcn.0043cf20
mov eax, dword [ebx + 0x1e1c8]
movss xmm0, dword [eax + 0x84]
movss xmm1, dword [eax + 0x88]
movss xmm2, dword [eax + 0x80]
subss xmm0, dword [eax + 0x78]
subss xmm1, dword [eax + 0x7c]
subss xmm2, dword [eax + 0x74]
lea edx, [esp + 0x38]
lea ecx, [esp + 0x50]
movss dword [esp + 0x38], xmm2
movss dword [esp + 0x3c], xmm0
movss dword [esp + 0x40], xmm1
call fcn.0043cf20
fld dword [0x565ea0]
push ecx
fstp dword [esp]
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x70]
push edx
call fcn.0046488f
mov esi, eax
mov ecx, 0x10
lea edi, [esp + 0x68]
lea eax, [esp + 0x68]
rep movsd dword es:[edi], dword [esi]
push eax
lea ecx, [esp + 0x30]
push ecx
mov edx, ecx
push edx
call fcn.0046355a
mov eax, dword [ebx + 0x1e1c8]
movq xmm0, qword [esp + 0x2c]
add eax, 0x8c
movq qword [eax], xmm0
mov ecx, dword [esp + 0x34]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 0x1e1c8]
call fcn.00402240
fld dword [0x565e9c]
mov ecx, dword [ebx + 0x1e1c8]
sub esp, 0x10
fst dword [esp + 0xc]
fstp dword [esp + 8]
fldz
fst dword [esp + 4]
fstp dword [esp]
call fcn.00401650
mov ecx, 0x610810
call fcn.00409590
mov ecx, 0x610810
call fcn.004095b0
movss xmm0, dword [0x6527f8]
movss xmm1, dword [0x6527f0]
movss xmm2, dword [0x652808]
movss dword [0x6527fc], xmm0
movss xmm0, dword [0x5652d0]
movss dword [0x6527f4], xmm1
movss xmm1, dword [0x565e9c]
movss dword [0x6527f8], xmm0
movss dword [0x6527f0], xmm1
mov eax, dword [0x652884]
movss dword [0x652808], xmm0
movss xmm0, dword [0x652800]
lea ecx, [esp + 0x1c]
push ecx
movss dword [0x65280c], xmm2
movss dword [0x652804], xmm0
movss dword [0x652800], xmm1
mov edx, dword [eax]
mov edx, dword [edx + 0x48]
push 0
push eax
call edx
mov edx, dword [esp + 0x1c]
mov eax, dword [0x65282c]
mov ecx, dword [eax]
push edx
push 0
push eax
mov eax, dword [ecx + 0x94]
call eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x419a23
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x1c], 0
mov eax, dword [0x65282c]
mov edx, dword [0x652888]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x9c]
call eax
fld1
mov eax, dword [0x65282c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xac]
push 0
push ecx
fstp dword [esp]
push 0
push 3
push 0
push 0
push eax
call edx
mov esi, 1
push esi
push 5
push esi
push 3
push 2
push 0
mov ecx, 0x610810
call fcn.00409480
mov eax, dword [0x65282c]
push 0xff000000
mov dword [0x5c962c], esi
mov ecx, dword [eax]
mov edx, dword [ecx + 0xe4]
push 0x3c
push eax
call edx
mov ecx, 0x5c9660
call fcn.004205c0
fld dword [0x6b3d4c]
fmul dword [0x565d2c]
fnstcw word [esp + 0x1a]
movzx eax, word [esp + 0x1a]
fmul dword [0x565328]
or eax, 0xc00
mov dword [esp + 0xc], eax
fldcw word [esp + 0xc]
fistp qword [esp + 0xc]
mov eax, dword [esp + 0xc]
mov edx, dword [0x65282c]
mov edi, dword [edx]
mov ecx, eax
fldcw word [esp + 0x1a]
or eax, 0xffffff00
shl eax, 8
and ecx, 0xff
or eax, ecx
shl eax, 8
or eax, ecx
push eax
mov eax, dword [edi + 0xe4]
push 0x3c
push edx
call eax
cmp dword [0x5c8588], esi
jl 0x419b0b
mov ecx, 0x6b0cc0
call fcn.004388a0
mov ecx, dword [0x652880]
mov edx, dword [0x652884]
push ecx
push edx
mov ecx, 0x610810
call fcn.0040a270
cmp dword [0x5c8588], 2
jl 0x419b3b
push 0x130
mov ecx, 0x6c9fa0
call fcn.0043c0d0
mov edi, 3
cmp dword [0x5c8588], edi
jl 0x419b52
mov ecx, 0x6b0cc0
call fcn.00438060
cmp dword [0x5c8588], esi
jl 0x419b76
mov ecx, 0x6b4120
call fcn.0042d1e0
cmp dword [0x5c8588], esi
jl 0x419b76
mov ecx, 0x610360
call fcn.00434b30
cmp dword [0x5c8588], edi
jl 0x419b88
mov ecx, 0x6b0cc0
call fcn.004379e0
fld dword [0x565bc4]
mov eax, dword [0x65287c]
mov ecx, dword [0x652884]
sub esp, 8
fstp dword [esp + 4]
fld dword [0x565930]
fstp dword [esp]
push eax
push ecx
mov ecx, 0x610810
call fcn.0040dd20
mov edx, dword [0x65287c]
push edx
push str.texShadowLayer0
mov ecx, 0x610810
call fcn.004091b0
mov eax, dword [0x652880]
push eax
push str.texShadowLayer1
mov ecx, 0x610810
call fcn.004091b0
push esi
push 5
push esi
push 2
push 4
push 0
mov ecx, 0x610810
mov dword [0x5c962c], 0
call fcn.00409480
push 5
push esi
push 2
push 4
push 0
mov ecx, 0x610810
call fcn.00409510
mov ecx, 0x610810
call fcn.004095d0
mov ecx, 0x610810
call fcn.00409610
movss xmm0, dword [0x6527fc]
movss dword [0x6527f8], xmm0
movss xmm0, dword [0x6527f4]
movss dword [0x6527f0], xmm0
movss xmm0, dword [0x65280c]
movss dword [0x652808], xmm0
movss xmm0, dword [0x652804]
movss dword [0x652800], xmm0
mov ecx, ebx
mov dword [ebx + 0x1e1c8], ebx
call fcn.00402240
fldz
movss xmm0, dword [0x652800]
divss xmm0, dword [0x652808]
mov ecx, dword [ebx + 0x1e1c8]
sub esp, 0x10
movss dword [esp + 0xc], xmm0
movss xmm0, dword [0x6527f0]
divss xmm0, dword [0x6527f8]
movss dword [esp + 8], xmm0
fst dword [esp + 4]
fstp dword [esp]
call fcn.00401650
push esi
push 5
push esi
push 2
push 4
push 0
mov ecx, 0x610810
call fcn.00409480
push 5
push esi
push 2
push 4
push 0
mov ecx, 0x610810
call fcn.00409510
pop edi
pop esi
pop ebx
add esp, 0x9c
ret