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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xe8
mov rax, qword [0x140096780]
xor rax, rsp
mov qword [rsp + 0xd8], rax
cmp qword [rsp + 0xf0], 0
je 0x140016cb9
cmp qword [rsp + 0xf8], 0
jne 0x140016cd4
mov r8d, 0x2742
lea rdx, [0x140083f10]
lea rcx, str.img__desc
call fcn.140047fbc
xor eax, eax
mov rax, qword [rsp + 0xf0]
cmp qword [rax + 0x48], 0
jne 0x140016d10
mov rax, qword [rsp + 0xf0]
cmp qword [rax + 0x50], 0
jne 0x140016d10
mov rax, qword [rsp + 0xf0]
cmp qword [rax + 0x58], 0
jne 0x140016d10
mov rax, qword [rsp + 0xf0]
cmp qword [rax + 0x60], 0
je 0x140016d2b
mov r8d, 0x2743
lea rdx, [0x140083f90]
lea rcx, str._0__img__d3d11.tex2d____0__img__d3d11.tex3d____0__img__d3d11.res____0__img__d3d11.srv_
call fcn.140047fbc
xor eax, eax
mov rax, qword [rsp + 0xf8]
cmp qword [rax + 0x650], 0
je 0x140016d47
mov dword [rsp + 0x2c], 1
jmp 0x140016d4f
mov dword [rsp + 0x2c], 0
cmp dword [rsp + 0x2c], 0
jne 0x140016d60
mov dword [rsp + 0x30], 0
jmp 0x140016d68
mov dword [rsp + 0x30], 1
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x21], al
mov rax, qword [rsp + 0xf0]
cmp dword [rax + 0x38], 1
jle 0x140016d89
mov dword [rsp + 0x34], 1
jmp 0x140016d91
mov dword [rsp + 0x34], 0
cmp dword [rsp + 0x34], 0
jne 0x140016da2
mov dword [rsp + 0x38], 0
jmp 0x140016daa
mov dword [rsp + 0x38], 1
movzx eax, byte [rsp + 0x38]
mov byte [rsp + 0x20], al
mov rax, qword [rsp + 0xf0]
mov ecx, dword [rax + 0x34]
call fcn.1400155b0
mov rcx, qword [rsp + 0xf0]
mov dword [rcx + 0x40], eax
mov rax, qword [rsp + 0xf0]
cmp dword [rax + 0x40], 0
jne 0x140016dfe
mov r9d, 0x274a
xor r8d, r8d
mov edx, 1
mov ecx, 0x12
call fcn.140013ad0
mov eax, 3
jmp 0x1400175bf
mov qword [rsp + 0x48], 0
movzx eax, byte [rsp + 0x21]
test eax, eax
jne 0x140016e56
mov rax, qword [rsp + 0xf0]
cmp dword [rax + 0x30], 1
jne 0x140016e56
mov rax, qword [rsp + 0xf0]
movzx eax, byte [rax + 0x1c]
test eax, eax
jne 0x140016e56
mov rax, qword [rsp + 0xf8]
add rax, 0x28
mov rdx, rax
mov rcx, qword [rsp + 0xf0]
call fcn.140016a10
lea rax, [0x1400bb428]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xf0]
cmp dword [rax + 0x18], 3
je 0x1400172af
movzx eax, byte [rsp + 0x21]
test eax, eax
je 0x140016efb
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0xf8]
mov rcx, qword [rcx + 0x650]
mov qword [rax + 0x48], rcx
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x48]
mov rax, qword [rax]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x48]
call qword [rax + 8]
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0xf8]
mov rcx, qword [rcx + 0x658]
mov qword [rax + 0x60], rcx
mov rax, qword [rsp + 0xf0]
cmp qword [rax + 0x60], 0
je 0x140016ef6
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x60]
mov rax, qword [rax]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x60]
call qword [rax + 8]
jmp 0x14001724a
mov edx, 0x2c
lea rcx, [rsp + 0x80]
call fcn.1400130c0
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0x20]
mov dword [rsp + 0x80], eax
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0x24]
mov dword [rsp + 0x84], eax
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0x2c]
mov dword [rsp + 0x88], eax
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 2
je 0x140016f76
cmp dword [rsp + 0x3c], 4
je 0x140016f62
jmp 0x140016f83
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0x28]
mov dword [rsp + 0x8c], eax
jmp 0x140016f8e
mov dword [rsp + 0x8c], 6
jmp 0x140016f8e
mov dword [rsp + 0x8c], 1
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0x40]
mov dword [rsp + 0x90], eax
mov rax, qword [rsp + 0xf0]
movzx eax, byte [rax + 0x1c]
test eax, eax
je 0x140017011
mov dword [rsp + 0x9c], 0
mov rax, qword [rsp + 0xf0]
mov ecx, dword [rax + 0x34]
call fcn.140014070
movzx eax, al
test eax, eax
je 0x140016fdf
mov dword [rsp + 0xa0], 0x40
jmp 0x140016fea
mov dword [rsp + 0xa0], 0x20
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140017004
mov eax, dword [rsp + 0xa0]
or eax, 8
mov dword [rsp + 0xa0], eax
mov dword [rsp + 0xa4], 0
jmp 0x14001704a
mov rax, qword [rsp + 0xf0]
mov ecx, dword [rax + 0x30]
call fcn.1400154e0
mov dword [rsp + 0x9c], eax
mov dword [rsp + 0xa0], 8
mov rax, qword [rsp + 0xf0]
mov ecx, dword [rax + 0x30]
call fcn.140015550
mov dword [rsp + 0xa4], eax
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0x38]
mov dword [rsp + 0x94], eax
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x14001706f
mov dword [rsp + 0x40], 0xffffffff
jmp 0x140017077
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x98], eax
mov rax, qword [rsp + 0xf0]
cmp dword [rax + 0x18], 2
jne 0x14001709a
mov dword [rsp + 0x44], 4
jmp 0x1400170a2
mov dword [rsp + 0x44], 0
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0xa8], eax
mov rax, qword [rsp + 0xf0]
add rax, 0x48
mov r9, rax
mov r8, qword [rsp + 0x48]
lea rdx, [rsp + 0x80]
mov rcx, qword [0x1400bb380]
call fcn.140014ce0
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jl 0x1400170ef
mov rax, qword [rsp + 0xf0]
cmp qword [rax + 0x48], 0
jne 0x140017111
mov r9d, 0x2781
xor r8d, r8d
mov edx, 1
mov ecx, 0x13
call fcn.140013ad0
mov eax, 3
jmp 0x1400175bf
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001724a
mov edx, 0x18
lea rcx, [rsp + 0x50]
call fcn.1400130c0
mov rax, qword [rsp + 0xf0]
mov ecx, dword [rax + 0x34]
call fcn.1400158d0
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 1
je 0x140017167
cmp dword [rsp + 0x28], 2
je 0x140017180
cmp dword [rsp + 0x28], 4
je 0x140017199
jmp 0x1400171c1
mov dword [rsp + 0x54], 4
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0x2c]
mov dword [rsp + 0x5c], eax
jmp 0x1400171e2
mov dword [rsp + 0x54], 9
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0x2c]
mov dword [rsp + 0x5c], eax
jmp 0x1400171e2
mov dword [rsp + 0x54], 5
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0x2c]
mov dword [rsp + 0x5c], eax
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0x28]
mov dword [rsp + 0x64], eax
jmp 0x1400171e2
xor eax, eax
test eax, eax
jne 0x1400171e2
mov r8d, 0x279a
lea rdx, [0x1400840c0]
lea rcx, [0x14008411c]
call fcn.140047fbc
xor eax, eax
mov rax, qword [rsp + 0xf0]
add rax, 0x60
mov r9, rax
lea r8, [rsp + 0x50]
mov rax, qword [rsp + 0xf0]
mov rdx, qword [rax + 0x48]
mov rcx, qword [0x1400bb380]
call fcn.140014d30
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jl 0x140017228
mov rax, qword [rsp + 0xf0]
cmp qword [rax + 0x60], 0
jne 0x14001724a
mov r9d, 0x279e
xor r8d, r8d
mov edx, 1
mov ecx, 0x14
call fcn.140013ad0
mov eax, 3
jmp 0x1400175bf
mov rax, qword [rsp + 0xf0]
cmp qword [rax + 0x48], 0
jne 0x140017274
mov r8d, 0x27a3
lea rdx, [0x140084120]
lea rcx, str.img__d3d11.tex2d
call fcn.140047fbc
xor eax, eax
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x58], rcx
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x58]
mov rax, qword [rax]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x58]
call qword [rax + 8]
jmp 0x1400175ba
movzx eax, byte [rsp + 0x21]
test eax, eax
je 0x140017342
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0xf8]
mov rcx, qword [rcx + 0x650]
mov qword [rax + 0x50], rcx
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x50]
mov rax, qword [rax]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x50]
call qword [rax + 8]
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0xf8]
mov rcx, qword [rcx + 0x658]
mov qword [rax + 0x60], rcx
mov rax, qword [rsp + 0xf0]
cmp qword [rax + 0x60], 0
je 0x14001733d
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x60]
mov rax, qword [rax]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x60]
call qword [rax + 8]
jmp 0x14001755a
mov edx, 0x24
lea rcx, [rsp + 0xb0]
call fcn.1400130c0
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0x20]
mov dword [rsp + 0xb0], eax
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0x24]
mov dword [rsp + 0xb4], eax
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0x28]
mov dword [rsp + 0xb8], eax
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0x2c]
mov dword [rsp + 0xbc], eax
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0x40]
mov dword [rsp + 0xc0], eax
mov rax, qword [rsp + 0xf0]
movzx eax, byte [rax + 0x1c]
test eax, eax
je 0x1400173e1
mov dword [rsp + 0xc4], 0
mov dword [rsp + 0xc8], 0x20
mov dword [rsp + 0xcc], 0
jmp 0x14001741a
mov rax, qword [rsp + 0xf0]
mov ecx, dword [rax + 0x30]
call fcn.1400154e0
mov dword [rsp + 0xc4], eax
mov dword [rsp + 0xc8], 8
mov rax, qword [rsp + 0xf0]
mov ecx, dword [rax + 0x30]
call fcn.140015550
mov dword [rsp + 0xcc], eax
mov rax, qword [rsp + 0xf0]
cmp dword [rax + 0x40], 0
jne 0x14001744a
mov r9d, 0x27c2
xor r8d, r8d
mov edx, 1
mov ecx, 0x15
call fcn.140013ad0
mov eax, 3
jmp 0x1400175bf
mov rax, qword [rsp + 0xf0]
add rax, 0x50
mov r9, rax
mov r8, qword [rsp + 0x48]
lea rdx, [rsp + 0xb0]
mov rcx, qword [0x1400bb380]
call fcn.140014d80
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jl 0x14001748c
mov rax, qword [rsp + 0xf0]
cmp qword [rax + 0x50], 0
jne 0x1400174ae
mov r9d, 0x27c7
xor r8d, r8d
mov edx, 1
mov ecx, 0x16
call fcn.140013ad0
mov eax, 3
jmp 0x1400175bf
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001755a
mov edx, 0x18
lea rcx, [rsp + 0x68]
call fcn.1400130c0
mov rax, qword [rsp + 0xf0]
mov ecx, dword [rax + 0x34]
call fcn.1400158d0
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x6c], 8
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0x2c]
mov dword [rsp + 0x74], eax
mov rax, qword [rsp + 0xf0]
add rax, 0x60
mov r9, rax
lea r8, [rsp + 0x68]
mov rax, qword [rsp + 0xf0]
mov rdx, qword [rax + 0x50]
mov rcx, qword [0x1400bb380]
call fcn.140014d30
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jl 0x14001753b
mov rax, qword [rsp + 0xf0]
cmp qword [rax + 0x60], 0
jne 0x14001755a
mov r9d, 0x27d4
xor r8d, r8d
mov edx, 1
mov ecx, 0x17
call fcn.140013ad0
mov eax, 3
jmp 0x1400175bf
mov rax, qword [rsp + 0xf0]
cmp qword [rax + 0x50], 0
jne 0x140017584
mov r8d, 0x27d9
lea rdx, [0x1400841b0]
lea rcx, str.img__d3d11.tex3d
call fcn.140047fbc
xor eax, eax
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x50]
mov qword [rax + 0x58], rcx
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x58]
mov rax, qword [rax]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x58]
call qword [rax + 8]
mov eax, 2
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.1400403f0
add rsp, 0xe8
ret