Function at 0x140224fc0
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 0x14022505a
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 0x140225375
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x28], 0
jmp 0x14022507f
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 0x14022535d
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 0x1402250d8
mov rax, qword [rsp + 0x68]
mov rax, qword [rax + 0x10]
cmp qword [rsp + 0x70], rax
jl 0x1402250dd
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 0x140225358
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 0x140225176
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x10]
cmp qword [rsp + 0x88], rax
jge 0x140225176
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 0x14022517b
call sub.mfc90u.dll_AfxOleUnregisterServerClass
mov rax, qword [rsp + 0x78]
cmp dword [rax], 1
jne 0x1402251ac
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax]
lea rdx, [0x1404e63d0]
mov rcx, qword [rsp + 0xf0]
call qword [rax + 0x60]
mov qword [rsp + 0x30], rax
jmp 0x140225246
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 0x140225212
mov rax, qword [rsp + 0x98]
mov rax, qword [rax + 0x10]
cmp qword [rsp + 0xa0], rax
jge 0x140225212
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 0x140225217
call sub.mfc90u.dll_AfxOleUnregisterServerClass
mov rax, qword [rsp + 0x90]
cmp dword [rax], 2
jne 0x140225246
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax]
lea rdx, [0x1404e63b0]
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 0x14022528a
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x10]
cmp qword [rsp + 0xb8], rax
jl 0x14022528f
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 0x14022531f
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0xc8], eax
jmp 0x14022532a
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 0x140225358
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0xf0]
call qword [rax + 0x60]
jmp 0x140225074
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