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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x108
mov rax, qword [rsp + 0x130]
add rax, 8
mov r8, qword [rsp + 0x120]
mov rdx, rax
lea rcx, [rsp + 0xb8]
call fcn.1400195c0
mov rcx, qword [rsp + 0x130]
mov r9, qword [rax]
mov r8, rcx
mov rdx, qword [rsp + 0x118]
lea rcx, [rsp + 0x90]
call fcn.140043e60
nop
cmp dword [rsp + 0x140], 1
jne 0x140040ccd
mov dword [rsp + 0x98], 3
mov dword [rsp + 0x9c], 1
mov dword [rsp + 0xa0], 0
mov dword [rsp + 0xa4], 2
mov rax, qword [rsp + 0x128]
cmp dword [rax], 0xffffffff
je 0x140040ac4
mov dword [rsp + 0x40], 0xffffffff
jmp 0x140040acc
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x24], eax
jmp 0x140040ae0
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 4
jge 0x140040ccd
cmp dword [rsp + 0x24], 0xffffffff
jne 0x140040b02
mov rax, qword [rsp + 0x128]
mov eax, dword [rax]
mov dword [rsp + 0x44], eax
jmp 0x140040b12
movsxd rax, dword [rsp + 0x24]
mov eax, dword [rsp + rax*4 + 0x98]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x24], 0xffffffff
je 0x140040b33
mov rax, qword [rsp + 0x128]
mov eax, dword [rax]
cmp dword [rsp + 0x28], eax
jne 0x140040b33
jmp 0x140040ad6
lea rcx, [rsp + 0x30]
call fcn.140033120
nop
cmp dword [rsp + 0x28], 3
jne 0x140040b73
mov rax, qword [rsp + 0x138]
vmovss xmm2, dword [rax + 0xc]
mov rax, qword [rsp + 0x138]
vmovss xmm1, dword [rax]
lea rcx, [rsp + 0xc0]
call fcn.140005180
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
cmp dword [rsp + 0x28], 1
jne 0x140040bb9
mov rax, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x120]
vmovss xmm0, dword [rax + 4]
vsubss xmm0, xmm0, dword [rcx + 4]
vmovups xmm2, xmm0
mov rax, qword [rsp + 0x138]
vmovss xmm1, dword [rax]
lea rcx, [rsp + 0xc8]
call fcn.140005180
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
cmp dword [rsp + 0x28], 0
jne 0x140040bff
mov rax, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x120]
vmovss xmm0, dword [rax + 8]
vsubss xmm0, xmm0, dword [rcx]
mov rax, qword [rsp + 0x138]
vmovss xmm2, dword [rax + 0xc]
vmovups xmm1, xmm0
lea rcx, [rsp + 0xd0]
call fcn.140005180
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
cmp dword [rsp + 0x28], 2
jne 0x140040c52
mov rax, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x120]
vmovss xmm0, dword [rax + 4]
vsubss xmm0, xmm0, dword [rcx + 4]
mov rax, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x120]
vmovss xmm1, dword [rax + 8]
vsubss xmm1, xmm1, dword [rcx]
vmovups xmm2, xmm0
lea rcx, [rsp + 0xd8]
call fcn.140005180
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov r8, qword [rsp + 0x120]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0xe0]
call fcn.140019620
mov r8, rax
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0xf0]
call fcn.140019130
mov rdx, rax
mov rcx, qword [rsp + 0x130]
call fcn.14003e530
movzx eax, al
test eax, eax
jne 0x140040c9d
jmp 0x140040ad6
mov rax, qword [rsp + 0x128]
mov ecx, dword [rsp + 0x28]
mov dword [rax], ecx
mov rax, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
mov rax, qword [rsp + 0x110]
jmp 0x14004116b
cmp dword [rsp + 0x140], 2
je 0x140040ce5
cmp dword [rsp + 0x140], 0
jne 0x14004101b
mov dword [rsp + 0xa8], 1
mov dword [rsp + 0xac], 3
mov dword [rsp + 0xb0], 2
mov dword [rsp + 0xb4], 0
mov rax, qword [rsp + 0x128]
cmp dword [rax], 0xffffffff
je 0x140040d28
mov dword [rsp + 0x48], 0xffffffff
jmp 0x140040d30
mov dword [rsp + 0x48], 0
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x2c], eax
jmp 0x140040d44
mov eax, dword [rsp + 0x2c]
inc eax
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 4
jge 0x14004101b
cmp dword [rsp + 0x2c], 0xffffffff
jne 0x140040d66
mov rax, qword [rsp + 0x128]
mov eax, dword [rax]
mov dword [rsp + 0x4c], eax
jmp 0x140040d76
movsxd rax, dword [rsp + 0x2c]
mov eax, dword [rsp + rax*4 + 0xa8]
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x2c], 0xffffffff
je 0x140040d97
mov rax, qword [rsp + 0x128]
mov eax, dword [rax]
cmp dword [rsp + 0x20], eax
jne 0x140040d97
jmp 0x140040d3a
cmp dword [rsp + 0x20], 0
jne 0x140040db2
mov rax, qword [rsp + 0x138]
vmovss xmm0, dword [rax]
vmovss dword [rsp + 0x50], xmm0
jmp 0x140040dc5
mov rax, qword [rsp + 0x130]
vmovss xmm0, dword [rax + 8]
vmovss dword [rsp + 0x50], xmm0
cmp dword [rsp + 0x20], 1
jne 0x140040de1
mov rax, qword [rsp + 0x138]
vmovss xmm0, dword [rax + 8]
vmovss dword [rsp + 0x54], xmm0
jmp 0x140040df3
mov rax, qword [rsp + 0x130]
vmovss xmm0, dword [rax]
vmovss dword [rsp + 0x54], xmm0
vmovss xmm0, dword [rsp + 0x50]
vsubss xmm0, xmm0, dword [rsp + 0x54]
vmovss dword [rsp + 0x84], xmm0
cmp dword [rsp + 0x20], 2
jne 0x140040e24
mov rax, qword [rsp + 0x138]
vmovss xmm0, dword [rax + 4]
vmovss dword [rsp + 0x58], xmm0
jmp 0x140040e37
mov rax, qword [rsp + 0x130]
vmovss xmm0, dword [rax + 0xc]
vmovss dword [rsp + 0x58], xmm0
cmp dword [rsp + 0x20], 3
jne 0x140040e53
mov rax, qword [rsp + 0x138]
vmovss xmm0, dword [rax + 0xc]
vmovss dword [rsp + 0x5c], xmm0
jmp 0x140040e66
mov rax, qword [rsp + 0x130]
vmovss xmm0, dword [rax + 4]
vmovss dword [rsp + 0x5c], xmm0
vmovss xmm0, dword [rsp + 0x58]
vsubss xmm0, xmm0, dword [rsp + 0x5c]
vmovss dword [rsp + 0x88], xmm0
mov rax, qword [rsp + 0x120]
vmovss xmm0, dword [rsp + 0x84]
vcomiss xmm0, dword [rax]
jae 0x140040ea5
cmp dword [rsp + 0x20], 0
je 0x140040ea0
cmp dword [rsp + 0x20], 1
jne 0x140040ea5
jmp 0x140040d3a
mov rax, qword [rsp + 0x120]
vmovss xmm0, dword [rsp + 0x88]
vcomiss xmm0, dword [rax + 4]
jae 0x140040ed0
cmp dword [rsp + 0x20], 2
je 0x140040ecb
cmp dword [rsp + 0x20], 3
jne 0x140040ed0
jmp 0x140040d3a
lea rcx, [rsp + 0x38]
call fcn.140033120
cmp dword [rsp + 0x20], 0
jne 0x140040f01
mov rax, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x120]
vmovss xmm0, dword [rax]
vsubss xmm0, xmm0, dword [rcx]
vmovss dword [rsp + 0x64], xmm0
jmp 0x140040f38
cmp dword [rsp + 0x20], 1
jne 0x140040f1d
mov rax, qword [rsp + 0x138]
vmovss xmm0, dword [rax + 8]
vmovss dword [rsp + 0x60], xmm0
jmp 0x140040f2c
vmovss xmm0, dword [rsp + 0x90]
vmovss dword [rsp + 0x60], xmm0
vmovss xmm0, dword [rsp + 0x60]
vmovss dword [rsp + 0x64], xmm0
vmovss xmm0, dword [rsp + 0x64]
vmovss dword [rsp + 0x38], xmm0
cmp dword [rsp + 0x20], 2
jne 0x140040f6d
mov rax, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x120]
vmovss xmm0, dword [rax + 4]
vsubss xmm0, xmm0, dword [rcx + 4]
vmovss dword [rsp + 0x6c], xmm0
jmp 0x140040fa4
cmp dword [rsp + 0x20], 3
jne 0x140040f89
mov rax, qword [rsp + 0x138]
vmovss xmm0, dword [rax + 0xc]
vmovss dword [rsp + 0x68], xmm0
jmp 0x140040f98
vmovss xmm0, dword [rsp + 0x94]
vmovss dword [rsp + 0x68], xmm0
vmovss xmm0, dword [rsp + 0x68]
vmovss dword [rsp + 0x6c], xmm0
vmovss xmm0, dword [rsp + 0x6c]
vmovss dword [rsp + 0x3c], xmm0
mov rax, qword [rsp + 0x130]
vmovss xmm1, dword [rax]
vmovss xmm0, dword [rsp + 0x38]
call fcn.140030080
vmovss dword [rsp + 0x38], xmm0
mov rax, qword [rsp + 0x130]
vmovss xmm1, dword [rax + 4]
vmovss xmm0, dword [rsp + 0x3c]
call fcn.140030080
vmovss dword [rsp + 0x3c], xmm0
mov rax, qword [rsp + 0x128]
mov ecx, dword [rsp + 0x20]
mov dword [rax], ecx
mov rax, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x38]
mov qword [rax], rcx
mov rax, qword [rsp + 0x110]
jmp 0x14004116b
mov rax, qword [rsp + 0x128]
mov dword [rax], 0xffffffff
cmp dword [rsp + 0x140], 2
jne 0x140041076
vmovss xmm2, dword [0x1401540d8]
vmovss xmm1, dword [0x1401540d8]
lea rcx, [rsp + 0xe8]
call fcn.140005180
mov r8, rax
mov rdx, qword [rsp + 0x118]
mov rcx, qword [rsp + 0x110]
call fcn.140019620
nop
mov rax, qword [rsp + 0x110]
jmp 0x14004116b
mov rax, qword [rsp + 0x118]
mov rax, qword [rax]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x130]
vmovss xmm0, dword [rax]
vmovss dword [rsp + 0x8c], xmm0
mov rax, qword [rsp + 0x120]
vmovss xmm0, dword [rsp + 0x70]
vaddss xmm0, xmm0, dword [rax]
mov rax, qword [rsp + 0x130]
vmovss xmm1, dword [rax + 8]
call fcn.1400300f0
mov rax, qword [rsp + 0x120]
vsubss xmm0, xmm0, dword [rax]
vmovss dword [rsp + 0x78], xmm0
vmovss xmm1, dword [rsp + 0x8c]
vmovss xmm0, dword [rsp + 0x78]
call fcn.140030080
vmovss dword [rsp + 0x70], xmm0
mov rax, qword [rsp + 0x130]
vmovss xmm0, dword [rax + 4]
vmovss dword [rsp + 0x7c], xmm0
mov rax, qword [rsp + 0x120]
vmovss xmm0, dword [rsp + 0x74]
vaddss xmm0, xmm0, dword [rax + 4]
mov rax, qword [rsp + 0x130]
vmovss xmm1, dword [rax + 0xc]
call fcn.1400300f0
mov rax, qword [rsp + 0x120]
vsubss xmm0, xmm0, dword [rax + 4]
vmovss dword [rsp + 0x80], xmm0
vmovss xmm1, dword [rsp + 0x7c]
vmovss xmm0, dword [rsp + 0x80]
call fcn.140030080
vmovss dword [rsp + 0x74], xmm0
mov rax, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x70]
mov qword [rax], rcx
mov rax, qword [rsp + 0x110]
add rsp, 0x108
ret