Function at 0x180024d20
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.180024840
mov ecx, ebx
call fcn.180025640
cmp byte [0x18004860e], 0
je 0x180024d44
mov ecx, ebx
call fcn.1800245b0
test ebx, ebx
je 0x180025013
cmp ebx, 1
jne 0x180025128
cmp byte [0x18004869d], 0
jne 0x180025128
lea rdx, str.mods::swapchain_attached.
mov byte [0x18004869d], bl
mov ecx, 3
call fcn.180028c40
lea rcx, [0x18001dbc0]
call fcn.18000ccb0
lea rcx, [0x18001a470]
call fcn.18000c9e0
mov rax, qword gs:[0x58]
mov edx, dword [0x180048d48]
mov ecx, 0x2c
mov rbx, qword [rax + rdx*8]
add rbx, rcx
mov eax, dword [rbx]
cmp dword [0x180048ad8], eax
jg 0x18002516f
mov rax, qword [0x180048ad0]
test rax, rax
je 0x180024dd4
lea rdx, [0x180019840]
mov ecx, 7
call rax
lea rcx, [0x180020ce0]
call fcn.18000cb90
lea rcx, [0x18001f8a0]
call fcn.18000d130
mov eax, dword [rbx]
cmp dword [0x180048ae8], eax
jg 0x1800251b7
mov rax, qword [0x180048ae0]
test rax, rax
je 0x180024e14
lea rdx, [0x180018430]
mov ecx, 0xf
call rax
lea rcx, [0x18001afe0]
call fcn.18000cd40
mov eax, dword [rbx]
cmp dword [0x180048af8], eax
jg 0x1800251ff
mov rax, qword [0x180048af0]
test rax, rax
je 0x180024e48
lea rdx, [0x180018e60]
mov ecx, 0x12
call rax
mov eax, dword [rbx]
cmp dword [0x180048b08], eax
jg 0x180025247
mov rax, qword [0x180048b00]
test rax, rax
je 0x180024e70
lea rdx, [0x1800202a0]
mov ecx, 0x11
call rax
mov eax, dword [rbx]
cmp dword [0x180048b18], eax
jg 0x18002528f
mov rax, qword [0x180048b10]
test rax, rax
je 0x180024e98
lea rdx, [0x18001b4c0]
mov ecx, 0x13
call rax
mov eax, dword [rbx]
cmp dword [0x180048b28], eax
jg 0x1800252d7
mov rax, qword [0x180048b20]
test rax, rax
je 0x180024ec0
lea rdx, [0x180016cb0]
mov ecx, 0x38
call rax
mov eax, dword [rbx]
cmp dword [0x180048b38], eax
jg 0x18002531f
mov rax, qword [0x180048b30]
test rax, rax
je 0x180024ee8
lea rdx, [0x180023290]
mov ecx, 0x3d
call rax
cmp byte [0x18004860e], 0
je 0x180024ff9
lea rcx, [0x18001b9c0]
call fcn.18000ca70
lea rcx, [0x180019ca0]
call fcn.18000cb00
lea rcx, [0x1800161a0]
call fcn.18000cf80
lea rcx, [0x180022310]
call fcn.18000d010
lea rcx, [0x180023900]
call fcn.18000cef0
mov eax, dword [rbx]
cmp dword [0x180048b58], eax
jg 0x180025367
mov rax, qword [0x180048b50]
test rax, rax
je 0x180024f59
lea rdx, [0x180016350]
mov ecx, 0x3f
call rax
mov eax, dword [rbx]
cmp dword [0x180048b68], eax
jg 0x1800253af
mov rax, qword [0x180048b60]
test rax, rax
je 0x180024f81
lea rdx, [0x180016430]
mov ecx, 0x40
call rax
mov eax, dword [rbx]
cmp dword [0x180048b78], eax
jg 0x1800253f7
mov rax, qword [0x180048b70]
test rax, rax
je 0x180024fa9
lea rdx, [0x1800163c0]
mov ecx, 0x41
call rax
mov eax, dword [rbx]
cmp dword [0x180048b88], eax
jg 0x18002543f
mov rax, qword [0x180048b80]
test rax, rax
je 0x180024fd1
lea rdx, [0x180016d00]
mov ecx, 0x3b
call rax
mov eax, dword [rbx]
cmp dword [0x180048b98], eax
jg 0x180025487
mov rax, qword [0x180048b90]
test rax, rax
je 0x180024ff9
lea rdx, [0x180016530]
mov ecx, 0x3a
call rax
mov eax, dword [rbx]
cmp dword [0x180048ba8], eax
jg 0x1800254cf
mov rax, qword [0x180048ba0]
jmp 0x18002510f
lea rcx, [0x18001dbc0]
call fcn.18000d400
lea rcx, [0x18001a470]
call fcn.18000d1c0
mov rax, qword gs:[0x58]
mov edx, dword [0x180048d48]
mov ecx, 0x2c
mov rbx, qword [rax + rdx*8]
add rbx, rcx
mov eax, dword [rbx]
cmp dword [0x180048bb8], eax
jg 0x18002551e
mov rax, qword [0x180048bb0]
test rax, rax
je 0x18002506e
lea rdx, [0x180019840]
mov ecx, 7
call rax
lea rcx, [0x180020ce0]
call fcn.18000d370
lea rcx, [0x18001f8a0]
call fcn.18000d7f0
mov eax, dword [rbx]
cmp dword [0x180048bc8], eax
jg 0x180025566
mov rax, qword [0x180048bc0]
test rax, rax
je 0x1800250ae
lea rdx, [0x180018430]
mov ecx, 0xf
call rax
mov eax, dword [rbx]
cmp dword [0x180048bd8], eax
jg 0x1800255ae
mov rax, qword [0x180048bd0]
test rax, rax
je 0x1800250d6
lea rdx, [0x180018e60]
mov ecx, 0x12
call rax
mov eax, dword [rbx]
cmp dword [0x180048be8], eax
jg 0x1800255f6
mov rax, qword [0x180048be0]
test rax, rax
je 0x1800250fe
lea rdx, [0x1800202a0]
mov ecx, 0x11
call rax
mov eax, dword [rbx]
cmp dword [0x180048bf8], eax
jg 0x18002512e
mov rax, qword [0x180048bf0]
test rax, rax
je 0x180025128
lea rdx, [0x1800233f0]
mov ecx, 0x5d
add rsp, 0x20
pop rbx
jmp rax
add rsp, 0x20
pop rbx
ret
lea rcx, [0x180048bf8]
call fcn.18002a5a4
cmp dword [0x180048bf8], 0xffffffff
jne 0x180025108
xor ecx, ecx
call fcn.180028a40
mov rcx, rax
lea rdx, str.ReShadeUnregisterEvent
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x180048bf8]
mov qword [0x180048bf0], rax
call fcn.18002a538
jmp 0x180025108
lea rcx, [0x180048ad8]
call fcn.18002a5a4
cmp dword [0x180048ad8], 0xffffffff
jne 0x180024dba
xor ecx, ecx
call fcn.180028a40
mov rcx, rax
lea rdx, [0x180040928]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x180048ad8]
mov qword [0x180048ad0], rax
call fcn.18002a538
jmp 0x180024dba
lea rcx, [0x180048ae8]
call fcn.18002a5a4
cmp dword [0x180048ae8], 0xffffffff
jne 0x180024dfa
xor ecx, ecx
call fcn.180028a40
mov rcx, rax
lea rdx, [0x180040928]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x180048ae8]
mov qword [0x180048ae0], rax
call fcn.18002a538
jmp 0x180024dfa
lea rcx, [0x180048af8]
call fcn.18002a5a4
cmp dword [0x180048af8], 0xffffffff
jne 0x180024e2e
xor ecx, ecx
call fcn.180028a40
mov rcx, rax
lea rdx, [0x180040928]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x180048af8]
mov qword [0x180048af0], rax
call fcn.18002a538
jmp 0x180024e2e
lea rcx, [0x180048b08]
call fcn.18002a5a4
cmp dword [0x180048b08], 0xffffffff
jne 0x180024e56
xor ecx, ecx
call fcn.180028a40
mov rcx, rax
lea rdx, [0x180040928]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x180048b08]
mov qword [0x180048b00], rax
call fcn.18002a538
jmp 0x180024e56
lea rcx, [0x180048b18]
call fcn.18002a5a4
cmp dword [0x180048b18], 0xffffffff
jne 0x180024e7e
xor ecx, ecx
call fcn.180028a40
mov rcx, rax
lea rdx, [0x180040928]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x180048b18]
mov qword [0x180048b10], rax
call fcn.18002a538
jmp 0x180024e7e
lea rcx, [0x180048b28]
call fcn.18002a5a4
cmp dword [0x180048b28], 0xffffffff
jne 0x180024ea6
xor ecx, ecx
call fcn.180028a40
mov rcx, rax
lea rdx, [0x180040928]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x180048b28]
mov qword [0x180048b20], rax
call fcn.18002a538
jmp 0x180024ea6
lea rcx, [0x180048b38]
call fcn.18002a5a4
cmp dword [0x180048b38], 0xffffffff
jne 0x180024ece
xor ecx, ecx
call fcn.180028a40
mov rcx, rax
lea rdx, [0x180040928]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x180048b38]
mov qword [0x180048b30], rax
call fcn.18002a538
jmp 0x180024ece
lea rcx, [0x180048b58]
call fcn.18002a5a4
cmp dword [0x180048b58], 0xffffffff
jne 0x180024f3f
xor ecx, ecx
call fcn.180028a40
mov rcx, rax
lea rdx, [0x180040928]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x180048b58]
mov qword [0x180048b50], rax
call fcn.18002a538
jmp 0x180024f3f
lea rcx, [0x180048b68]
call fcn.18002a5a4
cmp dword [0x180048b68], 0xffffffff
jne 0x180024f67
xor ecx, ecx
call fcn.180028a40
mov rcx, rax
lea rdx, [0x180040928]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x180048b68]
mov qword [0x180048b60], rax
call fcn.18002a538
jmp 0x180024f67
lea rcx, [0x180048b78]
call fcn.18002a5a4
cmp dword [0x180048b78], 0xffffffff
jne 0x180024f8f
xor ecx, ecx
call fcn.180028a40
mov rcx, rax
lea rdx, [0x180040928]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x180048b78]
mov qword [0x180048b70], rax
call fcn.18002a538
jmp 0x180024f8f
lea rcx, [0x180048b88]
call fcn.18002a5a4
cmp dword [0x180048b88], 0xffffffff
jne 0x180024fb7
xor ecx, ecx
call fcn.180028a40
mov rcx, rax
lea rdx, [0x180040928]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x180048b88]
mov qword [0x180048b80], rax
call fcn.18002a538
jmp 0x180024fb7
lea rcx, [0x180048b98]
call fcn.18002a5a4
cmp dword [0x180048b98], 0xffffffff
jne 0x180024fdf
xor ecx, ecx
call fcn.180028a40
mov rcx, rax
lea rdx, [0x180040928]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x180048b98]
mov qword [0x180048b90], rax
call fcn.18002a538
jmp 0x180024fdf
lea rcx, [0x180048ba8]
call fcn.18002a5a4
cmp dword [0x180048ba8], 0xffffffff
jne 0x180025007
xor ecx, ecx
call fcn.180028a40
mov rcx, rax
lea rdx, [0x180040928]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x180048ba8]
mov qword [0x180048ba0], rax
call fcn.18002a538
mov rax, qword [0x180048ba0]
jmp 0x18002510f
lea rcx, [0x180048bb8]
call fcn.18002a5a4
cmp dword [0x180048bb8], 0xffffffff
jne 0x180025054
xor ecx, ecx
call fcn.180028a40
mov rcx, rax
lea rdx, str.ReShadeUnregisterEvent
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x180048bb8]
mov qword [0x180048bb0], rax
call fcn.18002a538
jmp 0x180025054
lea rcx, [0x180048bc8]
call fcn.18002a5a4
cmp dword [0x180048bc8], 0xffffffff
jne 0x180025094
xor ecx, ecx
call fcn.180028a40
mov rcx, rax
lea rdx, str.ReShadeUnregisterEvent
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x180048bc8]
mov qword [0x180048bc0], rax
call fcn.18002a538
jmp 0x180025094
lea rcx, [0x180048bd8]
call fcn.18002a5a4
cmp dword [0x180048bd8], 0xffffffff
jne 0x1800250bc
xor ecx, ecx
call fcn.180028a40
mov rcx, rax
lea rdx, str.ReShadeUnregisterEvent
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x180048bd8]
mov qword [0x180048bd0], rax
call fcn.18002a538
jmp 0x1800250bc
lea rcx, [0x180048be8]
call fcn.18002a5a4
cmp dword [0x180048be8], 0xffffffff
jne 0x1800250e4
xor ecx, ecx
call fcn.180028a40
mov rcx, rax
lea rdx, str.ReShadeUnregisterEvent
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x180048be8]
mov qword [0x180048be0], rax
call fcn.18002a538
jmp 0x1800250e4