Function at 0x1800a1130
Capabilities:
Enumerate gui resources
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xe0
xor r14d, r14d
mov rdi, qword [0x1802242f8]
mov rsi, qword [0x180224300]
cmp rdi, rsi
je 0x1800a124c
lea r15, str.CSignature::Initialize___failed_to_initialize:_n___n___n___n
movabs r12, 0xb000000000000000
movabs r13, 0xb000000000000008
movabs r14, 0xb000000000000010
mov rbx, qword [rdi]
test rbx, rbx
je 0x1800a123c
mov r8, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
call fcn.18017db80
mov qword [rbx], rax
test rax, rax
jne 0x1800a1235
mov qword [rbp - 0x59], r15
mov qword [rbp - 0x51], 0x3e
mov rax, qword [rbx + 0x20]
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x49], r12
mov rax, qword [rbx + 8]
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x41], r13
mov rax, qword [rbx + 0x10]
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x39], r14
mov qword [rbp - 0x69], 3
lea rax, [rbp - 0x49]
mov qword [rbp - 0x61], rax
movaps xmm0, xmmword [rbp - 0x69]
movdqa xmmword [rbp - 0x79], xmm0
movaps xmm1, xmmword [rbp - 0x59]
movdqa xmmword [rbp - 9], xmm1
lea r8, [rbp - 0x79]
lea rdx, [rbp - 9]
lea rcx, [rbp + 7]
call fcn.1800a5f60
lea rcx, [rbp + 7]
cmp qword [rbp + 0x1f], 0xf
cmova rcx, qword [rbp + 7]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [rbp + 7]
call fcn.18008ede0
movsxd rax, dword [rbx + 0x18]
add qword [rbx], rax
add rdi, 8
cmp rdi, rsi
jne 0x1800a1190
xor r14d, r14d
call fcn.18017cf10
mov rcx, qword [0x18022aa20]
mov rax, qword [rcx]
call qword [rax + 0x88]
mov qword [rbp + 0x67], rax
test rax, rax
je 0x1800a12a9
nop word [rax + rax]
mov ebx, dword [rax + 0x28]
lea r8, [rbp + 0x67]
lea rdx, [rbp - 9]
lea rcx, [0x180224350]
call fcn.18017c500
mov rcx, qword [rax]
mov dword [rcx + 0x18], ebx
mov rax, qword [rbp + 0x67]
and dword [rax + 0x28], 0xffbfbfed
mov rax, qword [rbp + 0x67]
mov rax, qword [rax + 8]
mov qword [rbp + 0x67], rax
test rax, rax
jne 0x1800a1270
lea rcx, str.dxvk_d3d9.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x1800a12e3
mov r9d, 0x10
lea r8, str.Error
lea rdx, str.You_are_running_with_graphics_options_that_Amalgam_does_not_support._nPlease_remove__vulkan_from_your_launch_options_and_reinject.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov byte [0x18022a9f8], 1
jmp 0x1800a1611
mov rcx, qword [0x18022aa20]
mov rax, qword [rcx]
lea rdx, str.mat_dxlevel
call qword [rax + 0x68]
mov rcx, qword [rax + 0x38]
mov eax, dword [rcx + 0x58]
cmp eax, 0x5a
jge 0x1800a1397
lea rcx, str.You_are_running_with_graphics_options_that_Amalgam_does_not_support._nPlease_remove__dxlevel__from_your_launch_options_and_reinject.
mov qword [rbp - 0x79], rcx
mov qword [rbp - 0x71], 0x85
mov dword [rbp - 0x51], eax
movabs rax, 0x1000000000000000
mov qword [rbp - 0x59], rax
mov esi, 1
mov qword [rbp - 0x69], rsi
lea rax, [rbp - 0x59]
mov qword [rbp - 0x61], rax
movaps xmm0, xmmword [rbp - 0x69]
movdqa xmmword [rbp - 9], xmm0
movaps xmm1, xmmword [rbp - 0x79]
movdqa xmmword [rbp - 0x79], xmm1
lea r8, [rbp - 9]
lea rdx, [rbp - 0x79]
lea rcx, [rbp + 7]
call fcn.1800a5f60
lea rdx, [rbp + 7]
cmp qword [rbp + 0x1f], 0xf
cmova rdx, qword [rbp + 7]
mov r9d, 0x10
lea r8, str.Error
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov byte [0x18022a9f8], sil
lea rcx, [rbp + 7]
call fcn.18008ede0
jmp 0x1800a1611
mov rbx, r14
mov esi, 1
xor eax, eax
lock cmpxchg dword [0x1802296d8], esi
je 0x1800a13d1
nop dword [rax + rax]
cmp rbx, 0x20
jae 0x1800a13ba
xor ecx, ecx
jmp 0x1800a13bc
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1802296d8], esi
jne 0x1800a13b0
cmp qword [0x1802296e0], 0
jne 0x1800a13ef
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x1802296e0], rax
mov eax, r14d
xchg dword [0x1802296d8], eax
mov ecx, 0x20
call qword [sym.imp.d3d9.dll_Direct3DCreate9]
mov rbx, rax
mov qword [rbp + 0x6f], rax
test rax, rax
je 0x1800a1419
mov rax, qword [rax]
mov rcx, rbx
call qword [rax + 8]
nop
xor edx, edx
lea rcx, str.Valve001
call qword [sym.imp.USER32.dll_FindWindowA]
mov r9, rax
mov qword [rbp - 0x49], 0
mov qword [rbp - 0x41], 0
mov qword [rbp - 0x39], 0
mov dword [rbp - 0x31], esi
mov qword [rbp - 0x29], r14
mov dword [rbp - 0x21], esi
mov dword [rbp - 0x1d], esi
mov qword [rbp - 0x19], 0x50
mov qword [rbp - 0x11], 0
mov qword [rbp + 0x67], r14
mov rax, qword [rbx]
lea rcx, [rbp + 0x67]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp - 0x49]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0x40
mov r8d, esi
xor edx, edx
mov rcx, rbx
call qword [rax + 0x80]
mov rax, qword [rbp + 0x67]
mov rcx, qword [rax]
lea r8, [0x18022b120]
lea rdx, [0x18016c130]
mov rcx, qword [rcx + 0x88]
call fcn.18009b580
mov rax, qword [rbp + 0x67]
mov rcx, qword [rax]
lea r8, [0x18022b118]
lea rdx, [0x18016c190]
mov rcx, qword [rcx + 0x80]
call fcn.18009b580
nop
mov rcx, qword [rbp + 0x67]
test rcx, rcx
je 0x1800a14e6
mov qword [rbp + 0x67], r14
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
test rbx, rbx
je 0x1800a14f5
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
nop
mov rcx, qword [0x18022adc8]
test rcx, rcx
jne 0x1800a1526
mov qword [rbp + 0x6f], r14
lea rdx, [rbp + 0x6f]
lea rcx, [0x180179e40]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rcx, qword [rbp + 0x6f]
mov qword [0x18022adc8], rcx
test rcx, rcx
je 0x1800a1501
lea r8, [0x18016bf40]
mov edx, 0xfffffffc
call qword [sym.imp.USER32.dll_SetWindowLongPtrA]
mov qword [0x18023b648], rax
mov rdi, qword [0x180224398]
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x1800a155f
nop
mov rax, qword [rbx + 0x30]
call qword [rax + 8]
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x1800a1550
call fcn.18009b860
test eax, eax
je 0x1800a1584
mov r9d, 0x10
lea r8, str.Error
lea rdx, str.MH_failed_to_enable_all_hooks_
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xchg byte [0x18022aae8], sil
lea rcx, [0x18022b310]
call fcn.1801553d0
call fcn.1800da170
xor r8d, r8d
lea rdx, [0x18022bbf0]
lea rcx, [0x18022bbf0]
call fcn.1800e8c40
mov byte [0x180223d1a], 1
mov dword [rbp + 0x67], 0xffff96af
mov eax, dword [rbp + 0x67]
mov dword [rbp + 0x6f], eax
mov rcx, qword [0x18022aa20]
mov rax, qword [rcx]
lea r9, [0x1801f4d90]
lea r8, str.__s_
lea rdx, [rbp + 0x6f]
call qword [rax + 0xb8]
mov rcx, qword [0x18022aa20]
mov rax, qword [rcx]
mov dword [rbp + 0x67], 0xffffffff
lea r9, str.Loaded
lea r8, [0x180200ff8]
lea rdx, [rbp + 0x67]
call qword [rax + 0xb8]
mov rbx, qword [rsp + 0x130]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret