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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0xd0
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax + 0x5a8]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 1
jne 0x14021a2ba
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.mfc90u.dll_CDocObjectServer::XOleObject::GetExtent]
mov ebx, eax
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.mfc90u.dll_CDumpContext::operator___1]
lea r9, [rsp + 0x48]
mov r8d, ebx
mov rdx, rax
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov r11, qword [rsp + 0x48]
mov qword [rsp + 0x50], r11
mov rcx, qword [rsp + 0xe8]
mov rax, qword [rsp + 0x50]
mov qword [rcx], rax
mov rax, qword [rsp + 0xe8]
jmp 0x14021a5d5
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x28], 0
jmp 0x14021a2df
mov eax, dword [rsp + 0x28]
add eax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax + 0x5a8]
mov qword [rsp + 0x58], rax
movsxd rax, dword [rsp + 0x28]
cmp rax, qword [rsp + 0x58]
jge 0x14021a5bd
movsxd rax, dword [rsp + 0x28]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0xe0]
add rax, 0x598
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x70], 0
jl 0x14021a338
mov rax, qword [rsp + 0x68]
mov rax, qword [rax + 0x10]
cmp qword [rsp + 0x70], rax
jl 0x14021a33d
call sub.mfc90u.dll_AfxOleUnregisterServerClass
mov rcx, qword [rsp + 0x68]
mov rcx, qword [rcx + 8]
mov rax, qword [rsp + 0x70]
lea rax, [rcx + rax*8]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.mfc90u.dll_CStatusBar::GetThisMessageMap]
movzx eax, al
test eax, eax
jne 0x14021a5b8
mov qword [rsp + 0x30], 0
movsxd rax, dword [rsp + 0x28]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0xe0]
add rax, 0x5c0
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x88], 0
jl 0x14021a3d6
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x10]
cmp qword [rsp + 0x88], rax
jge 0x14021a3d6
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 8]
mov rax, qword [rsp + 0x88]
lea rax, [rcx + rax*4]
mov qword [rsp + 0x78], rax
jmp 0x14021a3db
call sub.mfc90u.dll_AfxOleUnregisterServerClass
mov rax, qword [rsp + 0x78]
cmp dword [rax], 1
jne 0x14021a40c
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax]
lea rdx, [0x1404f7bb0]
mov rcx, qword [rsp + 0xf0]
call qword [rax + 0x60]
mov qword [rsp + 0x30], rax
jmp 0x14021a4a6
movsxd rax, dword [rsp + 0x28]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xe0]
add rax, 0x5c0
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0xa0], 0
jl 0x14021a472
mov rax, qword [rsp + 0x98]
mov rax, qword [rax + 0x10]
cmp qword [rsp + 0xa0], rax
jge 0x14021a472
mov rcx, qword [rsp + 0x98]
mov rcx, qword [rcx + 8]
mov rax, qword [rsp + 0xa0]
lea rax, [rcx + rax*4]
mov qword [rsp + 0x90], rax
jmp 0x14021a477
call sub.mfc90u.dll_AfxOleUnregisterServerClass
mov rax, qword [rsp + 0x90]
cmp dword [rax], 2
jne 0x14021a4a6
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax]
lea rdx, [0x1404f7b90]
mov rcx, qword [rsp + 0xf0]
call qword [rax + 0x60]
mov qword [rsp + 0x30], rax
movsxd rax, dword [rsp + 0x28]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xe0]
add rax, 0x598
mov qword [rsp + 0xb0], rax
cmp qword [rsp + 0xb8], 0
jl 0x14021a4ea
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x10]
cmp qword [rsp + 0xb8], rax
jl 0x14021a4ef
call sub.mfc90u.dll_AfxOleUnregisterServerClass
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
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.mfc90u.dll_CDocObjectServer::XOleObject::GetExtent]
mov ebx, eax
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.mfc90u.dll_CDumpContext::operator___1]
lea r9, [rsp + 0xc0]
mov r8d, ebx
mov rdx, rax
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov r11, qword [rsp + 0xc0]
mov qword [rsp + 0x38], r11
mov ecx, dword [rsp + 0x38]
mov eax, dword [rsp + 0x20]
add eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x3c]
cmp dword [rsp + 0x24], eax
jle 0x14021a57f
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0xc8], eax
jmp 0x14021a58a
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0xc8], eax
mov eax, dword [rsp + 0xc8]
mov dword [rsp + 0x24], eax
cmp qword [rsp + 0x30], 0
je 0x14021a5b8
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0xf0]
call qword [rax + 0x60]
jmp 0x14021a2d4
mov rcx, qword [rsp + 0xe8]
mov rax, qword [rsp + 0x20]
mov qword [rcx], rax
mov rax, qword [rsp + 0xe8]
add rsp, 0xd0
pop rbx
ret