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

Disassembly:
sub esp, 0xa0
mov eax, dword [0x41e504]
xor eax, esp
mov dword [esp + 0x9c], eax
push esi
mov esi, ecx
push edi
mov dword [esp + 0x38], esi
call fcn.00408bf0
mov ecx, eax
call fcn.00408cc0
lea eax, [esi + 0x284]
mov dword [esp + 0x3c], 7
mov dword [esp + 0x40], eax
xor edi, edi
lea eax, [esi + 0x18]
mov dword [esp + 0x50], edi
mov dword [esp + 0x44], eax
movups xmm0, xmmword [eax]
push edi
movups xmmword [esp + 0x2c], xmm0
movups xmmword [esp + 0x58], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esp + 0x68], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [esp + 0x78], xmm0
movups xmm0, xmmword [eax + 0x30]
mov eax, dword [eax + 0x40]
mov dword [esp + 0x98], eax
movups xmmword [esp + 0x88], xmm0
call fcn.00408bf0
mov ecx, eax
call fcn.00408ca0
mov ecx, dword [esp + 0x44]
push edi
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [ecx + 0x20], xmm0
movups xmm0, xmmword [eax + 0x30]
movups xmmword [ecx + 0x30], xmm0
mov eax, dword [eax + 0x40]
mov dword [ecx + 0x40], eax
call fcn.00408bf0
mov ecx, eax
call fcn.00408bd0
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x44]
movq qword [esp + 0x98], xmm0
mov cl, byte [eax]
mov eax, dword [esp + 0x28]
xor al, cl
mov byte [esp + 0x4b], cl
je 0x4051d0
xor eax, eax
mov dword [esp + 0xc], edi
test cl, cl
mov ecx, dword [esi + 0xc]
sete al
add eax, 0x11
mov dword [esp + 8], eax
mov eax, dword [esi + 0x14]
inc eax
cmp ecx, eax
ja 0x405165
push 1
lea ecx, [esi + 4]
call fcn.00404d50
mov ecx, dword [esi + 0xc]
lea eax, [ecx - 1]
and dword [esi + 0x10], eax
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0xc]
add ecx, dword [esi + 0x10]
dec eax
and ecx, eax
mov eax, dword [esi + 8]
mov dword [esp + 0x4c], ecx
cmp dword [eax + ecx*4], 0
jne 0x40519d
push 0x14
call fcn.004137c2
mov ecx, dword [esi + 8]
add esp, 4
mov edx, dword [esp + 0x4c]
mov dword [ecx + edx*4], eax
mov ecx, edx
mov eax, dword [esi + 8]
mov ecx, dword [eax + ecx*4]
movups xmm0, xmmword [esp + 8]
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x50]
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], eax
mov cl, byte [esp + 0x4b]
inc dword [esi + 0x14]
test cl, cl
je 0x40538b
mov eax, dword [esp + 0x40]
xorps xmm0, xmm0
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
test cl, cl
je 0x40538b
xor edi, edi
nop word [eax + eax]
cmp byte [esp + edi + 0x9c], 0
mov edx, dword [esp + 0x50]
je 0x4052c7
mov eax, dword [esp + 0x3c]
add eax, edi
movss xmm1, dword [esi + eax*4]
lea eax, [edi + edx*8]
movaps xmm0, xmm1
movss dword [esp + 0x20], xmm1
subss xmm0, dword [esi + eax*4 + 0x284]
mov dword [esp + 0x1c], eax
cvtps2pd xmm0, xmm0
andps xmm0, xmmword [0x4168c0]
cvtpd2ps xmm0, xmm0
comiss xmm0, dword [esi + 0x280]
jb 0x4052c7
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0xc]
inc eax
mov dword [esp + 0x24], 0x10
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edi
movss dword [esp + 0x30], xmm1
cmp ecx, eax
ja 0x40525f
push 1
lea ecx, [esi + 4]
call fcn.00404d50
mov ecx, dword [esi + 0xc]
lea eax, [ecx - 1]
and dword [esi + 0x10], eax
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0xc]
add ecx, dword [esi + 0x10]
dec eax
and ecx, eax
mov eax, dword [esi + 8]
mov dword [esp + 0x4c], ecx
cmp dword [eax + ecx*4], 0
jne 0x405297
push 0x14
call fcn.004137c2
mov ecx, dword [esi + 8]
add esp, 4
mov edx, dword [esp + 0x4c]
mov dword [ecx + edx*4], eax
mov ecx, edx
mov eax, dword [esi + 8]
mov ecx, dword [eax + ecx*4]
movups xmm0, xmmword [esp + 0x24]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x50]
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], eax
inc dword [esi + 0x14]
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x1c]
movss xmm0, dword [esp + 0x20]
movss dword [esi + eax*4 + 0x284], xmm0
inc edi
cmp edi, 8
jb 0x4051e0
mov eax, dword [esp + 0x98]
xor edi, edi
test eax, eax
je 0x405387
mov ecx, dword [esp + 0x44]
mov cl, byte [ecx + edi + 0x24]
cmp byte [esp + edi + 0x78], cl
je 0x405376
xor eax, eax
mov dword [esp + 0x28], edx
test cl, cl
mov dword [esp + 0x2c], edi
mov ecx, dword [esi + 0xc]
sete al
add eax, 0xe
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x14]
inc eax
cmp ecx, eax
ja 0x405322
push 1
lea ecx, [esi + 4]
call fcn.00404d50
mov ecx, dword [esi + 0xc]
lea eax, [ecx - 1]
and dword [esi + 0x10], eax
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0xc]
add ecx, dword [esi + 0x10]
dec eax
and ecx, eax
mov eax, dword [esi + 8]
mov dword [esp + 0x4c], ecx
cmp dword [eax + ecx*4], 0
jne 0x40535a
push 0x14
call fcn.004137c2
mov ecx, dword [esi + 8]
add esp, 4
mov edx, dword [esp + 0x4c]
mov dword [ecx + edx*4], eax
mov ecx, edx
mov eax, dword [esi + 8]
mov ecx, dword [eax + ecx*4]
movups xmm0, xmmword [esp + 0x24]
mov eax, dword [esp + 0x34]
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], eax
inc dword [esi + 0x14]
mov eax, dword [esp + 0x98]
mov esi, dword [esp + 0x38]
inc edi
mov edx, dword [esp + 0x50]
cmp edi, eax
jb 0x4052e2
mov edi, dword [esp + 0x50]
mov ecx, dword [esp + 0x3c]
inc edi
mov eax, dword [esp + 0x44]
add ecx, 0x11
add dword [esp + 0x40], 0x20
add eax, 0x44
mov esi, dword [esp + 0x38]
mov dword [esp + 0x50], edi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x44], eax
cmp ecx, 0x8f
jb 0x405097
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
xor ecx, esp
call fcn.004137b4
add esp, 0xa0
ret