Function at 0x180002d50
Capabilities:
Link many functions at runtime

Disassembly:
mov r11, rsp
push rbx
push rdi
sub rsp, 0x168
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rax, qword [rcx]
mov qword [r11 + 0x18], rbp
xor edi, edi
mov rbp, rdx
lea r8, [rsp + 0x20]
lea rdx, [0x18001abb0]
mov qword [r11 - 0x18], rsi
mov rbx, rcx
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
call qword [rax + 0x38]
test eax, eax
js 0x180002dc8
mov rcx, qword [rsp + 0x20]
mov rax, qword [rcx]
call qword [rax + 0x128]
mov rcx, qword [rsp + 0x20]
mov edi, 0xb
mov esi, eax
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x180002efb
mov rax, qword [rbx]
lea r8, [rsp + 0x28]
lea rdx, [0x18001aba0]
mov rcx, rbx
call qword [rax + 0x38]
test eax, eax
js 0x180002e06
mov rcx, qword [rsp + 0x28]
mov rax, qword [rcx]
call qword [rax + 0x320]
mov rcx, qword [rsp + 0x28]
mov edi, 0x65
mov esi, eax
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x180002efb
mov rax, qword [rbx]
lea r8, [rsp + 0x30]
lea rdx, [0x18001ab90]
mov rcx, rbx
call qword [rax + 0x38]
test eax, eax
js 0x180002ef7
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [rbx]
lea rdx, [0x18001ab90]
mov r8, rbp
mov rcx, rbx
call qword [rax + 0x38]
mov edi, 0xa
mov rsi, qword [rsp + 0x160]
mov rbp, qword [rsp + 0x190]
mov ecx, edi
sub ecx, 0xa
je 0x180002fdc
dec ecx
je 0x180002f5a
cmp ecx, 0x5a
jne 0x180003058
cmp qword [0x18001fe38], 0
je 0x180002e8a
cmp qword [0x18001fe30], 0
jne 0x180003058
mov r8, qword [0x18001fea8]
lea rcx, [rsp + 0x40]
mov edx, 0x104
call fcn.180004630
lea r8, str.CED3D10Hook.dll
lea rcx, [rsp + 0x40]
mov edx, 0x104
call fcn.180004694
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.D3D10Hook_SwapChain_Present_imp
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3D10Hook_SwapChain_ResizeBuffers_imp
mov rcx, rbx
mov qword [0x18001fe38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18001fe30], rax
jmp 0x180003058
mov esi, dword [rsp + 0x20]
cmp esi, 0xa000
je 0x180002e2e
cmp esi, 0xa100
je 0x180002f3d
lea eax, [rsi - 0xb000]
test eax, 0xfffffeff
jne 0x180002e46
mov rax, qword [rbx]
lea rdx, [0x18001abb0]
mov r8, rbp
mov rcx, rbx
call qword [rax + 0x38]
mov edi, 0xb
jmp 0x180002e46
mov rax, qword [rbx]
lea rdx, [0x18001aba0]
mov r8, rbp
mov rcx, rbx
call qword [rax + 0x38]
mov edi, 0x65
jmp 0x180002e46
cmp qword [0x18001fe58], 0
je 0x180002f72
cmp qword [0x18001fe50], 0
jne 0x180003058
mov r8, qword [0x18001fea8]
lea rcx, [rsp + 0x40]
mov edx, 0x104
call fcn.180004630
lea r8, str.CED3D11Hook.dll
lea rcx, [rsp + 0x40]
mov edx, 0x104
call fcn.180004694
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.D3D11Hook_SwapChain_Present_imp
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3D11Hook_SwapChain_ResizeBuffers_imp
mov rcx, rbx
mov qword [0x18001fe58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18001fe50], rax
jmp 0x180003058
cmp qword [0x18001fe48], 0
je 0x180002ff0
cmp qword [0x18001fe40], 0
jne 0x180003058
mov r8, qword [0x18001fea8]
lea rcx, [rsp + 0x40]
mov edx, 0x104
call fcn.180004630
lea r8, str.CED3D10Hook.dll
lea rcx, [rsp + 0x40]
mov edx, 0x104
call fcn.180004694
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.D3D10Hook_SwapChain_Present_imp
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3D10Hook_SwapChain_ResizeBuffers_imp
mov rcx, rbx
mov qword [0x18001fe48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18001fe40], rax
mov eax, edi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1800044a0
add rsp, 0x168
pop rdi
pop rbx
ret