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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x90
mov esi, ecx
mov eax, dword [edx + 0x1c]
mov ecx, dword [edx + 0x20]
movsd xmm0, qword [edx + 0x14]
mov edi, dword [ebp + 0xc]
mov edx, dword [esi + 0x68]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], eax
cmp edx, edi
jbe 0x10040e01
movd xmm1, eax
movd xmm2, ecx
shl edi, 4
movaps xmm6, xmm0
mov eax, dword [0x1016d61c]
punpckldq xmm1, xmm2
pxor xmm2, xmm2
add edi, dword [esi + 0x64]
movq qword [esi + 4], xmm2
movq qword [esi + 0xc], xmm2
movq qword [esi + 0x18], xmm2
movq qword [esi + 0x20], xmm2
movss xmm2, dword [0x1011dc24]
addps xmm1, xmm0
movaps xmm4, xmm1
movaps xmm5, xmm1
addps xmm6, xmm1
shufps xmm5, xmm0, 1
subss xmm4, xmm0
shufps xmm5, xmm0, 0xe2
movlps qword [esi + 0x28], xmm2
movss xmm2, dword [0x1011dc20]
movaps xmm3, xmm2
divss xmm3, xmm4
movaps xmm4, xmm0
shufps xmm0, xmm1, 1
subps xmm4, xmm1
shufps xmm0, xmm1, 0xe2
subps xmm5, xmm0
shufps xmm4, xmm4, 0x55
movsd xmm0, qword [0x1011dc30]
divss xmm2, xmm4
divps xmm6, xmm5
movss dword [esi], xmm3
movss dword [esi + 0x14], xmm2
movlps qword [esi + 0x30], xmm6
movsd qword [esi + 0x38], xmm0
mov eax, dword [eax]
test eax, eax
je 0x10040b78
mov eax, dword [0x1016d630]
movzx eax, byte [eax]
test al, al
jne 0x10040ce9
mov eax, dword [0x10180d7c]
mov eax, dword [eax]
cmp eax, 5
jb 0x10040ce9
mov ebx, dword [0x1016d3a4]
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x18]
mov dword [esp + 0x30], 5
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
call fcn.1009d820
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], eax
push eax
mov dword [esp + 0x28], edx
call dword [edx + 0xc]
add esp, 8
test al, al
je 0x10040ce9
mov eax, dword [esp + 0x38]
movsd xmm0, qword [esp + 0x30]
mov edx, dword [0x1016d3a4]
mov dword [esp + 0x60], eax
movsd qword [esp + 0x58], xmm0
mov ecx, dword [edx + 0x20]
test ecx, ecx
je 0x10040e35
lea eax, [edx + 0x1c]
movsd xmm0, qword [edx + 0x24]
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 0x1c]
mov dword [esp], 0x1011f0e8
mov dword [esp + 4], 2
mov dword [esp + 0x10], 0
mov dword [esp + 0x78], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x7c], ecx
movlps qword [esp + 0x80], xmm0
mov dword [esp + 0x88], 0
lea ecx, [esp + 0x58]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x4c], fcn.100c0ee0
mov dword [esp + 0x50], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x54], fcn.100c0ee0
mov dword [esp + 8], eax
lea eax, [esp + 0x78]
mov dword [esp + 0xc], 2
mov dword [esp + 0x68], eax
mov eax, esp
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x68]
mov dword [esp + 0x70], 0x1011f0f8
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x40], 1
mov dword [esp + 0x44], eax
lea eax, [esp + 0x3c]
push eax
push ecx
push dword [esp + 0x28]
push dword [esp + 0x30]
push ebx
call fcn.100445f0
add esp, 0x14
jmp 0x10040ce9
movzx eax, byte [0x1016d3ac]
test al, al
je 0x10040a37
movzx ecx, al
cmp ecx, 1
je 0x10040b9a
cmp ecx, 2
jne 0x10040de7
mov al, 2
movzx eax, al
push eax
push dword [0x1016d3a4]
call fcn.10044460
add esp, 8
test al, al
je 0x10040a37
mov eax, dword [0x1016d3a4]
mov edx, dword [eax + 0x20]
test edx, edx
je 0x10040e35
mov ebx, dword [eax + 0x1c]
movsd xmm0, qword [eax + 0x24]
mov dword [esp], 0x1011f0e8
mov dword [esp + 4], 2
mov dword [esp + 0x10], 0
lea ecx, [eax + 0x1c]
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], edx
lea edx, [esp + 0x28]
lea ebx, [esp + 0x58]
movlps qword [esp + 0x80], xmm0
mov dword [esp + 0x88], 0
mov dword [esp + 0x48], edx
lea edx, [esp + 0x2c]
mov dword [esp + 0x4c], fcn.100c0ee0
mov dword [esp + 0x30], ebx
lea ebx, [esp + 0x30]
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], ecx
mov dword [esp + 0x50], edx
lea edx, [esp + 0x48]
mov dword [esp + 0x54], fcn.100c0ee0
mov dword [esp + 8], edx
lea edx, [esp + 0x78]
mov dword [esp + 0xc], 2
mov dword [esp + 0x58], edx
mov edx, esp
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], 0x1011f0f8
push ebx
push eax
call fcn.10045af0
add esp, 8
mov eax, dword [0x1016d630]
movzx eax, byte [eax]
test al, al
jne 0x10040ce9
mov eax, dword [0x10180d7c]
mov eax, dword [eax]
cmp eax, 5
jb 0x10040ce9
mov ecx, dword [0x1016d3a4]
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x24], ecx
mov ecx, dword [ecx + 0x18]
mov dword [esp + 0x3c], 5
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
call fcn.1009d820
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x24], eax
push eax
mov dword [esp + 0x24], edx
call dword [edx + 0xc]
add esp, 8
test al, al
je 0x10040ce9
mov eax, dword [esp + 0x44]
movsd xmm0, qword [esp + 0x3c]
mov dword [esp + 0x70], eax
movsd qword [esp + 0x68], xmm0
lea eax, [esp + 0x68]
push ebx
push eax
push dword [esp + 0x24]
push dword [esp + 0x2c]
push dword [esp + 0x34]
jmp 0x10040b6b
mov ebx, dword [ebp + 8]
movsd xmm2, qword [esp + 0x28]
movsd xmm1, qword [0x1011dc10]
xorps xmm0, xmm0
mov eax, esp
movsd qword [esp], xmm0
movsd qword [esp + 8], xmm2
movsd qword [esp + 0x10], xmm1
push 1
push eax
push ebx
call fcn.10047df0
add esp, 0xc
cmp dword [edi + 4], 0
je 0x10040e0d
lea eax, [edi + 4]
push eax
call fcn.10047fc0
add esp, 4
mov ecx, dword [edi + 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
shl ecx, 2
lea ecx, [ecx + ecx*4]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 0x14
push 1
lea eax, [esp + 4]
push eax
push 0
push ebx
call fcn.10047f00
add esp, 0x10
cmp dword [edi], 0
je 0x10040e17
push edi
call fcn.10047fc0
add esp, 4
mov ecx, dword [edi + 8]
mov dword [esp], eax
mov eax, esp
mov dword [esp + 4], edx
add ecx, ecx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 0x39
push eax
push 1
push ebx
call fcn.10047ee0
add esp, 0xc
push 4
push ebx
call fcn.10047dd0
add esp, 8
mov eax, dword [esi + 0x58]
test eax, eax
je 0x10040e21
mov edi, dword [ebx]
mov ecx, dword [edi]
push eax
push edi
call dword [ecx + 0x64]
mov eax, dword [esi + 0x54]
test eax, eax
je 0x10040e2b
mov ecx, dword [edi]
push eax
push edi
call dword [ecx + 0x78]
push 0
push esi
push 0x10
push 0
push ebx
call fcn.10047ec0
add esp, 0x14
push 0x1011f148
push ebx
call fcn.10047e30
add esp, 8
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x1016d3a4
call fcn.1010e990
add esp, 4
test al, al
jne 0x10040b9a
jmp 0x10040a37
push 0x1011f094
push edx
push edi
call fcn.10113f90
push 0x1011f108
call fcn.10113de0
push 0x1011f118
call fcn.10113de0
push 0x1011f128
call fcn.10113de0
push 0x1011f138
call fcn.10113de0
push 0x1011f0c8
push 0x22
push 0x1011f0a4
call fcn.10113e00
int3