Function at 0x180019780
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x800
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rsp + 0x7f0], rax
mov r15, rdx
mov rbx, rcx
lea rcx, str.d3d9.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbx + 0x18], rax
test rax, rax
je 0x180019ca3
mov qword [rbx + 0x88], r15
lea rdx, [rsp + 0x50]
mov rcx, r15
call qword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [rsp + 0x58]
sub eax, dword [rsp + 0x50]
mov dword [rbx + 0x7c], eax
mov eax, dword [rsp + 0x5c]
sub eax, dword [rsp + 0x54]
mov dword [rbx + 0x80], eax
lea rdx, str.Direct3DCreate9
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180019ca3
mov ecx, 0x20
call rax
cmp qword [rbx + 0x20], rax
je 0x180019861
mov qword [rsp + 0x40], rax
test rax, rax
je 0x18001983f
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 8]
nop
mov rcx, qword [rsp + 0x40]
mov rax, qword [rbx + 0x20]
mov qword [rsp + 0x40], rax
mov qword [rbx + 0x20], rcx
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180019861
mov rax, qword [rcx]
call qword [rax + 0x10]
cmp qword [rbx + 0x20], 0
jne 0x180019872
mov eax, 0x80004005
jmp 0x180019ca8
mov rcx, qword [rbx + 0x20]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, qword [rbx + 0x20]
mov rax, qword [rcx]
lea r9, [rsp + 0x1a0]
xor r8d, r8d
xor edx, edx
call qword [rax + 0x28]
test eax, eax
js 0x180019912
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0x5f0]
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [rsp + 0x5c4]
mov eax, ecx
shr rax, 0x10
movzx r8d, ax
movzx edx, cx
mov eax, dword [rsp + 0x5c0]
mov ecx, eax
shr ecx, 0x10
movzx eax, ax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], r8d
lea r9, [rsp + 0x1a0]
lea r8, [rsp + 0x3a0]
lea rdx, str.Graphics_Adapter:__s__s__d._d._d._d_n
lea rcx, [rsp + 0x5f0]
call fcn.1800194f0
lea rcx, [rsp + 0x5f0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rbx + 0x20]
mov rax, qword [rcx]
lea r8, [rsp + 0x60]
xor edx, edx
call qword [rax + 0x40]
test eax, eax
js 0x180019ca3
lea r12, [rbx + 0x30]
xor r13d, r13d
mov qword [rbx + 0x3c], r13
mov dword [rbx + 0x44], r13d
mov qword [rbx + 0x48], 1
mov qword [rbx + 0x5c], r13
mov qword [rbx + 0x64], r13
mov dword [rbx + 0x6c], r13d
mov eax, dword [rsp + 0x6c]
mov dword [rbx + 0x38], eax
mov qword [rbx + 0x50], r15
mov dword [rbx + 0x58], 1
mov eax, dword [rsp + 0x60]
add eax, 6
mov dword [r12], eax
mov eax, dword [rsp + 0x64]
mov dword [rbx + 0x34], eax
mov rcx, qword [rbx + 0x20]
mov rax, qword [rcx]
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0x16
xor edx, edx
lea r9d, [r13 + 0x16]
lea r8d, [r13 + 1]
call qword [rax + 0x48]
test eax, eax
je 0x180019a79
mov rcx, qword [rbx + 0x20]
mov rax, qword [rcx]
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0x18
xor edx, edx
lea r9d, [r13 + 0x18]
lea r8d, [r13 + 1]
call qword [rax + 0x48]
test eax, eax
je 0x180019a72
mov rcx, qword [rbx + 0x20]
mov rax, qword [rcx]
mov dword [rsp + 0x28], 1
mov edi, 0x17
mov dword [rsp + 0x20], edi
mov r9d, edi
xor edx, edx
lea r8d, [r13 + 1]
call qword [rax + 0x48]
test eax, eax
je 0x180019a7e
mov rcx, qword [rbx + 0x20]
mov rax, qword [rcx]
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0x16
xor edx, edx
lea r9d, [r13 + 0x16]
lea r8d, [r13 + 2]
call qword [rax + 0x48]
test eax, eax
je 0x180019ca3
mov rcx, qword [rbx + 0x20]
mov rax, qword [rcx]
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0x18
xor edx, edx
lea r9d, [r13 + 0x18]
lea r8d, [r13 + 2]
call qword [rax + 0x48]
test eax, eax
je 0x180019ca3
mov rcx, qword [rbx + 0x20]
mov rax, qword [rcx]
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], edi
mov r9d, edi
xor edx, edx
lea r8d, [r13 + 2]
call qword [rax + 0x48]
jmp 0x180019ca3
mov edi, 0x18
jmp 0x180019a7e
mov edi, 0x16
mov rcx, qword [rbx + 0x20]
mov rax, qword [rcx]
lea r9, [rsp + 0x70]
xor edx, edx
lea r8d, [rdx + 1]
call qword [rax + 0x70]
test eax, eax
js 0x180019ca3
mov esi, dword [rsp + 0x8c]
bt esi, 0x10
jae 0x180019ab7
and esi, 0x100000
bts esi, 0x16
shr esi, 0x10
jmp 0x180019abc
mov esi, 0x20
mov rcx, qword [rbx + 0x20]
mov rax, qword [rcx]
mov r14d, 0x47
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 2
mov r9d, edi
xor edx, edx
lea r8d, [r14 - 0x46]
call qword [rax + 0x50]
test eax, eax
je 0x180019b5c
mov rcx, qword [rbx + 0x20]
mov rax, qword [rcx]
mov r14d, 0x4d
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 2
mov r9d, edi
xor edx, edx
lea r8d, [r14 - 0x4c]
call qword [rax + 0x50]
test eax, eax
je 0x180019b5c
mov rcx, qword [rbx + 0x20]
mov r10, qword [rcx]
mov r14d, 0x50
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 2
mov r9d, edi
xor edx, edx
lea r8d, [r14 - 0x4f]
call qword [r10 + 0x50]
test eax, eax
je 0x180019b5c
lea eax, [r14 - 0x4f]
jmp 0x180019ca8
mov dword [rbx + 0x48], 1
mov dword [rbx + 0x5c], 1
mov dword [rbx + 0x60], r14d
mov dword [rbx + 0x6c], 1
mov dword [rbx + 0x64], 2
lea rdi, [rbx + 0x28]
cmp qword [rdi], r13
je 0x180019ba0
mov qword [rsp + 0x40], r13
mov rcx, qword [rdi]
mov qword [rsp + 0x40], rcx
mov qword [rdi], r13
test rcx, rcx
je 0x180019ba0
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbx + 0x20]
mov rax, qword [rcx]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], esi
mov r9, r15
xor edx, edx
lea r8d, [rdx + 1]
call qword [rax + 0x80]
mov esi, eax
test eax, eax
jns 0x180019c65
mov qword [rbx + 0x48], 1
mov qword [rbx + 0x58], 1
mov dword [r12], r13d
mov qword [rbx + 0x34], r13
mov qword [rbx + 0x3c], 1
mov dword [rbx + 0x44], r13d
mov qword [rbx + 0x50], r13
mov dword [rbx + 0x60], r13d
mov qword [rbx + 0x64], 2
mov dword [rbx + 0x6c], 0x80000000
mov rcx, qword [rbx + 0x20]
mov rax, qword [rcx]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x20
mov r9, r15
xor edx, edx
lea r8d, [rdx + 1]
call qword [rax + 0x80]
mov esi, eax
test eax, eax
jns 0x180019c65
mov rcx, qword [rbx + 0x20]
mov rax, qword [rcx]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x20
mov r9, r15
xor edx, edx
lea r8d, [rdx + 2]
call qword [rax + 0x80]
mov esi, eax
test eax, eax
js 0x180019ca3
mov rcx, qword [rdi]
test rcx, rcx
je 0x180019ca3
mov edx, dword [r12]
test edx, edx
je 0x180019c85
mov eax, dword [rbx + 0x34]
test eax, eax
je 0x180019c85
mov dword [rbx + 0x7c], edx
mov dword [rbx + 0x80], eax
mov rax, qword [rcx]
mov edx, 0x152
call qword [rax + 0x2c8]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + VarUI4FromDisp]
mov eax, esi
jmp 0x180019ca8
mov eax, 0x80004005
mov rcx, qword [rsp + 0x7f0]
xor rcx, rsp
call fcn.1803868f0
lea r11, [rsp + 0x800]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret