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

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x360
mov qword [rsp + 0x120], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov rax, qword [0x1400bdbf0]
xor rax, rsp
mov qword [rsp + 0x350], rax
mov rdi, rcx
mov r12, rdx
lea rdx, [r11 - 0x270]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetClientRect]
cmp qword [rdi + 0xa8], 0
je 0x140053c9a
mov rcx, qword [rdi + 0xa8]
mov rax, qword [rcx]
call qword [rax + 0x98]
mov rbx, rax
test rax, rax
je 0x1400535fb
mov r8, qword [rax]
lea rdx, [rsp + reloc.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____]
mov rcx, rax
call qword [r8 + 0x10]
mov r11, qword [rbx]
mov rdx, r12
mov rcx, rbx
call qword [r11 + 8]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1200
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
mov r15, rax
xor ebx, ebx
mov r13d, ebx
test eax, eax
jle 0x140053c9a
mov r14, rbx
nop word [rax + rax]
xor edx, edx
lea r8d, [rdx + 0x3c]
lea rcx, [rsp + 0xe4]
call sub.MSVCR90.dll_memset
mov dword [rsp + 0xe0], 6
mov word [rsp + 0x140], bx
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x142]
call sub.MSVCR90.dll_memset
lea r11, [rsp + 0x140]
mov qword [rsp + 0xe8], r11
mov dword [rsp + 0xf8], delete[]
lea r9, [rsp + 0xe0]
mov r8, r14
mov edx, 0x120b
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
lea r9, [rsp + 0x40]
mov r8, r14
mov edx, 0x1207
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rdi + 0xa8]
mov rax, qword [rcx]
call qword [rax + 0x78]
mov rcx, qword [rdi + 0xa8]
mov rax, qword [rcx]
call qword [rax + 0xa0]
mov rcx, qword [rdi + 0xa8]
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp dword [rdi + 0x264], r13d
jne 0x140053721
mov rcx, qword [rdi + 0xa8]
mov rax, qword [rcx]
call qword [rax + 0x88]
mov rbx, rax
mov rcx, qword [rdi + 0xa8]
mov rdx, qword [rcx]
call qword [rdx + 0xb0]
mov rsi, rax
mov rcx, qword [rdi + 0xa8]
mov rdx, qword [rcx]
call qword [rdx + 0x28]
mov ebp, eax
jmp 0x140053793
cmp dword [rdi + 0x260], r13d
jne 0x140053761
mov rcx, qword [rdi + 0xa8]
mov rax, qword [rcx]
call qword [rax + 0x80]
mov rbx, rax
mov rcx, qword [rdi + 0xa8]
mov rax, qword [rcx]
call qword [rax + 0xa8]
mov rsi, rax
mov rcx, qword [rdi + 0xa8]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov ebp, eax
jmp 0x140053793
mov rcx, qword [rdi + 0xa8]
mov rax, qword [rcx]
call qword [rax + 0x78]
mov rbx, rax
mov rcx, qword [rdi + 0xa8]
mov rax, qword [rcx]
call qword [rax + 0xa0]
mov rsi, rax
mov rcx, qword [rdi + 0xa8]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov ebp, eax
test rbx, rbx
je 0x1400537b3
mov rax, qword [rbx]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [rax + 0x10]
mov r11, qword [rbx]
mov rdx, r12
mov rcx, rbx
call qword [r11 + 8]
mov rdx, qword [rsp + 0xe8]
lea rcx, [rsp + 0xd0]
call qword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
nop
mov rax, qword [r12]
mov edx, ebp
mov rcx, r12
call qword [rax + 0x70]
mov ebp, eax
mov edx, 1
mov rcx, r12
call sub.mfc90u.dll_CDocument::ReleaseFile
mov r11, qword [r12]
mov rdx, rsi
mov rcx, r12
call qword [r11 + 0x60]
mov rsi, rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x70], xmm0
xor r8d, r8d
lea edx, [r8 - 6]
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_InflateRect]
add dword [rsp + 0x74], 4
mov ecx, dword [rsp + 0xfc]
bt ecx, 0x1e
jae 0x14005390e
cmp qword [rdi + 0xb0], 0
je 0x14005390e
cmp qword [rdi + 0xb8], 0
je 0x14005390e
bt ecx, 0x1f
jae 0x14005385d
mov rcx, qword [rdi + 0xb0]
mov rax, qword [rcx]
call qword [rax + 0x78]
mov rbx, rax
jmp 0x14005386d
mov rcx, qword [rdi + 0xb8]
mov rax, qword [rcx]
call qword [rax + 0x78]
mov rbx, rax
test rbx, rbx
je 0x140053907
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm0
xor r8d, r8d
lea rdx, [rsp + 0x98]
mov rcx, rbx
call fcn.140067220
mov r11d, dword [rsp + 0x20]
add r11d, 6
mov dword [rsp + 0x20], r11d
mov eax, dword [rsp + 0x2c]
sub eax, dword [rsp + 0x24]
mov r8d, dword [rsp + 0x9c]
sub eax, r8d
cdq
sub eax, edx
sar eax, 1
inc eax
mov dword [rsp + 0x24], eax
mov edx, dword [rsp + 0x98]
add edx, r11d
mov dword [rsp + 0x28], edx
add eax, r8d
mov dword [rsp + 0x2c], eax
mov rax, qword [rbx]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [rax + 0x10]
mov r11, qword [rbx]
mov rdx, r12
mov rcx, rbx
call qword [r11 + 8]
mov r11d, dword [rsp + 0x28]
add r11d, 6
mov dword [rsp + 0x70], r11d
mov ecx, dword [rsp + 0xfc]
jmp 0x14005390e
mov ecx, dword [rsp + 0xfc]
test cl, 2
je 0x14005391a
mov ebx, 0x825
jmp 0x140053933
movzx eax, byte [rsp + 0xfc]
and al, 1
mov ebx, 0x824
cmp al, 1
mov eax, 0x826
cmove ebx, eax
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0xc0], xmm0
mov rdx, qword [rsp + 0xe8]
lea rcx, [rsp + 0x90]
call qword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
nop
mov rax, qword [r12]
mov r9d, ebx
bts r9d, 0xa
lea r8, [rsp + 0xc0]
lea rdx, [rsp + 0x90]
mov rcx, r12
call qword [rax + pe_nt_image_headers64]
nop
lea rcx, [rsp + 0x90]
call qword [sym.imp.mfc90u.dll_CView::CView]
mov rdx, qword [rsp + 0xe8]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
nop
mov rax, qword [r12]
mov r9d, ebx
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0xa0]
mov rcx, r12
call qword [rax + pe_nt_image_headers64]
nop
lea rcx, [rsp + 0xa0]
call qword [sym.imp.mfc90u.dll_CView::CView]
mov r11, qword [r12]
mov rdx, rsi
mov rcx, r12
call qword [r11 + 0x60]
mov r11, qword [r12]
mov edx, ebp
mov rcx, r12
call qword [r11 + 0x70]
bt dword [rsp + 0xfc], 0xa
jae 0x140053b3b
test byte [rdi + 0x274], 1
je 0x140053a9f
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x30], xmm0
lea rcx, [rdi + 0x2f0]
xor r8d, r8d
lea rdx, [rsp + 0xb0]
call fcn.140067220
mov r11d, dword [rsp + 0xc8]
add r11d, 5
mov dword [rsp + 0x30], r11d
mov rcx, qword [rsp + 0xb0]
lea eax, [rcx + r11]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x3c]
sub eax, dword [rsp + 0x34]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x34], eax
mov ecx, dword [rsp + 0xb4]
add eax, ecx
mov dword [rsp + 0x3c], eax
mov rax, qword [rdi + 0x2b0]
lea rdx, [rsp + 0x30]
lea rcx, [rdi + 0x2b0]
call qword [rax + 0x10]
mov r11, qword [rdi + 0x2b0]
mov r8d, 0xff00ff
mov rdx, r12
lea rcx, [rdi + 0x2b0]
call qword [r11 + 0x38]
jmp 0x140053b3b
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x80], xmm0
xor r8d, r8d
lea rdx, [rsp + 0xb8]
lea rcx, [rdi + 0x2b0]
call fcn.140067220
mov eax, dword [rsp + 0x88]
mov r9d, dword [rsp + 0x80]
sub eax, r9d
mov r8, qword [rsp + 0xb8]
sub eax, r8d
cdq
sub eax, edx
sar eax, 1
add r9d, eax
mov dword [rsp + 0x80], r9d
lea eax, [r9 + r8]
mov dword [rsp + 0x88], eax
mov dword [rsp + 0x84], 2
mov rax, qword [rdi + 0x2b0]
lea rdx, [rsp + 0x80]
lea rcx, [rdi + 0x2b0]
call qword [rax + 0x10]
mov r11, qword [rdi + 0x2b0]
mov r8d, 0xff00ff
mov rdx, r12
lea rcx, [rdi + 0x2b0]
call qword [r11 + 0x38]
bt dword [rsp + 0xfc], 9
jae 0x140053c78
test byte [rdi + 0x274], 1
je 0x140053bf0
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x50], xmm0
xor r8d, r8d
lea rdx, [rsp + 0xa8]
lea rcx, [rdi + 0x2f0]
call fcn.140067220
mov r11d, dword [rsp + 0xc8]
add r11d, 5
mov dword [rsp + 0x50], r11d
mov rcx, qword [rsp + 0xa8]
lea eax, [rcx + r11]
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x5c]
sub eax, dword [rsp + 0x54]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x54], eax
mov edx, dword [rsp + 0xac]
add eax, edx
mov dword [rsp + 0x5c], eax
mov rax, qword [rdi + 0x2f0]
lea rdx, [rsp + 0x50]
lea rcx, [rdi + 0x2f0]
call qword [rax + 0x10]
mov r11, qword [rdi + 0x2f0]
mov r8d, 0xff00ff
mov rdx, r12
lea rcx, [rdi + 0x2f0]
call qword [r11 + 0x38]
jmp 0x140053c78
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x60], xmm0
xor r8d, r8d
lea rdx, [rsp + 0xd8]
lea rcx, [rdi + 0x2f0]
call fcn.140067220
mov eax, dword [rsp + 0x68]
mov r9d, dword [rsp + 0x60]
sub eax, r9d
mov r8, qword [rsp + 0xd8]
sub eax, r8d
cdq
sub eax, edx
sar eax, 1
add r9d, eax
mov dword [rsp + 0x60], r9d
lea eax, [r9 + r8]
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x64], 2
mov rax, qword [rdi + 0x2f0]
lea rdx, [rsp + 0x60]
lea rcx, [rdi + 0x2f0]
call qword [rax + 0x10]
mov r11, qword [rdi + 0x2f0]
mov r8d, 0xff00ff
mov rdx, r12
lea rcx, [rdi + 0x2f0]
call qword [r11 + 0x38]
nop
lea rcx, [rsp + 0xd0]
call qword [sym.imp.mfc90u.dll_CView::CView]
inc r13d
inc r14
cmp r13d, r15d
mov ebx, 0
jl 0x140053630
mov rcx, qword [rsp + 0x350]
xor rcx, rsp
call fcn.14004d770
mov rbx, qword [rsp + 0x3b0]
add rsp, 0x360
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret