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

Disassembly:
sub esp, 0x2f0
mov eax, dword [0x6229a0]
xor eax, esp
mov dword [esp + 0x2ec], eax
mov eax, dword [esp + 0x304]
push ebx
mov ebx, dword [esp + 0x2f8]
push ebp
mov ebp, dword [esp + 0x304]
push esi
mov esi, dword [esp + 0x314]
push edi
mov edi, ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], eax
cmp dword [edi + 0x3c04], 0
jle 0x4050f0
cmp dword [edi + 0x3c08], esi
jne 0x4050ea
mov eax, dword [esp + 0x308]
cmp dword [edi], eax
je 0x4050f7
push ebx
call fcn.00405990
mov eax, dword [esp + 0x308]
mov dword [edi], eax
mov ecx, 4
mov dword [edi + 0x3c08], esi
lea eax, [esp + 0x64]
nop dword [eax + eax]
mov dword [eax], 0
lea eax, [eax + 8]
mov dword [eax - 4], 0
sub ecx, 1
jne 0x405110
mov ecx, dword [esp + 0x31c]
mov edx, dword [ecx + 8]
mov eax, edx
mov ecx, dword [ecx + 0xc]
neg eax
movd xmm0, edx
movd xmm3, eax
mov eax, ecx
neg eax
movd xmm1, ecx
cvtdq2ps xmm3, xmm3
mov ecx, 4
movd xmm2, eax
lea eax, [esp + 0x34]
mulss xmm3, dword [0x5d9838]
cvtdq2ps xmm2, xmm2
cvtdq2ps xmm1, xmm1
mulss xmm2, dword [0x5d9838]
cvtdq2ps xmm0, xmm0
addss xmm1, xmm2
movss dword [esp + 0x64], xmm3
addss xmm0, xmm3
movss dword [esp + 0x68], xmm2
movss dword [esp + 0x6c], xmm3
movss dword [esp + 0x78], xmm2
movss dword [esp + 0x70], xmm1
movss dword [esp + 0x74], xmm0
movss dword [esp + 0x7c], xmm0
movss dword [esp + 0x80], xmm1
nop word [eax + eax]
mov dword [eax], 0
lea eax, [eax + 8]
mov dword [eax - 4], 0
sub ecx, 1
jne 0x4051b0
xor esi, esi
lea eax, [esp + 0x64]
mov ecx, ebp
add eax, esi
push eax
lea eax, [esp + 0x30]
push eax
call fcn.004e1100
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + esi + 0x34], ecx
movss xmm0, dword [esp + esi + 0x34]
subss xmm0, dword [0x5d9838]
mov dword [esp + esi + 0x38], eax
movss dword [esp + esi + 0x34], xmm0
movss xmm0, dword [esp + esi + 0x38]
subss xmm0, dword [0x5d9838]
movss dword [esp + esi + 0x38], xmm0
add esi, 8
cmp esi, 0x20
jl 0x4051c7
mov eax, dword [edi]
movss xmm2, dword [0x5d9834]
mov esi, dword [esp + 0x31c]
movaps xmm1, xmm2
movd xmm0, dword [eax + 0x20]
cvtdq2ps xmm0, xmm0
mov ecx, dword [esi]
mov edx, dword [esi + 4]
divss xmm1, xmm0
movd xmm0, dword [eax + 0x24]
cvtdq2ps xmm0, xmm0
mov eax, dword [esi + 8]
add eax, ecx
divss xmm2, xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
mov ecx, dword [esp + 0x14]
mulss xmm0, xmm1
movss dword [esp + 0x18], xmm0
movd xmm0, edx
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
movss dword [esp + 0x1c], xmm0
movd xmm0, eax
mov eax, dword [esi + 0xc]
cvtdq2ps xmm0, xmm0
add eax, edx
mulss xmm0, xmm1
movss dword [esp + 0x24], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
movss dword [esp + 0x20], xmm0
call fcn.00532d60
mov dword [esp + 0x14], eax
lea edx, [esp + 0x194]
mov byte [esp + 0x13], 0
mov ecx, 6
mov dword [edx], 0
lea edx, [edx + 0x14]
sub ecx, 1
jne 0x4052b4
mov eax, dword [edi + 0x3c04]
lea esi, [esp + 0x184]
add eax, 2
cmp eax, 0x100
mov eax, dword [esp + 0x310]
jg 0x405526
cmp dword [eax], ecx
jne 0x405320
cmp dword [eax + 4], ecx
jne 0x405320
cmp dword [eax + 8], 0x500
jne 0x405320
cmp dword [eax + 0xc], 0x2d0
jne 0x405320
mov ecx, dword [0x668248]
call fcn.00544340
test al, al
je 0x405319
movss xmm0, dword [esp + 0x34]
jmp 0x4053ee
mov eax, dword [esp + 0x310]
mov ecx, dword [eax]
movss xmm0, dword [esp + 0x34]
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
comiss xmm0, xmm1
jb 0x405414
mov eax, dword [eax + 8]
add eax, ecx
movd xmm2, eax
cvtdq2ps xmm2, xmm2
comiss xmm2, xmm0
jb 0x40540d
movss xmm3, dword [esp + 0x3c]
comiss xmm3, xmm1
jb 0x40540d
comiss xmm2, xmm3
jb 0x40540d
movss xmm3, dword [esp + 0x44]
comiss xmm3, xmm1
jb 0x40540d
comiss xmm2, xmm3
mov eax, dword [esp + 0x310]
jb 0x405414
movss xmm3, dword [esp + 0x4c]
comiss xmm3, xmm1
jb 0x405414
comiss xmm2, xmm3
jb 0x405414
mov ecx, dword [eax + 4]
movss xmm3, dword [esp + 0x38]
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
comiss xmm3, xmm1
jb 0x405414
mov eax, dword [eax + 0xc]
add eax, ecx
movd xmm2, eax
cvtdq2ps xmm2, xmm2
comiss xmm2, xmm3
jb 0x40540d
movss xmm3, dword [esp + 0x40]
comiss xmm3, xmm1
jb 0x40540d
comiss xmm2, xmm3
jb 0x40540d
movss xmm3, dword [esp + 0x48]
comiss xmm3, xmm1
jb 0x40540d
comiss xmm2, xmm3
jb 0x40540d
movss xmm3, dword [esp + 0x50]
comiss xmm3, xmm1
jb 0x40540d
comiss xmm2, xmm3
jb 0x40540d
mov ecx, dword [edi + 0x3c04]
mov eax, ecx
shl eax, 4
sub eax, ecx
mov byte [esp + 0x13], 1
inc eax
lea esi, [edi + eax*4]
lea eax, [ecx + 2]
mov dword [edi + 0x3c04], eax
mov eax, dword [esp + 0x310]
cmp byte [esp + 0x13], 0
lea ebp, [esi + 0x28]
mov ecx, dword [esp + 0x14]
movss xmm1, dword [esp + 0x18]
movss xmm2, dword [esp + 0x1c]
movss xmm4, dword [esp + 0x20]
movss xmm3, dword [esp + 0x24]
movss dword [esi], xmm0
movss xmm0, dword [esp + 0x38]
movss dword [esi + 4], xmm0
movss dword [esi + 8], xmm1
movss dword [esi + 0xc], xmm2
mov dword [esi + 0x10], ecx
movss xmm0, dword [esp + 0x3c]
movss dword [esi + 0x14], xmm0
movss xmm0, dword [esp + 0x40]
movss dword [esi + 0x18], xmm0
movss dword [esi + 0x1c], xmm1
movss dword [esi + 0x20], xmm4
mov dword [esi + 0x24], ecx
movss xmm0, dword [esp + 0x44]
movss dword [ebp], xmm0
movss xmm0, dword [esp + 0x48]
movss dword [esi + 0x2c], xmm0
movss dword [esi + 0x30], xmm3
movss dword [esi + 0x34], xmm2
mov dword [esi + 0x38], ecx
movss xmm0, dword [esp + 0x44]
movss dword [esi + 0x3c], xmm0
movss xmm0, dword [esp + 0x48]
movss dword [esi + 0x40], xmm0
movss dword [esi + 0x44], xmm3
movss dword [esi + 0x48], xmm2
mov dword [esi + 0x4c], ecx
movss xmm0, dword [esp + 0x3c]
movss dword [esi + 0x50], xmm0
movss xmm0, dword [esp + 0x40]
movss dword [esi + 0x54], xmm0
movss dword [esi + 0x58], xmm1
movss dword [esi + 0x5c], xmm4
mov dword [esi + 0x60], ecx
movss xmm0, dword [esp + 0x4c]
movss dword [esi + 0x64], xmm0
movss xmm0, dword [esp + 0x50]
mov dword [esp + 0x18], ebp
movss dword [esi + 0x68], xmm0
movss dword [esi + 0x6c], xmm3
movss dword [esi + 0x70], xmm4
mov dword [esi + 0x74], ecx
je 0x405531
cmp dword [edi + 0x3c04], 0x100
jne 0x40577d
push ebx
mov ecx, edi
call fcn.00405990
jmp 0x40577d
movss xmm0, dword [esp + 0x34]
jmp 0x405414
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
add eax, ecx
mov dword [esp + 0x14], 2
movd xmm0, ecx
movd xmm4, edx
cvtdq2ps xmm0, xmm0
movd xmm5, eax
mov eax, dword [esp + 0x310]
cvtdq2ps xmm4, xmm4
mov eax, dword [eax + 0xc]
add eax, edx
movss dword [esp + 0x2c], xmm0
cvtdq2ps xmm5, xmm5
movd xmm6, eax
cvtdq2ps xmm6, xmm6
movss dword [esp + 0x24], xmm4
movss dword [esp + 0x20], xmm5
movss dword [esp + 0x1c], xmm6
lea eax, [ebp - 0x28]
mov dword [0x624534], 0
mov dword [esp + 0x54], eax
lea eax, [ebp - 0x14]
push ecx
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x200]
movss dword [esp], xmm0
push eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x64], ebp
push eax
mov dword [esp + 0x6c], 0
call fcn.00406420
add esp, 0xc
cmp eax, 3
jb 0x405765
push ecx
lea eax, [esp + 0x88]
movss dword [esp], xmm5
push eax
lea eax, [esp + 0x204]
push eax
call fcn.00406810
add esp, 0xc
cmp eax, 3
jb 0x405765
push ecx
lea eax, [esp + 0x200]
movss dword [esp], xmm4
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.00406c00
add esp, 0xc
cmp eax, 3
jb 0x405765
push ecx
lea eax, [esp + 0x88]
movss dword [esp], xmm6
push eax
lea eax, [esp + 0x204]
push eax
call fcn.00406020
add esp, 0xc
xor esi, esi
lea ebx, [eax - 2]
test ebx, ebx
jle 0x405765
mov ebp, dword [esp + 0x28]
nop dword [eax + eax]
mov eax, dword [edi + 0x3c04]
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov eax, dword [esp + 0x84]
mov eax, dword [eax]
mov dword [edi + ecx*4 + 4], eax
mov eax, dword [esp + 0x84]
mov eax, dword [eax + 4]
mov dword [edi + ecx*4 + 8], eax
mov eax, dword [esp + 0x84]
mov eax, dword [eax + 8]
mov dword [edi + ecx*4 + 0xc], eax
mov eax, dword [esp + 0x84]
mov eax, dword [eax + 0xc]
mov dword [edi + ecx*4 + 0x10], eax
mov eax, dword [esp + 0x84]
mov eax, dword [eax + 0x10]
mov dword [edi + ecx*4 + 0x14], eax
mov eax, dword [esp + esi*4 + 0x88]
mov eax, dword [eax]
mov dword [edi + ecx*4 + 0x18], eax
mov eax, dword [esp + esi*4 + 0x88]
mov eax, dword [eax + 4]
mov dword [edi + ecx*4 + 0x1c], eax
mov eax, dword [esp + esi*4 + 0x88]
mov eax, dword [eax + 8]
mov dword [edi + ecx*4 + 0x20], eax
mov eax, dword [esp + esi*4 + 0x88]
mov eax, dword [eax + 0xc]
mov dword [edi + ecx*4 + 0x24], eax
mov eax, dword [esp + esi*4 + 0x88]
mov eax, dword [eax + 0x10]
mov dword [edi + ecx*4 + 0x28], eax
mov eax, dword [esp + esi*4 + 0x8c]
mov eax, dword [eax]
mov dword [edi + ecx*4 + 0x2c], eax
mov eax, dword [esp + esi*4 + 0x8c]
mov eax, dword [eax + 4]
mov dword [edi + ecx*4 + 0x30], eax
mov eax, dword [esp + esi*4 + 0x8c]
mov eax, dword [eax + 8]
mov dword [edi + ecx*4 + 0x34], eax
mov eax, dword [esp + esi*4 + 0x8c]
mov eax, dword [eax + 0xc]
mov dword [edi + ecx*4 + 0x38], eax
mov eax, dword [esp + esi*4 + 0x8c]
mov eax, dword [eax + 0x10]
mov dword [edi + ecx*4 + 0x3c], eax
inc dword [edi + 0x3c04]
cmp dword [edi + 0x3c04], 0x100
jne 0x405746
push ebp
mov ecx, edi
call fcn.00405990
inc esi
cmp esi, ebx
jl 0x405650
movss xmm4, dword [esp + 0x24]
movss xmm5, dword [esp + 0x20]
movss xmm6, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
movss xmm0, dword [esp + 0x2c]
add ebp, 0x3c
sub dword [esp + 0x14], 1
mov dword [esp + 0x18], ebp
jne 0x405583
mov ecx, dword [esp + 0x2fc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0059b734
add esp, 0x2f0
ret 0x1c