Function at 0x18005c1f0
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2c0
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x18013a210]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov r13, rdx
mov r12, rcx
mov rsi, qword [rdx + 0x20]
mov edi, dword [rdx + 0x10]
mov edx, 1
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, SafeArrayGetDim
call qword [sym.imp.USER32.dll_GetSysColorBrush]
mov qword [rsp + 0x78], rax
mov ecx, SafeArrayGetDim
call qword [sym.imp.USER32.dll_GetSysColorBrush]
mov r14, rax
mov ecx, 4
call qword [sym.imp.USER32.dll_GetSysColorBrush]
mov r15, rax
mov qword [rsp + 0x80], rax
lea rdx, [r13 + 0x28]
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_CopyRect]
xor eax, eax
mov rbx, rax
mov eax, edi
and eax, 1
mov dword [rsp + 0x60], eax
je 0x18005c36e
lea rax, [method.CRegistrySettings.virtual_32]
mov rcx, qword [r12 + 0x100]
test rcx, rcx
je 0x18005c2bc
lea rdx, str.IsAppThemed
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
test eax, eax
je 0x18005c348
mov rbx, qword [r12 + 8]
lea rax, [method.CRegistrySettings.virtual_32]
mov rcx, qword [r12 + 0x100]
test rcx, rcx
je 0x18005c2ec
lea rdx, str.OpenThemeData
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.MENU
mov rcx, rbx
call rax
mov rbx, rax
test rax, rax
je 0x18005c348
lea rax, [0x1800788f0]
mov rcx, qword [r12 + 0x100]
test rcx, rcx
je 0x18005c321
lea rdx, str.DrawThemeBackground
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rcx
mov r9d, 2
lea r8d, [r9 + 0xc]
mov rdx, rsi
mov rcx, rbx
call rax
jmp 0x18005c37f
mov r8, r14
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.USER32.dll_FillRect]
mov r8, qword [rsp + 0x78]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.USER32.dll_FrameRect]
jmp 0x18005c37f
mov r8, r15
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.USER32.dll_FillRect]
mov r15d, dword [r13 + 8]
mov edx, r15d
mov rcx, r12
call fcn.18005cc30
mov r13d, eax
mov eax, dword [rsp + 0x5c]
mov ecx, dword [rsp + 0x54]
sub eax, ecx
sub eax, 0x10
cdq
sub eax, edx
sar eax, 1
mov r14d, eax
test dil, 8
je 0x18005c433
mov dword [rsp + 0x68], 2
add ecx, eax
mov dword [rsp + 0x6c], ecx
mov dword [rsp + 0x70], SafeArrayAccessData
add ecx, 0x10
mov dword [rsp + 0x74], ecx
cmp dword [rsp + 0x60], 0
je 0x18005c3f0
mov r8, qword [rsp + 0x80]
lea rdx, [rsp + 0x68]
mov rcx, rsi
call qword [sym.imp.USER32.dll_FillRect]
mov ecx, dword [rsp + 0x54]
jmp 0x18005c433
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x80]
call qword [sym.imp.USER32.dll_CopyRect]
mov edx, 1
mov r8d, edx
lea rcx, [rsp + 0x80]
call qword [sym.imp.USER32.dll_InflateRect]
mov r8, qword [rsp + 0x78]
lea rdx, [rsp + 0x80]
mov rcx, rsi
call qword [sym.imp.USER32.dll_FrameRect]
mov ecx, dword [rsp + 0x54]
cmp r13d, 0xffffffff
je 0x18005c467
lea eax, [rcx + r14]
mov r9d, dword [rsp + 0x50]
add r9d, 2
xor r14d, r14d
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], eax
mov r8, rsi
mov edx, r13d
mov rcx, qword [r12 + 0xf0]
call fcn.1800614f0
jmp 0x18005c46a
xor r14d, r14d
mov word [rsp + 0xa0], r14w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0xa2]
call fcn.1800c1250
mov dword [rsp + 0x20], r14d
mov r9d, 0x208
lea r8, [rsp + 0xa0]
mov edx, r15d
mov rcx, qword [r12 + 0x108]
call qword [sym.imp.USER32.dll_GetMenuStringW]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x68]
call qword [sym.imp.USER32.dll_CopyRect]
add dword [rsp + 0x68], 0x18
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x70], eax
mov r13d, dword [rsp + 0x60]
test r13d, r13d
je 0x18005c502
test rbx, rbx
jne 0x18005c518
test dil, 6
je 0x18005c4e8
not edi
and edi, 1
or edi, 0x10
jmp 0x18005c4ed
mov edi, SafeArrayGetDim
mov ecx, edi
call qword [sym.imp.USER32.dll_GetSysColor]
mov edx, eax
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SetTextColor]
jmp 0x18005c518
mov ecx, 7
call qword [sym.imp.USER32.dll_GetSysColor]
mov edx, eax
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SetTextColor]
test r13d, r13d
je 0x18005c597
test rbx, rbx
je 0x18005c597
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0xa0]
repne scasw ax, word [rdi]
not rcx
lea rdi, [rcx - 1]
lea rax, [0x1800788f0]
mov rcx, qword [r12 + 0x100]
test rcx, rcx
je 0x18005c55b
lea rdx, str.DrawThemeText
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x30], SafeArrayAllocDescriptorEx
mov dword [rsp + 0x28], edi
lea rcx, [rsp + 0xa0]
mov qword [rsp + 0x20], rcx
mov r9d, 2
lea r8d, [r9 + 0xc]
mov rdx, rsi
mov rcx, rbx
call rax
jmp 0x18005c5cd
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0xa0]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov dword [rsp + 0x20], SafeArrayAllocDescriptorEx
lea r9, [rsp + 0x68]
lea rdx, [rsp + 0xa0]
mov rcx, rsi
call qword [sym.imp.USER32.dll_DrawTextW]
test rbx, rbx
je 0x18005c5f9
lea rax, [0x1800788f0]
mov rcx, qword [r12 + 0x100]
test rcx, rcx
je 0x18005c5f3
lea rdx, str.CloseThemeData
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
call rax
nop
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.1800bd980
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret