Function at 0x1400c4870
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
cmp qword [rsp + 0xe0], 0
je 0x1400c48e9
mov rax, qword [rsp + 0xe0]
cmp dword [rax + reloc.mfc90u.dll_CChevronOwnerDrawMenu::CChevronOwnerDrawMenu], 0
je 0x1400c48c5
mov rax, qword [rsp + 0xe0]
cmp dword [rax + 0x100], 0
jne 0x1400c48c5
mov dword [rsp + 0x98], 1
jmp 0x1400c48d0
mov dword [rsp + 0x98], 0
cmp dword [rsp + 0x98], 0
je 0x1400c48e9
mov eax, dword [0x1404f79e8]
mov dword [rsp + 0x9c], eax
jmp 0x1400c48f6
mov eax, dword [0x1404f7a1c]
mov dword [rsp + 0x9c], eax
mov eax, dword [rsp + 0x9c]
mov dword [rsp + 0x30], eax
cmp qword [rsp + 0xe0], 0
je 0x1400c495f
mov rax, qword [rsp + 0xe0]
cmp dword [rax + reloc.mfc90u.dll_CChevronOwnerDrawMenu::CChevronOwnerDrawMenu], 0
je 0x1400c493b
mov rax, qword [rsp + 0xe0]
cmp dword [rax + 0x100], 0
jne 0x1400c493b
mov dword [rsp + 0xa0], 1
jmp 0x1400c4946
mov dword [rsp + 0xa0], 0
cmp dword [rsp + 0xa0], 0
je 0x1400c495f
mov eax, dword [0x1404f79e4]
mov dword [rsp + 0xa4], eax
jmp 0x1400c496c
mov eax, dword [0x1404f7a18]
mov dword [rsp + 0xa4], eax
mov eax, dword [rsp + 0xa4]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0xf0]
mov dword [rsp + 0x2c], eax
mov dword [rsp + 0x34], 3
cmp dword [rsp + 0x2c], 0
je 0x1400c49a5
mov dword [rsp + 0xa8], 0
jmp 0x1400c49b0
mov dword [rsp + 0xa8], 1
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x2c], 0
je 0x1400c49cf
mov dword [rsp + 0xac], 1
jmp 0x1400c49da
mov dword [rsp + 0xac], 2
mov eax, dword [rsp + 0xac]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0xd8], 0
je 0x1400c4b89
cmp dword [rsp + 0x2c], 0
je 0x1400c4a04
mov dword [rsp + 0x70], 3
jmp 0x1400c4a0c
mov dword [rsp + 0x70], 2
mov r8d, dword [rsp + 0x70]
neg r8d
xor edx, edx
neg edx
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.USER32.dll_InflateRect]
mov rax, qword [rsp + 0xd0]
mov eax, dword [rax + 4]
mov rcx, qword [rsp + 0xd0]
add eax, dword [rcx + 0xc]
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x78], eax
mov rax, qword [rsp + 0xd0]
mov eax, dword [rax]
mov rcx, qword [rsp + 0xd0]
add eax, dword [rcx + 8]
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x24]
add r8d, eax
mov eax, dword [rsp + 0x28]
imul eax, eax, 3
mov ecx, dword [rsp + 0x28]
sub ecx, 1
imul ecx, dword [rsp + 0x24]
add eax, ecx
cdq
sub eax, edx
sar eax, 1
mov ecx, r8d
sub ecx, eax
mov rax, qword [rsp + 0xd0]
mov dword [rax], ecx
mov rax, qword [rsp + 0xd0]
mov ecx, dword [rax]
add ecx, 3
mov rax, qword [rsp + 0xd0]
mov dword [rax + 8], ecx
mov dword [rsp + 0x38], 0
jmp 0x1400c4ad5
mov eax, dword [rsp + 0x38]
add eax, 1
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x38], eax
jge 0x1400c4b84
mov r9d, dword [rsp + 0x20]
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xc8]
call sub.mfc90u.dll_CWinApp::DelRegTree
cmp dword [rsp + 0x2c], 0
jne 0x1400c4b69
mov rax, qword [rsp + 0xd0]
mov eax, dword [rax + 0xc]
sub eax, 1
mov dword [rsp + 0x80], eax
mov rax, qword [rsp + 0xd0]
mov eax, dword [rax]
mov dword [rsp + 0x7c], eax
mov eax, dword [rsp + 0x7c]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x54], eax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x48], rax
mov r9d, dword [rsp + 0x30]
mov r8d, dword [rsp + 0x4c]
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
mov rcx, qword [rcx + 8]
call qword [sym.imp.GDI32.dll_SetPixel]
xor r8d, r8d
mov edx, 4
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.USER32.dll_OffsetRect]
jmp 0x1400c4aca
jmp 0x1400c4d4c
mov rax, qword [rsp + 0xd0]
mov ecx, dword [rax + 4]
add ecx, dword [rsp + 0x24]
mov rax, qword [rsp + 0xd0]
mov dword [rax + 4], ecx
cmp dword [rsp + 0x2c], 0
je 0x1400c4bb7
mov dword [rsp + 0x84], 3
jmp 0x1400c4bc2
mov dword [rsp + 0x84], 2
xor r8d, r8d
neg r8d
mov edx, dword [rsp + 0x84]
neg edx
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.USER32.dll_InflateRect]
mov rax, qword [rsp + 0xd0]
mov eax, dword [rax + 4]
mov rcx, qword [rsp + 0xd0]
add eax, dword [rcx + 0xc]
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x8c], eax
mov rax, qword [rsp + 0xd0]
mov eax, dword [rax]
mov rcx, qword [rsp + 0xd0]
add eax, dword [rcx + 8]
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x88], eax
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x8c]
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0x5c]
mov r8d, dword [rsp + 0x24]
add r8d, eax
mov ecx, dword [rsp + 0x28]
imul ecx, ecx, 3
mov eax, dword [rsp + 0x28]
lea eax, [rcx + rax - 1]
cdq
sub eax, edx
sar eax, 1
mov ecx, r8d
sub ecx, eax
mov rax, qword [rsp + 0xd0]
mov dword [rax + 4], ecx
mov rax, qword [rsp + 0xd0]
mov ecx, dword [rax + 4]
add ecx, 3
mov rax, qword [rsp + 0xd0]
mov dword [rax + 0xc], ecx
mov dword [rsp + 0x3c], 0
jmp 0x1400c4c96
mov eax, dword [rsp + 0x3c]
add eax, 1
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x3c], eax
jge 0x1400c4d4c
mov r9d, dword [rsp + 0x20]
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xc8]
call sub.mfc90u.dll_CWinApp::DelRegTree
cmp dword [rsp + 0x2c], 0
jne 0x1400c4d31
mov rax, qword [rsp + 0xd0]
mov eax, dword [rax + 4]
mov dword [rsp + 0x94], eax
mov rax, qword [rsp + 0xd0]
mov eax, dword [rax + 8]
sub eax, 1
mov dword [rsp + 0x90], eax
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x94]
mov dword [rsp + 0x6c], eax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x60], rax
mov r9d, dword [rsp + 0x30]
mov r8d, dword [rsp + 0x64]
mov edx, dword [rsp + 0x60]
mov rcx, qword [rsp + 0xc8]
mov rcx, qword [rcx + 8]
call qword [sym.imp.GDI32.dll_SetPixel]
mov r8d, 4
xor edx, edx
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.USER32.dll_OffsetRect]
jmp 0x1400c4c8b
add rsp, 0xb8
ret