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

Disassembly:
sub esp, 0x19c
mov eax, dword [0x100e6440]
xor eax, esp
mov dword [esp + 0x198], eax
mov ecx, dword [esp + 0x1a0]
mov edx, dword [esp + 0x1a4]
push esi
mov eax, dword [esp + 0x1ac]
push edi
lea esi, [ecx + 0x5c]
mov dword [esp + 0x64], eax
lea edi, [esp + 0x20]
mov dword [esp + 0x34], ecx
movsd dword es:[edi], dword [esi]
xor eax, eax
push edx
sub esp, 0xc
mov dword [esp + 0x64], eax
mov dword [esp + 0x5c], eax
movsd dword es:[edi], dword [esi]
mov dword [esp + 0x70], eax
mov dword [esp + 0x48], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x40], edx
movsd dword es:[edi], dword [esi]
mov edi, esp
mov dword [esp + 0x60], 1
lea esi, [ecx + 0x44]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.100408f5
movss xmm6, dword [esp + 0xf4]
lea edi, [esp + 0x50]
movss xmm7, dword [esp + 0xfc]
mov esi, eax
add esp, 0x14
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x60]
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x5c], esi
cmp eax, dword [esp + 0x44]
jge 0x1004220d
lea eax, [esp + 0x3c]
mov dword [esp + 0x48], 1
push eax
xor edi, edi
call fcn.100407e1
pop ecx
movzx ecx, al
mov dword [esp + 0x58], ecx
lea eax, [ecx - 1]
cmp eax, 0x1e
ja case.0x100420f0.2
movzx eax, byte [eax + 0x10042b00]
jmp dword [eax*4 + 0x10042ab0]
cmp dword [esp + 0x50], edi
mov edi, dword [esp + 0x54]
je 0x1004210e
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add edi, eax
mov dword [esp + 0x54], edi
and dword [esp + 0x50], 0
lea eax, [edi + 7]
cdq
and edx, 7
add eax, edx
sar eax, 3
push eax
lea eax, [esp + 0x40]
push eax
call fcn.10040877
pop ecx
pop ecx
jmp 0x10042a88
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add dword [esp + 0x54], eax
jmp 0x10042a88
and dword [esp + 0x50], edi
cmp esi, 2
jl 0x1004220d
movss xmm0, dword [esp + esi*4 + 0xdc]
push ecx
push ecx
movss dword [esp + 4], xmm0
movss xmm0, dword [esp + esi*4 + 0xe0]
movss dword [esp], xmm0
push dword [esp + 0x6c]
call fcn.10040ca9
add esp, 0xc
jmp 0x10042a88
and dword [esp + 0x50], edi
cmp esi, 1
jl 0x1004220d
movss xmm0, dword [esp + esi*4 + 0xdc]
push ecx
push ecx
movss dword [esp + 4], xmm0
and dword [esp], edi
jmp 0x1004216d
and dword [esp + 0x50], edi
cmp esi, 1
jl 0x1004220d
movss xmm0, dword [esp + esi*4 + 0xdc]
push ecx
push ecx
and dword [esp + 4], edi
jmp 0x10042168
cmp esi, 2
jl 0x1004220d
mov dword [esp + 0x60], 1
lea edi, [esp + 0xe0]
movss xmm0, dword [edi + 4]
push ecx
push ecx
movss dword [esp + 4], xmm0
movss xmm0, dword [edi]
movss dword [esp], xmm0
push dword [esp + 0x6c]
call fcn.10040c69
mov eax, dword [esp + 0x6c]
lea edi, [edi + 8]
add eax, 2
add esp, 0xc
mov dword [esp + 0x60], eax
cmp eax, esi
jl 0x100421cf
jmp 0x10042a88
cmp esi, 1
jge 0x1004224d
xor eax, eax
mov ecx, dword [esp + 0x1a0]
pop edi
pop esi
xor ecx, esp
call fcn.1008a872
add esp, 0x19c
ret
cmp esi, 1
jl 0x1004220d
movss xmm0, dword [esp + edi*4 + 0xe0]
push ecx
push ecx
and dword [esp + 4], 0
movss dword [esp], xmm0
push dword [esp + 0x6c]
call fcn.10040c69
add esp, 0xc
inc edi
cmp edi, esi
jge 0x10042a88
movss xmm0, dword [esp + edi*4 + 0xe0]
push ecx
push ecx
movss dword [esp + 4], xmm0
and dword [esp], 0
push dword [esp + 0x6c]
call fcn.10040c69
add esp, 0xc
inc edi
cmp edi, esi
jl 0x1004222b
jmp 0x10042a88
cmp esi, 4
jl 0x1004220d
jmp 0x100422cc
cmp esi, 4
jl 0x1004220d
mov eax, esi
sub eax, edi
cmp eax, 5
jne 0x100422a0
movss xmm0, dword [esp + edi*4 + 0xf0]
jmp 0x100422a3
xorps xmm0, xmm0
sub esp, 0x18
movss dword [esp + 0x14], xmm0
movups xmm0, xmmword [esp + edi*4 + 0xf8]
movups xmmword [esp + 4], xmm0
and dword [esp], 0
push dword [esp + 0x7c]
call fcn.10040bfa
add esp, 0x1c
add edi, 4
lea eax, [edi + 3]
cmp eax, esi
jge 0x10042a88
movss xmm1, dword [esp + edi*4 + 0xec]
mov eax, esi
sub eax, edi
cmp eax, 5
jne 0x100422f4
movss xmm0, dword [esp + edi*4 + 0xf0]
jmp 0x100422f7
xorps xmm0, xmm0
sub esp, 0x18
movss dword [esp + 0x14], xmm1
movss dword [esp + 0x10], xmm0
movss xmm0, dword [esp + edi*4 + 0x100]
movss dword [esp + 0xc], xmm0
movss xmm0, dword [esp + edi*4 + 0xfc]
movss dword [esp + 8], xmm0
movss xmm0, dword [esp + edi*4 + 0xf8]
and dword [esp + 4], 0
movss dword [esp], xmm0
push dword [esp + 0x7c]
call fcn.10040bfa
add edi, 4
add esp, 0x1c
lea eax, [edi + 3]
cmp eax, esi
jl 0x1004228c
jmp 0x10042a88
cmp esi, 6
jl 0x1004220d
mov dword [esp + 0x60], 5
lea edi, [esp + 0xf0]
movups xmm0, xmmword [edi - 8]
sub esp, 0x18
movups xmmword [esp + 8], xmm0
movss xmm0, dword [edi - 0xc]
movss dword [esp + 4], xmm0
movss xmm0, dword [edi - 0x10]
movss dword [esp], xmm0
push dword [esp + 0x7c]
call fcn.10040bfa
mov eax, dword [esp + 0x7c]
lea edi, [edi + 0x18]
add eax, 6
add esp, 0x1c
mov dword [esp + 0x60], eax
cmp eax, esi
jl 0x1004236e
jmp 0x10042a88
cmp esi, 8
jl 0x1004220d
push 5
lea eax, [esi - 2]
pop ecx
mov dword [esp + 0x58], eax
cmp eax, ecx
jle 0x1004247d
mov dword [esp + 0x5c], ecx
lea edx, [esp + 0xec]
lea ecx, [esp + 0xf4]
mov esi, eax
movss xmm0, dword [ecx + edi*4]
lea eax, [esp + 0xe8]
sub esp, 0x18
movss dword [esp + 0x14], xmm0
movss xmm0, dword [esp + edi*4 + 0x108]
movss dword [esp + 0x10], xmm0
movss xmm0, dword [edx + edi*4]
movss dword [esp + 0xc], xmm0
movss xmm0, dword [eax + edi*4]
lea eax, [esp + 0xfc]
movss dword [esp + 8], xmm0
movss xmm0, dword [eax + edi*4]
lea eax, [esp + 0xf8]
movss dword [esp + 4], xmm0
movss xmm0, dword [eax + edi*4]
movss dword [esp], xmm0
push dword [esp + 0x7c]
call fcn.10040bfa
mov ecx, dword [esp + 0x78]
lea edx, [esp + 0x108]
add ecx, 6
add edi, 6
add esp, 0x1c
mov dword [esp + 0x5c], ecx
cmp ecx, esi
mov eax, edi
lea ecx, [esp + 0xf4]
jl 0x100423e1
mov esi, dword [esp + 0x60]
inc eax
cmp eax, esi
jge 0x1004220d
movss xmm0, dword [esp + edi*4 + 0xe4]
push ecx
push ecx
movss dword [esp + 4], xmm0
movss xmm0, dword [esp + edi*4 + 0xe8]
movss dword [esp], xmm0
push dword [esp + 0x6c]
call fcn.10040c69
jmp 0x10042176
cmp esi, 8
jl 0x1004220d
lea eax, [esi - 6]
mov dword [esp + 0x58], eax
cmp eax, 1
jle 0x10042514
xor esi, esi
lea ecx, [esp + 0xe4]
inc esi
movss xmm0, dword [ecx + edi*4]
push ecx
push ecx
movss dword [esp + 4], xmm0
movss xmm0, dword [esp + edi*4 + 0xe8]
movss dword [esp], xmm0
push dword [esp + 0x6c]
call fcn.10040c69
add edi, 2
lea ecx, [esp + 0xf0]
add esi, 2
add esp, 0xc
mov eax, edi
cmp esi, dword [esp + 0x58]
jl 0x100424c9
mov esi, dword [esp + 0x60]
add eax, 5
cmp eax, esi
jge 0x1004220d
movups xmm0, xmmword [esp + edi*4 + 0xe8]
sub esp, 0x18
movups xmmword [esp + 8], xmm0
movss xmm0, dword [esp + edi*4 + 0xfc]
movss dword [esp + 4], xmm0
movss xmm0, dword [esp + edi*4 + 0xf8]
movss dword [esp], xmm0
push dword [esp + 0x7c]
call fcn.10040bfa
add esp, 0x1c
jmp 0x10042a88
cmp esi, 4
jl 0x1004220d
mov eax, esi
xorps xmm1, xmm1
and eax, 1
je 0x10042568
movaps xmm1, xmm6
lea edx, [eax + 3]
mov dword [esp + 0x5c], edx
cmp edx, esi
jge 0x10042a88
lea edi, [esp + 0xec]
lea edi, [edi + eax*4]
movss xmm0, dword [edi]
cmp ecx, 0x1b
jne 0x10042597
movss xmm2, dword [edi - 0xc]
movaps xmm3, xmm0
xorps xmm0, xmm0
jmp 0x100425a2
movaps xmm2, xmm1
xorps xmm3, xmm3
movss xmm1, dword [edi - 0xc]
sub esp, 0x18
movss dword [esp + 0x14], xmm0
movss dword [esp + 0x10], xmm3
movss xmm0, dword [edi - 4]
movss dword [esp + 0xc], xmm0
movss xmm0, dword [edi - 8]
movss dword [esp + 8], xmm0
movss dword [esp + 4], xmm1
movss dword [esp], xmm2
push dword [esp + 0x7c]
call fcn.10040bfa
mov edx, dword [esp + 0x78]
add esp, 0x1c
mov ecx, dword [esp + 0x58]
add edx, 4
add edi, 0x10
mov dword [esp + 0x5c], edx
xorps xmm1, xmm1
cmp edx, esi
jl 0x10042581
jmp 0x10042a88
cmp dword [esp + 0x38], edi
jne case.0x100420f0.29
mov eax, dword [esp + 0x34]
cmp dword [eax + 0x7c], edi
je 0x1004262e
push dword [esp + 0x30]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.100409fe
mov ecx, dword [esp + 0x64]
lea edi, [esp + 0x2c]
mov esi, eax
add esp, 0xc
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x60]
xor eax, eax
inc eax
mov dword [esp + 0x38], eax
cmp esi, 1
jl 0x1004220d
mov edx, dword [esp + 0x4c]
dec esi
mov dword [esp + 0x60], esi
cmp edx, 0xa
jge 0x1004220d
imul eax, edx, 0xc
lea edi, [esp + 0x68]
lea esi, [esp + 0x3c]
add edi, eax
mov eax, dword [esp + 0x5c]
inc edx
mov dword [esp + 0x4c], edx
movsd dword es:[edi], dword [esi]
cvttss2si eax, dword [esp + eax*4 + 0xdc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp ecx, 0xa
jne 0x1004267d
lea esi, [esp + 0x20]
jmp 0x10042684
mov esi, dword [esp + 0x34]
add esi, 0x50
push eax
sub esp, 0xc
lea eax, [esp + 0x18]
mov edi, esp
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.100414da
mov esi, eax
lea edi, [esp + 0x50]
add esp, 0x14
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp dword [esp + 0x44], 0
je 0x1004220d
and dword [esp + 0x40], 0
and dword [esp + 0x48], 0
mov esi, dword [esp + 0x60]
jmp 0x10042a88
mov eax, dword [esp + 0x4c]
test eax, eax
jle 0x1004220d
dec eax
lea edi, [esp + 0x3c]
mov dword [esp + 0x4c], eax
imul eax, dword [esp + 0x2c], 0xc
lea esi, [esp + eax + 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x100426b3
lea eax, [esp + 0x3c]
push eax
call fcn.100407e1
movzx eax, al
pop ecx
sub eax, 0x22
je 0x10042971
sub eax, 1
je 0x100428e9
sub eax, 1
je 0x10042836
sub eax, 1
jne 0x1004220d
cmp esi, 0xb
jl 0x1004220d
movss xmm5, dword [esp + 0xe8]
movss xmm3, dword [esp + 0xec]
movaps xmm2, xmm5
addss xmm3, dword [esp + 0xe4]
movss xmm4, dword [esp + 0xe0]
movss xmm6, dword [esp + 0x108]
addss xmm2, xmm4
movaps xmm7, xmm6
addss xmm3, dword [esp + 0xf4]
addss xmm2, dword [esp + 0xf0]
addss xmm3, dword [esp + 0xfc]
addss xmm2, dword [esp + 0xf8]
addss xmm3, dword [esp + 0x104]
addss xmm2, dword [esp + 0x100]
movaps xmm0, xmm3
andps xmm0, xmmword [0x100b4df0]
movaps xmm1, xmm2
andps xmm1, xmmword [0x100b4df0]
comiss xmm1, xmm0
jbe 0x100427b1
movaps xmm6, xmm3
xorps xmm6, xmmword [0x100b4e00]
jmp 0x100427bb
movaps xmm7, xmm2
xorps xmm7, xmmword [0x100b4e00]
movss xmm0, dword [esp + 0xf4]
sub esp, 0x18
mov edi, dword [esp + 0x7c]
movss dword [esp + 0x14], xmm0
movss xmm0, dword [esp + 0x108]
movss dword [esp + 0x10], xmm0
movss xmm0, dword [esp + 0x104]
movss dword [esp + 0xc], xmm0
movss xmm0, dword [esp + 0xfc]
movss dword [esp + 8], xmm5
movss dword [esp + 4], xmm0
movss dword [esp], xmm4
push edi
call fcn.10040bfa
movups xmm0, xmmword [esp + 0x114]
pop ecx
movss dword [esp + 0x14], xmm6
movss dword [esp + 0x10], xmm7
movups xmmword [esp], xmm0
push edi
call fcn.10040bfa
add esp, 0x1c
jmp 0x10042a76
cmp esi, 9
jl 0x1004220d
movss xmm0, dword [esp + 0xf0]
sub esp, 0x18
and dword [esp + 0x14], edi
mov edi, dword [esp + 0x7c]
movss dword [esp + 0x10], xmm0
movss xmm0, dword [esp + 0x104]
movss dword [esp + 0xc], xmm0
movss xmm0, dword [esp + 0xfc]
movss dword [esp + 8], xmm7
movss dword [esp + 4], xmm0
movss dword [esp], xmm6
push edi
call fcn.10040bfa
movss xmm0, dword [esp + 0x108]
add esp, 4
addss xmm0, dword [esp + 0xfc]
movss xmm1, dword [esp + 0x114]
addss xmm0, xmm1
xorps xmm0, xmmword [0x100b4e00]
movss dword [esp + 0x14], xmm0
movss xmm0, dword [esp + 0x118]
movss dword [esp + 0x10], xmm0
movss xmm0, dword [esp + 0x110]
movss dword [esp + 0xc], xmm1
movss dword [esp + 8], xmm0
movss xmm0, dword [esp + 0x10c]
jmp 0x100429f5
cmp esi, 0xd
jl 0x1004220d
movss xmm0, dword [esp + 0xf4]
sub esp, 0x18
mov edi, dword [esp + 0x7c]
movss dword [esp + 0x14], xmm0
movss xmm0, dword [esp + 0x108]
movss dword [esp + 0x10], xmm0
movss xmm0, dword [esp + 0x104]
movss dword [esp + 0xc], xmm0
movss xmm0, dword [esp + 0xfc]
movss dword [esp + 8], xmm7
movss dword [esp + 4], xmm0
movss dword [esp], xmm6
push edi
call fcn.10040bfa
movups xmm0, xmmword [esp + 0x11c]
pop ecx
movups xmmword [esp + 8], xmm0
movss xmm0, dword [esp + 0x114]
movss dword [esp + 4], xmm0
movss xmm0, dword [esp + 0x110]
jmp 0x100429fa
cmp esi, 7
jl 0x1004220d
movss xmm0, dword [esp + 0xec]
sub esp, 0x18
and dword [esp + 0x14], edi
movss dword [esp + 0x10], xmm0
movss xmm0, dword [esp + 0xfc]
movss dword [esp + 0xc], xmm7
movss dword [esp + 8], xmm0
and dword [esp + 4], edi
mov edi, dword [esp + 0x7c]
movss dword [esp], xmm6
push edi
call fcn.10040bfa
movss xmm0, dword [esp + 0x114]
pop ecx
and dword [esp + 0x14], 0
movss dword [esp + 0x10], xmm0
movaps xmm0, xmm7
xorps xmm0, xmmword [0x100b4e00]
movss dword [esp + 0xc], xmm0
movss xmm0, dword [esp + 0x10c]
movss dword [esp + 8], xmm0
movss xmm0, dword [esp + 0x108]
and dword [esp + 4], 0
movss dword [esp], xmm0
push edi
jmp 0x10042545
cmp ecx, 0xff
je 0x10042a42
cmp ecx, 0x1c
je 0x10042a1b
cmp ecx, 0x20
jb 0x1004220d
mov eax, dword [esp + 0x40]
dec eax
push eax
lea eax, [esp + 0x40]
push eax
call fcn.1004085f
lea eax, [esp + 0x44]
push eax
call fcn.10040978
cwde
add esp, 0xc
movd xmm0, eax
cvtdq2ps xmm0, xmm0
jmp 0x10042a5f
lea eax, [esp + 0x3c]
push 4
push eax
call fcn.100407fa
pop ecx
pop ecx
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x100c91bc]
cmp esi, 0x30
jge 0x1004220d
movss dword [esp + esi*4 + 0xe0], xmm0
inc esi
and dword [esp + 0x48], edi
movss xmm7, dword [esp + 0xe8]
movss xmm6, dword [esp + 0xe0]
xor eax, eax
cmp dword [esp + 0x48], eax
cmove eax, esi
mov esi, eax
mov dword [esp + 0x60], esi
jmp 0x100420a7
push dword [esp + 0x64]
call fcn.10040bbb
xor eax, eax
pop ecx
inc eax
jmp 0x1004220f