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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
cmp qword [rsp + 0xc0], 0
je 0x14001b597
cmp qword [rsp + 0xc8], 0
jne 0x14001b5b2
mov r8d, 0x2b1a
lea rdx, [0x140087c70]
lea rcx, [0x140087cd0]
call fcn.140047fbc
xor eax, eax
cmp qword [0x1400bb388], 0
jne 0x14001b5d7
mov r8d, 0x2b1b
lea rdx, [0x140087cf0]
lea rcx, str._sg.d3d11.ctx
call fcn.140047fbc
xor eax, eax
mov rax, qword [rsp + 0xc0]
cmp qword [rax + 0x58], 0
jne 0x14001b601
mov r8d, 0x2b1c
lea rdx, [0x140087d70]
lea rcx, str.img__d3d11.res
call fcn.140047fbc
xor eax, eax
mov rax, qword [rsp + 0xc0]
cmp dword [rax + 0x18], 2
jne 0x14001b619
mov dword [rsp + 0x48], 6
jmp 0x14001b621
mov dword [rsp + 0x48], 1
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x54], eax
mov rax, qword [rsp + 0xc0]
cmp dword [rax + 0x18], 4
jne 0x14001b648
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x28]
mov dword [rsp + 0x4c], eax
jmp 0x14001b650
mov dword [rsp + 0x4c], 1
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x38], 0
jmp 0x14001b674
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x54]
cmp dword [rsp + 0x38], eax
jge 0x14001b967
mov dword [rsp + 0x3c], 0
jmp 0x14001b696
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x3c], eax
jge 0x14001b962
mov dword [rsp + 0x30], 0
jmp 0x14001b6c2
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x2c]
cmp dword [rsp + 0x30], eax
jge 0x14001b95d
cmp dword [rsp + 0x34], 0x800
jb 0x14001b6fc
mov r8d, 0x2b25
lea rdx, [0x140087df0]
lea rcx, str.subres_index____SG_MAX_MIPMAPS__SG_MAX_TEXTUREARRAY_LAYERS_
call fcn.140047fbc
xor eax, eax
mov edx, dword [rsp + 0x30]
mov rax, qword [rsp + 0xc0]
mov ecx, dword [rax + 0x20]
call fcn.140014590
mov dword [rsp + 0x58], eax
mov edx, dword [rsp + 0x30]
mov rax, qword [rsp + 0xc0]
mov ecx, dword [rax + 0x24]
call fcn.140014590
mov dword [rsp + 0x60], eax
mov r8d, 1
mov edx, dword [rsp + 0x58]
mov rax, qword [rsp + 0xc0]
mov ecx, dword [rax + 0x34]
call fcn.1400142c0
mov dword [rsp + 0x40], eax
movsxd rax, dword [rsp + 0x38]
imul rax, rax, 0x100
mov rcx, qword [rsp + 0xc8]
add rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x30]
imul rcx, rcx, 0x10
add rax, rcx
mov qword [rsp + 0x78], rax
movsxd rax, dword [rsp + 0x50]
mov qword [rsp + 0xa0], rax
xor edx, edx
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx + 8]
mov rcx, qword [rsp + 0xa0]
div rcx
mov qword [rsp + 0x80], rax
movsxd rax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x80]
imul rcx, rax
mov rax, rcx
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0x78]
mov rax, qword [rax]
add rax, qword [rsp + 0xa8]
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9d, 4
mov r8d, dword [rsp + 0x34]
mov rax, qword [rsp + 0xc0]
mov rdx, qword [rax + 0x58]
mov rcx, qword [0x1400bb388]
call fcn.140015410
mov dword [rsp + 0x5c], eax
movzx eax, byte [0x1400bb0dc]
test eax, eax
je 0x14001b829
mov eax, dword [0x1400bb1a8]
inc eax
mov dword [0x1400bb1a8], eax
cmp dword [rsp + 0x5c], 0
jl 0x14001b940
mov eax, dword [rsp + 0x98]
cmp dword [rsp + 0x40], eax
jne 0x14001b863
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x90]
call fcn.14005da50
jmp 0x14001b908
mov eax, dword [rsp + 0x98]
cmp dword [rsp + 0x40], eax
jl 0x14001b88b
mov r8d, 0x2b34
lea rdx, [0x140087ed0]
lea rcx, str.src_pitch____int_d3d11_msr.RowPitch
call fcn.140047fbc
xor eax, eax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x44], 0
jmp 0x14001b8b9
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x44], eax
jge 0x14001b908
movsxd rax, dword [rsp + 0x40]
mov r8, rax
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
call fcn.14005da50
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x98]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
jmp 0x14001b8af
mov r8d, dword [rsp + 0x34]
mov rax, qword [rsp + 0xc0]
mov rdx, qword [rax + 0x58]
mov rcx, qword [0x1400bb388]
call fcn.140015470
movzx eax, byte [0x1400bb0dc]
test eax, eax
je 0x14001b93e
mov eax, dword [0x1400bb1ac]
inc eax
mov dword [0x1400bb1ac], eax
jmp 0x14001b958
mov r9d, 0x2b40
xor r8d, r8d
mov edx, 1
mov ecx, 0x26
call fcn.140013ad0
jmp 0x14001b6ae
jmp 0x14001b68c
jmp 0x14001b66a
add rsp, 0xb8
ret