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

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x138
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + reloc.mfc90u.dll_CChevronOwnerDrawMenu::CChevronOwnerDrawMenu]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetClientRect]
mov rax, qword [rsp + reloc.mfc90u.dll_CChevronOwnerDrawMenu::CChevronOwnerDrawMenu]
mov dword [rax + CRecordset::AddNew], 0
mov rax, qword [rsp + reloc.mfc90u.dll_CChevronOwnerDrawMenu::CChevronOwnerDrawMenu]
cmp dword [rax + 0x59c], 1
jne 0x14021c152
mov rax, qword [rsp + reloc.mfc90u.dll_CChevronOwnerDrawMenu::CChevronOwnerDrawMenu]
mov eax, dword [rax + 0x3d0]
add eax, 0xc
mov dword [rsp + 0xf0], eax
jmp 0x14021c163
mov ecx, dword [rsp + 0x30]
mov eax, dword [rsp + 0x38]
sub eax, ecx
mov dword [rsp + 0xf0], eax
mov eax, dword [rsp + 0xf0]
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + reloc.mfc90u.dll_CChevronOwnerDrawMenu::CChevronOwnerDrawMenu]
cmp dword [rax + 0x59c], 1
jne 0x14021c19c
mov rax, qword [rsp + reloc.mfc90u.dll_CChevronOwnerDrawMenu::CChevronOwnerDrawMenu]
mov eax, dword [rax + 0x3d4]
add eax, 0xc
mov dword [rsp + 0xf4], eax
jmp 0x14021c24b
xor eax, eax
cmp eax, 1
je 0x14021c1b9
lea rax, [0x1404f79c0]
mov eax, dword [rax + 0x2c4]
mov dword [rsp + 0xf8], eax
jmp 0x14021c1cd
lea rax, [0x1404f79c0]
mov eax, dword [rax + 0x2c8]
mov dword [rsp + 0xf8], eax
mov rax, qword [rsp + reloc.mfc90u.dll_CChevronOwnerDrawMenu::CChevronOwnerDrawMenu]
mov eax, dword [rax + 0x3d4]
cmp dword [rsp + 0xf8], eax
jle 0x14021c225
xor eax, eax
cmp eax, 1
je 0x14021c201
lea rax, [0x1404f79c0]
mov eax, dword [rax + 0x2c4]
mov dword [rsp + 0xfc], eax
jmp 0x14021c215
lea rax, [0x1404f79c0]
mov eax, dword [rax + 0x2c8]
mov dword [rsp + 0xfc], eax
mov eax, dword [rsp + 0xfc]
mov dword [rsp + 0x100], eax
jmp 0x14021c23a
mov rax, qword [rsp + reloc.mfc90u.dll_CChevronOwnerDrawMenu::CChevronOwnerDrawMenu]
mov eax, dword [rax + 0x3d4]
mov dword [rsp + 0x100], eax
mov eax, dword [rsp + 0x100]
add eax, 4
mov dword [rsp + 0xf4], eax
mov eax, dword [rsp + 0xf4]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + reloc.mfc90u.dll_CChevronOwnerDrawMenu::CChevronOwnerDrawMenu]
cmp dword [rax + reloc.mfc90u.dll_CRecordset::AddNew], 0
jle 0x14021c286
mov rax, qword [rsp + reloc.mfc90u.dll_CChevronOwnerDrawMenu::CChevronOwnerDrawMenu]
mov eax, dword [rax + reloc.mfc90u.dll_CRecordset::AddNew]
mov dword [rsp + 0x104], eax
jmp 0x14021c2a0
mov rax, qword [rsp + reloc.mfc90u.dll_CChevronOwnerDrawMenu::CChevronOwnerDrawMenu]
mov eax, dword [rax + 0x3f0]
imul eax, dword [rsp + 0x28]
mov dword [rsp + 0x104], eax
mov eax, dword [rsp + 0x34]
add eax, 4
sub eax, dword [rsp + 0x104]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x40], 0
jmp 0x14021c2c7
mov eax, dword [rsp + 0x40]
add eax, 1
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + reloc.mfc90u.dll_CChevronOwnerDrawMenu::CChevronOwnerDrawMenu]
mov rax, qword [rax + 0x3b8]
mov qword [rsp + 0xa0], rax
movsxd rax, dword [rsp + 0x40]
cmp rax, qword [rsp + 0xa0]
jge 0x14021c604
movsxd rax, dword [rsp + 0x40]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + reloc.mfc90u.dll_CChevronOwnerDrawMenu::CChevronOwnerDrawMenu]
add rax, 0x3a8
mov qword [rsp + 0xb0], rax
cmp qword [rsp + 0xb8], 0
jl 0x14021c357
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x10]
cmp qword [rsp + 0xb8], rax
jge 0x14021c357
mov rcx, qword [rsp + 0xb0]
mov rcx, qword [rcx + 8]
mov rax, qword [rsp + 0xb8]
lea rax, [rcx + rax*8]
mov qword [rsp + 0xa8], rax
jmp 0x14021c35c
call sub.mfc90u.dll_AfxOleUnregisterServerClass
mov rax, qword [rsp + 0xa8]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x6c], eax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x7c], eax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x70], rax
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x50], eax
mov ecx, dword [rsp + 0x60]
mov eax, dword [rsp + 0x70]
add eax, ecx
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0x54], eax
mov ecx, dword [rsp + 0x64]
mov eax, dword [rsp + 0x74]
add eax, ecx
mov dword [rsp + 0x5c], eax
mov rax, qword [rsp + reloc.mfc90u.dll_CChevronOwnerDrawMenu::CChevronOwnerDrawMenu]
cmp dword [rax + reloc.mfc90u.dll_CRecordset::AddNew], 0
jle 0x14021c3ea
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x108], eax
jmp 0x14021c3f5
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x108], eax
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x108], eax
jl 0x14021c4dd
mov eax, dword [rsp + 0x3c]
cmp dword [rsp + 0x5c], eax
jg 0x14021c4dd
lea rdi, [rsp + 0x90]
lea rsi, [rsp + 0x50]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
movaps xmm0, xmmword [rsp + 0x90]
movdqa xmmword [rsp + 0xe0], xmm0
mov rdi, qword [rsp + 0x48]
lea rsi, [rsp + 0xe0]
add rdi, 0x1c
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + reloc.mfc90u.dll_CChevronOwnerDrawMenu::CChevronOwnerDrawMenu]
mov rax, qword [rax + 0x5a0]
mov qword [rsp + 0xc0], rax
cmp qword [rsp + 0xc0], 0
jne 0x14021c481
mov qword [rsp + 0x110], 0
jmp 0x14021c495
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x110], rax
cmp qword [rsp + 0x110], 0
je 0x14021c4d8
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x40]
mov dword [rsp + 0xc8], eax
movsxd r8, dword [rsp + 0xc8]
lea r9, [rsp + 0x50]
mov rdx, qword [rsp + reloc.mfc90u.dll_CChevronOwnerDrawMenu::CChevronOwnerDrawMenu]
mov rcx, qword [rsp + reloc.mfc90u.dll_CChevronOwnerDrawMenu::CChevronOwnerDrawMenu]
mov rcx, qword [rcx + 0x5a0]
call sub.mfc90u.dll_CControlBar::SetBorders
jmp 0x14021c5a2
mov rcx, qword [rsp + 0x48]
add rcx, 0x1c
call qword [sym.imp.USER32.dll_SetRectEmpty]
mov rax, qword [rsp + reloc.mfc90u.dll_CChevronOwnerDrawMenu::CChevronOwnerDrawMenu]
mov rax, qword [rax + 0x5a0]
mov qword [rsp + 0xd0], rax
cmp qword [rsp + 0xd0], 0
jne 0x14021c51c
mov qword [rsp + 0x118], 0
jmp 0x14021c530
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x118], rax
cmp qword [rsp + 0x118], 0
je 0x14021c5a2
mov dword [rsp + 0x80], 0
mov dword [rsp + 0x84], 0
mov dword [rsp + 0x88], 0
mov dword [rsp + 0x8c], 0
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x40]
mov dword [rsp + 0xd8], eax
movsxd r8, dword [rsp + 0xd8]
lea r9, [rsp + 0x80]
mov rdx, qword [rsp + reloc.mfc90u.dll_CChevronOwnerDrawMenu::CChevronOwnerDrawMenu]
mov rcx, qword [rsp + reloc.mfc90u.dll_CChevronOwnerDrawMenu::CChevronOwnerDrawMenu]
mov rcx, qword [rcx + 0x5a0]
call sub.mfc90u.dll_CControlBar::SetBorders
mov ecx, dword [rsp + 0x2c]
mov eax, dword [rsp + 0x24]
add eax, ecx
mov dword [rsp + 0x24], eax
mov ecx, dword [rsp + 0x2c]
mov eax, dword [rsp + 0x24]
add eax, ecx
cmp eax, dword [rsp + 0x38]
jle 0x14021c5ff
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x24], eax
mov ecx, dword [rsp + 0x28]
mov eax, dword [rsp + 0x20]
add eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x3c]
cmp dword [rsp + 0x20], eax
jl 0x14021c5ff
mov rax, qword [rsp + reloc.mfc90u.dll_CChevronOwnerDrawMenu::CChevronOwnerDrawMenu]
mov ecx, dword [rax + 0x3f4]
add ecx, 1
mov rax, qword [rsp + reloc.mfc90u.dll_CChevronOwnerDrawMenu::CChevronOwnerDrawMenu]
mov dword [rax + CRecordset::AddNew], ecx
jmp 0x14021c2bc
xor eax, eax
test rax, rax
jne 0x14021c619
mov qword [rsp + 0x120], 0
jmp 0x14021c62a
xor eax, eax
add rax, 8
mov rax, qword [rax]
mov qword [rsp + 0x120], rax
mov r9d, reloc.mfc90u.dll_SerializeElements_class_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_______
mov r8, qword [rsp + 0x120]
xor edx, edx
mov rcx, qword [rsp + reloc.mfc90u.dll_CChevronOwnerDrawMenu::CChevronOwnerDrawMenu]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_RedrawWindow]
add rsp, 0x138
pop rdi
pop rsi
ret