Function at 0x140052480
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1402fa010]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp byte [rcx], 0
mov rbx, rcx
jne 0x14005278a
mov byte [rcx], 1
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RtlGetNtVersionNumbers
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14005278a
lea r8, [rbx + 4]
mov qword [rsp + 0x58], rsi
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x24]
call qword [case.0x140038716.0]
mov ecx, dword [rbx + 4]
and ecx, 0xfffffff
cmp dword [rsp + 0x24], 0xa
mov dword [rbx + 4], ecx
jne 0x140052785
cmp dword [rsp + 0x28], 0
jne 0x140052785
cmp ecx, 0x4563
je 0x140052527
lea eax, [rcx - 0x47ba]
cmp eax, 1
jbe 0x140052527
lea eax, [rcx - 0x4a61]
cmp eax, 1
ja 0x140052785
xor edx, edx
mov qword [rsp + 0x60], rdi
mov r8d, 0x800
lea rcx, [0x140290aa8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x140052780
mov edx, 0x31
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0x68
mov rcx, rdi
mov qword [0x140306108], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0x6a
mov rcx, rdi
mov qword [rbx + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0x84
mov rcx, rdi
mov qword [rbx + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0x85
mov rcx, rdi
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0x87
mov rcx, rdi
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [rbx + 4], 0x47ba
jae 0x1400525c7
mov qword [rbx + 0x20], rax
jmp 0x1400525cb
mov qword [rbx + 0x50], rax
mov edx, 0x89
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.user32.dll
mov qword [rbx + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.SetWindowCompositionAttribute
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x140306108], 0
mov qword [rbx + 8], rax
je 0x140052780
cmp qword [rbx + 0x30], 0
je 0x140052780
cmp qword [rbx + 0x10], 0
je 0x140052780
cmp qword [rbx + 0x18], 0
je 0x140052780
mov rax, qword [rbx + 0x20]
test rax, rax
jne 0x140052640
cmp qword [rbx + 0x50], rax
je 0x140052780
cmp qword [rbx + 0x38], 0
je 0x140052780
mov byte [rbx + 1], 1
test rax, rax
je 0x14005265e
mov cl, 1
call qword [case.0x140038716.0]
jmp 0x140052672
mov rax, qword [rbx + 0x50]
test rax, rax
je 0x140052672
mov ecx, 1
call qword [case.0x140038716.0]
mov rax, qword [rbx + 0x30]
call qword [case.0x140038716.0]
mov rax, qword [rbx + 0x10]
call qword [case.0x140038716.0]
test al, al
je 0x14005269a
mov rcx, rbx
call fcn.1400527a0
test al, al
jne 0x14005269a
mov al, 1
jmp 0x14005269c
xor al, al
cmp byte [rbx + 1], 0
mov byte [rbx + 2], al
je 0x140052780
xor edx, edx
lea rcx, str.comctl32.dll
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
test rax, rax
je 0x140052780
movsxd rcx, dword [rax + 0x3c]
mov ebx, dword [rcx + rax + 0xf0]
add rbx, rax
cmp dword [rbx + 4], 0
je 0x140052780
mov ecx, dword [rbx + 4]
lea rdx, str.uxtheme.dll
add rcx, rsi
call fcn.1402090e8
test eax, eax
je 0x140052707
add rbx, 0x20
cmp dword [rbx + 4], 0
jne 0x1400526e2
jmp 0x140052780
mov ecx, dword [rbx + 0x10]
mov edi, dword [rbx + 0xc]
add rcx, rsi
add rdi, rsi
mov rax, qword [rcx]
test rax, rax
je 0x140052734
jns 0x140052723
cmp ax, 0x31
je 0x140052736
mov rax, qword [rcx + 8]
add rcx, 8
add rdi, 8
test rax, rax
jne 0x14005271b
xor edi, edi
test rdi, rdi
je 0x140052780
mov edx, 8
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x20]
mov rcx, rdi
lea r8d, [rdx - 4]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140052780
mov r8d, dword [rsp + 0x20]
lea rax, [0x1400529c0]
lea r9, [rsp + 0x20]
mov qword [rdi], rax
mov edx, 8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401f3bf0
add rsp, 0x40
pop rbx
ret