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

Disassembly:
sub rsp, 0x118
mov rax, qword [0x140107200]
xor rax, rsp
mov qword [rsp + 0x108], rax
mov rax, qword [0x140132038]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
add rax, 8
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov byte [rax + 0xd3], 0
mov rax, qword [rsp + 0x50]
mov eax, dword [rax]
and eax, 2
test eax, eax
je 0x1400513e3
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 4]
and eax, 1
test eax, eax
je 0x1400513e3
mov byte [rsp + 0x3b], 1
jmp 0x1400513e8
mov byte [rsp + 0x3b], 0
movzx eax, byte [rsp + 0x3b]
mov byte [rsp + 0x38], al
mov dword [rsp + 0xe8], 0x26c
mov dword [rsp + 0xec], 0x26b
mov dword [rsp + 0xf0], 0x26d
mov dword [rsp + 0xf4], 0x26e
mov dword [rsp + 0xf8], 0x270
mov dword [rsp + 0xfc], 0x26f
mov dword [rsp + 0x100], 0x271
mov dword [rsp + 0x104], 0x272
movzx eax, byte [rsp + 0x38]
test eax, eax
je 0x1400514e7
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x98]
add rax, 0x20
mov qword [rsp + 0xa8], rax
jmp 0x1400514a0
mov rax, qword [rsp + 0x80]
add rax, 4
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0xa8]
cmp qword [rsp + 0x80], rax
je 0x1400514e7
mov rax, qword [rsp + 0x80]
mov eax, dword [rax]
mov dword [rsp + 0x94], eax
mov ecx, dword [rsp + 0x94]
call fcn.140047a30
movzx eax, al
test eax, eax
je 0x1400514e5
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x490c], 3
jmp 0x14005148c
mov rax, qword [rsp + 0x50]
mov eax, dword [rax]
and eax, 1
test eax, eax
je 0x1400514fc
mov byte [rsp + 0x3c], 1
jmp 0x140051501
mov byte [rsp + 0x3c], 0
movzx eax, byte [rsp + 0x3c]
mov byte [rsp + 0x39], al
mov dword [rsp + 0xc8], 0x20c
mov dword [rsp + 0xcc], 0x20d
mov dword [rsp + 0xd0], 0x20e
mov dword [rsp + 0xd4], 0x202
mov dword [rsp + 0xd8], 0x201
mov dword [rsp + 0xdc], 0x203
mov dword [rsp + 0xe0], 0x204
movzx eax, byte [rsp + 0x39]
test eax, eax
je 0x1400515f5
lea rax, [rsp + 0xc8]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0xa0]
add rax, 0x1c
mov qword [rsp + 0xb0], rax
jmp 0x1400515ae
mov rax, qword [rsp + 0x88]
add rax, 4
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0xb0]
cmp qword [rsp + 0x88], rax
je 0x1400515f5
mov rax, qword [rsp + 0x88]
mov eax, dword [rax]
mov dword [rsp + 0x90], eax
mov ecx, dword [rsp + 0x90]
call fcn.140047a30
movzx eax, al
test eax, eax
je 0x1400515f3
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x490c], 2
jmp 0x14005159a
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x48f8], 0
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x4928], 0
je 0x140051617
call fcn.140051f90
mov rax, qword [rsp + 0x30]
mov byte [rax + 0x4919], 0
mov rax, qword [rsp + 0x30]
mov byte [rax + 0x491a], 0
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x4928], 0
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax + 0x4950]
test eax, eax
je 0x140051653
call fcn.140052f10
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x4994], 0
mov rax, qword [rsp + 0x30]
mov byte [rax + 0x4951], 0
mov rax, qword [rsp + 0x30]
mov byte [rax + 0x4950], 0
mov byte [rsp + 0x3a], 0
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax + 0x4915]
test eax, eax
je 0x1400516d3
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax + 0x4914]
test eax, eax
je 0x1400516d3
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax + 0x4916]
test eax, eax
jne 0x1400516d3
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax + 0x4917]
test eax, eax
je 0x1400516d3
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x48d8], 0
je 0x1400516d3
mov byte [rsp + 0x3a], 1
mov rax, qword [rsp + 0x30]
mov byte [rax + 0x4915], 0
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x48d8], 0
je 0x1400516ff
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x48d8]
call fcn.140050b10
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x48d8], 0
je 0x140051749
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x48d8]
cmp qword [rax + 0x398], 0
je 0x140051749
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x4910], 0
jne 0x140051749
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x48d8]
mov qword [rax + 0x398], 0
call fcn.1400541a0
movzx eax, byte [rsp + 0x39]
test eax, eax
jne 0x140051760
movzx eax, byte [rsp + 0x38]
test eax, eax
je 0x140051791
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x48d8], 0
je 0x140051791
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x48d8]
mov eax, dword [rax + 0x14]
and eax, 0x40000
test eax, eax
jne 0x140051791
mov dword [rsp + 0x74], 1
jmp 0x140051799
mov dword [rsp + 0x74], 0
mov rax, qword [rsp + 0x50]
movzx ecx, byte [rsp + 0x74]
mov byte [rax + 0xd5], cl
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0xd5]
test eax, eax
je 0x1400517d7
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x48e0], 0
je 0x1400517d7
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax + 0x4916]
test eax, eax
je 0x1400517f0
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x4a60], 0
jne 0x1400517f0
mov dword [rsp + 0x78], 0
jmp 0x1400517f8
mov dword [rsp + 0x78], 1
mov rax, qword [rsp + 0x50]
movzx ecx, byte [rsp + 0x78]
mov byte [rax + 0xd6], cl
call fcn.140053520
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x48f0], 0
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x48ec], 0
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x48e8], 0
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x48f4], 0
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x48e0], 0
je 0x140051b1b
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax + 0x4916]
test eax, eax
jne 0x140051b1b
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x4a60], 0
jne 0x140051b1b
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x48d8], 0
je 0x140051b1b
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x48d8]
mov eax, dword [rax + 0x14]
and eax, 0x40000
test eax, eax
jne 0x140051b1b
movzx eax, byte [rsp + 0x39]
test eax, eax
je 0x1400518cb
mov ecx, 0x20c
call fcn.140047a30
movzx eax, al
test eax, eax
jne 0x1400518ec
movzx eax, byte [rsp + 0x38]
test eax, eax
je 0x1400518e5
mov ecx, 0x26e
call fcn.140047a30
movzx eax, al
test eax, eax
jne 0x1400518ec
mov byte [rsp + 0x3d], 0
jmp 0x1400518f1
mov byte [rsp + 0x3d], 1
movzx eax, byte [rsp + 0x3d]
mov byte [rsp + 0x41], al
movzx eax, byte [rsp + 0x41]
test eax, eax
je 0x140051942
movzx eax, byte [rsp + 0x39]
test eax, eax
je 0x14005191f
xor edx, edx
mov ecx, 0x20c
call fcn.140047aa0
movzx eax, al
test eax, eax
jne 0x14005193b
movzx eax, byte [rsp + 0x38]
test eax, eax
je 0x140051942
xor edx, edx
mov ecx, 0x26e
call fcn.140047aa0
movzx eax, al
test eax, eax
je 0x140051942
mov byte [rsp + 0x3e], 1
jmp 0x140051947
mov byte [rsp + 0x3e], 0
movzx eax, byte [rsp + 0x3e]
mov byte [rsp + 0x43], al
movzx eax, byte [rsp + 0x39]
test eax, eax
je 0x14005196a
mov ecx, 0x20d
call fcn.140047a30
movzx eax, al
test eax, eax
jne 0x14005198b
movzx eax, byte [rsp + 0x38]
test eax, eax
je 0x140051984
mov ecx, 0x26d
call fcn.140047a30
movzx eax, al
test eax, eax
jne 0x14005198b
mov byte [rsp + 0x3f], 0
jmp 0x140051990
mov byte [rsp + 0x3f], 1
movzx eax, byte [rsp + 0x3f]
mov byte [rsp + 0x42], al
movzx eax, byte [rsp + 0x42]
test eax, eax
je 0x1400519e1
movzx eax, byte [rsp + 0x39]
test eax, eax
je 0x1400519be
xor edx, edx
mov ecx, 0x20d
call fcn.140047aa0
movzx eax, al
test eax, eax
jne 0x1400519da
movzx eax, byte [rsp + 0x38]
test eax, eax
je 0x1400519e1
xor edx, edx
mov ecx, 0x26d
call fcn.140047aa0
movzx eax, al
test eax, eax
je 0x1400519e1
mov byte [rsp + 0x40], 1
jmp 0x1400519e6
mov byte [rsp + 0x40], 0
movzx eax, byte [rsp + 0x40]
mov byte [rsp + 0x44], al
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x3f58], 0
jne 0x140051a2b
movzx eax, byte [rsp + 0x43]
test eax, eax
je 0x140051a2b
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 0x48e0]
mov dword [rax + 0x48e8], ecx
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x48f4], 2
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x3f58], 0
je 0x140051a51
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 0x48e0]
cmp dword [rax + 0x3f58], ecx
jne 0x140051a7f
movzx eax, byte [rsp + 0x44]
test eax, eax
je 0x140051a7f
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 0x48e0]
mov dword [rax + 0x48e8], ecx
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x48f4], 1
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x3f58], 0
je 0x140051aa5
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 0x48e0]
cmp dword [rax + 0x3f58], ecx
jne 0x140051acd
movzx eax, byte [rsp + 0x41]
test eax, eax
jne 0x140051ab7
movzx eax, byte [rsp + 0x42]
test eax, eax
je 0x140051acd
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 0x48e0]
mov dword [rax + 0x48ec], ecx
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x3f58], 0
je 0x140051af3
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 0x48e0]
cmp dword [rax + 0x3f58], ecx
jne 0x140051b1b
movzx eax, byte [rsp + 0x43]
test eax, eax
jne 0x140051b05
movzx eax, byte [rsp + 0x44]
test eax, eax
je 0x140051b1b
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 0x48e0]
mov dword [rax + 0x48f0], ecx
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x48d8], 0
je 0x140051b4e
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x48d8]
mov eax, dword [rax + 0x14]
and eax, 0x40000
test eax, eax
je 0x140051b4e
mov rax, qword [rsp + 0x30]
mov byte [rax + 0x4916], 1
mov rax, qword [rsp + 0x30]
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x4904], 0
je 0x140051bb9
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 0x4904]
mov dword [rax + 0x48f0], ecx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 0x48f0]
mov dword [rax + 0x48ec], ecx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 0x48ec]
mov dword [rax + 0x48e8], ecx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 0x4908]
mov dword [rax + 0x48f4], ecx
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x4904], 0
call fcn.140052250
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x4960], 0xffffffff
jne 0x140051be0
call fcn.140052d00
call fcn.140050d20
mov rax, qword [rsp + 0x30]
mov byte [rax + 0x4914], 0
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x48d8], 0
je 0x140051ec1
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x48d8]
mov eax, dword [rax + 0x14]
and eax, 0x40000
test eax, eax
jne 0x140051ec1
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x4a60], 0
jne 0x140051ec1
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x48d8]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x58]
call fcn.1400305c0
vmulss xmm0, xmm0, dword [0x1400fcd60]
mov rax, qword [rsp + 0x50]
vmulss xmm0, xmm0, dword [rax + 0x10]
vaddss xmm0, xmm0, dword [0x1400fca84]
vcvttss2si eax, xmm0
vcvtsi2ss xmm0, xmm0, eax
vmovss dword [rsp + 0x60], xmm0
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x4960]
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x58]
movsx eax, word [rax + 0x15c]
test eax, eax
jne 0x140051d7e
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x162]
test eax, eax
je 0x140051d7e
cmp dword [rsp + 0x48], 0xffffffff
je 0x140051d7e
cmp dword [rsp + 0x48], 0
je 0x140051cc6
cmp dword [rsp + 0x48], 1
jne 0x140051d1b
cmp dword [rsp + 0x48], 0
jne 0x140051cdd
vmovss xmm0, dword [0x1400fce54]
vmovss dword [rsp + 0x7c], xmm0
jmp 0x140051ceb
vmovss xmm0, dword [0x1400fcbc4]
vmovss dword [rsp + 0x7c], xmm0
vmovss xmm0, dword [rsp + 0x7c]
vmulss xmm0, xmm0, dword [rsp + 0x60]
mov rax, qword [rsp + 0x58]
vmovss xmm1, dword [rax + 0x84]
vaddss xmm0, xmm1, xmm0
call fcn.14002d970
vmovups xmm1, xmm0
mov rcx, qword [rsp + 0x58]
call fcn.14004d780
cmp dword [rsp + 0x48], 2
je 0x140051d29
cmp dword [rsp + 0x48], 3
jne 0x140051d7e
cmp dword [rsp + 0x48], 2
jne 0x140051d40
vmovss xmm0, dword [0x1400fce54]
vmovss dword [rsp + 0x64], xmm0
jmp 0x140051d4e
vmovss xmm0, dword [0x1400fcbc4]
vmovss dword [rsp + 0x64], xmm0
vmovss xmm0, dword [rsp + 0x64]
vmulss xmm0, xmm0, dword [rsp + 0x60]
mov rax, qword [rsp + 0x58]
vmovss xmm1, dword [rax + 0x88]
vaddss xmm0, xmm1, xmm0
call fcn.14002d970
vmovups xmm1, xmm0
mov rcx, qword [rsp + 0x58]
call fcn.14004d7d0
movzx eax, byte [rsp + 0x38]
test eax, eax
je 0x140051ec1
mov dword [rsp + 0x20], 0x27c
mov r9d, 0x27b
mov r8d, 0x27a
mov edx, 0x279
lea rcx, [rsp + 0xc0]
call fcn.140047320
mov ecx, 0x273
call fcn.140047a30
movzx eax, al
test eax, eax
je 0x140051dd2
vmovss xmm0, dword [0x1400fc994]
vmovss dword [rsp + 0x6c], xmm0
jmp 0x140051e0d
mov ecx, 0x274
call fcn.140047a30
movzx eax, al
test eax, eax
je 0x140051df3
vmovss xmm0, dword [0x1400fcce8]
vmovss dword [rsp + 0x68], xmm0
jmp 0x140051e01
vmovss xmm0, dword [0x1400fcbc4]
vmovss dword [rsp + 0x68], xmm0
vmovss xmm0, dword [rsp + 0x68]
vmovss dword [rsp + 0x6c], xmm0
vmovss xmm0, dword [rsp + 0x6c]
vmovss dword [rsp + 0x70], xmm0
vmovss xmm0, dword [rsp + 0xc0]
vucomiss xmm0, dword [0x1400fc92c]
je 0x140051e75
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0xb4]
test eax, eax
je 0x140051e75
vmovss xmm0, dword [rsp + 0xc0]
vmulss xmm0, xmm0, dword [rsp + 0x60]
vmulss xmm0, xmm0, dword [rsp + 0x70]
mov rax, qword [rsp + 0x58]
vmovss xmm1, dword [rax + 0x84]
vaddss xmm0, xmm1, xmm0
call fcn.14002d970
vmovups xmm1, xmm0
mov rcx, qword [rsp + 0x58]
call fcn.14004d780
vmovss xmm0, dword [rsp + 0xc4]
vucomiss xmm0, dword [0x1400fc92c]
je 0x140051ec1
vmovss xmm0, dword [rsp + 0xc4]
vmulss xmm0, xmm0, dword [rsp + 0x60]
vmulss xmm0, xmm0, dword [rsp + 0x70]
mov rax, qword [rsp + 0x58]
vmovss xmm1, dword [rax + 0x88]
vaddss xmm0, xmm1, xmm0
call fcn.14002d970
vmovups xmm1, xmm0
mov rcx, qword [rsp + 0x58]
call fcn.14004d7d0
movzx eax, byte [rsp + 0x39]
test eax, eax
jne 0x140051ef4
movzx eax, byte [rsp + 0x38]
test eax, eax
jne 0x140051ef4
mov rax, qword [rsp + 0x30]
mov byte [rax + 0x4916], 1
mov byte [rsp + 0x3a], 0
mov rax, qword [rsp + 0x30]
movzx ecx, byte [rsp + 0x3a]
mov byte [rax + 0x4917], cl
movzx eax, byte [rsp + 0x3a]
test eax, eax
je 0x140051f5a
mov rax, qword [rsp + 0x50]
mov eax, dword [rax]
and eax, 4
test eax, eax
je 0x140051f5a
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 4]
and eax, 4
test eax, eax
je 0x140051f5a
lea rcx, [rsp + 0xb8]
call fcn.140050f30
mov rax, qword [rax]
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 0x36e8], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x36e8]
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 0xe00], rax
mov rax, qword [rsp + 0x50]
mov byte [rax + 0xd3], 1
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x498c], 0
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.1400cfc20
add rsp, 0x118
ret