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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xa8
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.USER32.dll_SetRectEmpty]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0xc0]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetClientRect]
lea rdi, [rsp + 0x20]
lea rsi, [rsp + 0x30]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0xc0]
mov ecx, dword [rax + reloc.mfc90u.dll_AfxInitExtensionModule]
mov eax, dword [rsp + 0x24]
add eax, ecx
cmp eax, dword [rsp + 0x3c]
jge 0x140164b55
mov rax, qword [rsp + 0xc0]
mov ecx, dword [rax + reloc.mfc90u.dll_AfxInitExtensionModule]
mov eax, dword [rsp + 0x24]
add eax, ecx
mov dword [rsp + 0x90], eax
jmp 0x140164b60
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x90], eax
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x20]
add eax, 9
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x24]
add eax, 7
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x518]
add eax, 3
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x48], 0
jmp 0x140164bc3
mov eax, dword [rsp + 0x48]
add eax, 1
mov dword [rsp + 0x48], eax
mov rcx, qword [rsp + 0xc0]
add rcx, 0x530
call fcn.140152ae0
cmp dword [rsp + 0x48], eax
jge 0x140164d8b
mov rcx, qword [rsp + 0xc0]
add rcx, 0x530
mov edx, dword [rsp + 0x48]
call fcn.140152d50
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0xffffffff
je 0x140164d60
lea rdi, [rsp + 0x60]
lea rsi, [rsp + 0x20]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rsp + 0xc0]
add rcx, 0x530
mov edx, dword [rsp + 0x4c]
call fcn.1401521f0
mov rdx, rax
lea rcx, [rsp + 0x58]
call qword [0x1404094a8]
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc90u.dll_CDocObjectServer::XOleObject::GetExtent]
mov edi, eax
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc90u.dll_CDumpContext::operator___1]
lea r9, [rsp + 0x80]
mov r8d, edi
mov rdx, rax
mov rcx, qword [rsp + 0xd8]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov rdx, qword [rsp + 0x80]
mov qword [rsp + 0x70], rdx
mov eax, dword [rsp + 0x70]
add eax, 0x34
mov dword [rsp + 0x50], eax
mov ecx, dword [rsp + 0x44]
mov eax, dword [rsp + 0x64]
add eax, ecx
cmp eax, dword [rsp + 0x2c]
jge 0x140164cb3
mov ecx, dword [rsp + 0x44]
mov eax, dword [rsp + 0x64]
add eax, ecx
mov dword [rsp + 0x94], eax
jmp 0x140164cbe
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x94], eax
mov eax, dword [rsp + 0x94]
mov dword [rsp + 0x6c], eax
mov ecx, dword [rsp + 0x50]
mov eax, dword [rsp + 0x60]
add eax, ecx
cmp eax, dword [rsp + 0x28]
jge 0x140164cec
mov ecx, dword [rsp + 0x50]
mov eax, dword [rsp + 0x60]
add eax, ecx
mov dword [rsp + 0x98], eax
jmp 0x140164cf7
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x98], eax
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0xc8]
cmp dword [rsp + 0x40], eax
jne 0x140164d3c
lea rsi, [rsp + 0x60]
mov rdi, qword [rsp + 0xd0]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x78], eax
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc90u.dll_CView::CView]
mov eax, dword [rsp + 0x78]
jmp 0x140164d90
mov ecx, dword [rsp + 0x50]
mov eax, dword [rsp + 0x20]
add eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x40]
add eax, 1
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc90u.dll_CView::CView]
mov eax, dword [rsp + 0x20]
add eax, 4
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x24]
add eax, 0xa
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x2c], eax
jmp 0x140164bb8
mov eax, 0xffffffff
add rsp, 0xa8
pop rdi
pop rsi
ret