Function at 0x18005de30
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 [0x18013e1e0]
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 0x18005dfae
lea rax, [method.CRegistrySettings.virtual_32]
mov rcx, qword [r12 + 0x100]
test rcx, rcx
je 0x18005defc
lea rdx, str.IsAppThemed
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
test eax, eax
je 0x18005df88
mov rbx, qword [r12 + 8]
lea rax, [method.CRegistrySettings.virtual_32]
mov rcx, qword [r12 + 0x100]
test rcx, rcx
je 0x18005df2c
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 0x18005df88
lea rax, [0x18007a760]
mov rcx, qword [r12 + 0x100]
test rcx, rcx
je 0x18005df61
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 0x18005dfbf
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 0x18005dfbf
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.18005e870
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 0x18005e073
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 0x18005e030
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 0x18005e073
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 0x18005e0a7
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.180063170
jmp 0x18005e0aa
xor r14d, r14d
mov word [rsp + 0xa0], r14w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0xa2]
call fcn.1800c31a0
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 0x18005e142
test rbx, rbx
jne 0x18005e158
test dil, 6
je 0x18005e128
not edi
and edi, 1
or edi, 0x10
jmp 0x18005e12d
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 0x18005e158
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 0x18005e1d7
test rbx, rbx
je 0x18005e1d7
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0xa0]
repne scasw ax, word [rdi]
not rcx
lea rdi, [rcx - 1]
lea rax, [0x18007a760]
mov rcx, qword [r12 + 0x100]
test rcx, rcx
je 0x18005e19b
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 0x18005e20d
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 0x18005e239
lea rax, [0x18007a760]
mov rcx, qword [r12 + 0x100]
test rcx, rcx
je 0x18005e233
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.1800bf8d0
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