Function at 0x140226e90
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 + CPropertySet::AddProperty], 0
mov rax, qword [rsp + reloc.mfc90u.dll_CChevronOwnerDrawMenu::CChevronOwnerDrawMenu]
cmp dword [rax + 0x59c], 1
jne 0x140226ef2
mov rax, qword [rsp + reloc.mfc90u.dll_CChevronOwnerDrawMenu::CChevronOwnerDrawMenu]
mov eax, dword [rax + 0x3d0]
add eax, 0xc
mov dword [rsp + 0xf0], eax
jmp 0x140226f03
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 0x140226f3c
mov rax, qword [rsp + reloc.mfc90u.dll_CChevronOwnerDrawMenu::CChevronOwnerDrawMenu]
mov eax, dword [rax + 0x3d4]
add eax, 0xc
mov dword [rsp + 0xf4], eax
jmp 0x140226feb
xor eax, eax
cmp eax, 1
je 0x140226f59
lea rax, [0x1404e61f0]
mov eax, dword [rax + 0x2b4]
mov dword [rsp + 0xf8], eax
jmp 0x140226f6d
lea rax, [0x1404e61f0]
mov eax, dword [rax + 0x2b8]
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 0x140226fc5
xor eax, eax
cmp eax, 1
je 0x140226fa1
lea rax, [0x1404e61f0]
mov eax, dword [rax + 0x2b4]
mov dword [rsp + 0xfc], eax
jmp 0x140226fb5
lea rax, [0x1404e61f0]
mov eax, dword [rax + 0x2b8]
mov dword [rsp + 0xfc], eax
mov eax, dword [rsp + 0xfc]
mov dword [rsp + 0x100], eax
jmp 0x140226fda
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 0x140227026
mov rax, qword [rsp + reloc.mfc90u.dll_CChevronOwnerDrawMenu::CChevronOwnerDrawMenu]
mov eax, dword [rax + reloc.mfc90u.dll_CRecordset::AddNew]
mov dword [rsp + 0x104], eax
jmp 0x140227040
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 0x140227067
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 0x1402273a4
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 0x1402270f7
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x10]
cmp qword [rsp + 0xb8], rax
jge 0x1402270f7
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 0x1402270fc
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 0x14022718a
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x108], eax
jmp 0x140227195
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x108], eax
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x108], eax
jl 0x14022727d
mov eax, dword [rsp + 0x3c]
cmp dword [rsp + 0x5c], eax
jg 0x14022727d
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 0x140227221
mov qword [rsp + 0x110], 0
jmp 0x140227235
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x110], rax
cmp qword [rsp + 0x110], 0
je 0x140227278
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 0x140227342
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 0x1402272bc
mov qword [rsp + 0x118], 0
jmp 0x1402272d0
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x118], rax
cmp qword [rsp + 0x118], 0
je 0x140227342
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 0x14022739f
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 0x14022739f
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 0x14022705c
xor eax, eax
test rax, rax
jne 0x1402273b9
mov qword [rsp + 0x120], 0
jmp 0x1402273ca
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