Function at 0x140052ea0
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, 0x350
mov qword [rsp + 0x120], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov rax, qword [0x1400bdbf0]
xor rax, rsp
mov qword [rsp + 0x340], rax
mov rbp, rcx
mov r12, rdx
lea rdx, [r11 - 0x278]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetClientRect]
mov rax, qword [rbp + 0xc0]
lea rdx, [rsp + 0x110]
lea rcx, [rbp + 0xc0]
call qword [rax + 0x10]
mov r11, qword [rbp + 0xc0]
mov rdx, r12
lea rcx, [rbp + 0xc0]
call qword [r11 + 8]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1200
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
mov r15, rax
xor r13d, r13d
mov r14d, r13d
test eax, eax
jle 0x140053526
mov rbx, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x80]
nop word [rax + rax]
xor edx, edx
lea r8d, [rdx + 0x3c]
lea rcx, [rsp + 0xd4]
call sub.MSVCR90.dll_memset
mov dword [rsp + 0xd0], 6
mov word [rsp + 0x130], r13w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x132]
call sub.MSVCR90.dll_memset
lea r11, [rsp + 0x130]
mov qword [rsp + 0xd8], r11
mov dword [rsp + 0xe8], delete[]
movsxd rsi, r14d
lea r9, [rsp + 0xd0]
mov r8, rsi
mov edx, 0x120b
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
lea r9, [rsp + 0x70]
mov r8, rsi
mov edx, 0x1207
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
cmp dword [rbp + 0x264], r14d
jne 0x140053021
mov rax, qword [rbp + 0x198]
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x198]
call qword [rax + 0x10]
mov r11, qword [rbp + 0x198]
mov rdx, r12
lea rcx, [rbp + 0x198]
call qword [r11 + 8]
jmp 0x140053082
cmp dword [rbp + 0x260], r14d
jne 0x140053057
mov rax, qword [rbp + 0x150]
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x150]
call qword [rax + 0x10]
mov r11, qword [rbp + 0x150]
mov rdx, r12
lea rcx, [rbp + 0x150]
call qword [r11 + 8]
jmp 0x140053082
mov rax, qword [rbp + 0x108]
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x108]
call qword [rax + 0x10]
mov r11, qword [rbp + 0x108]
mov rdx, r12
lea rcx, [rbp + 0x108]
call qword [r11 + 8]
mov eax, dword [rsp + 0xec]
bt eax, 0xa
jae 0x1400531bb
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0xa0], xmm0
cmp dword [rbp + 0x2e8], 0
jg 0x1400530b2
mov ecx, r13d
jmp 0x140053146
cmp dword [rbp + 0x2e8], 0
jle 0x1400534e4
mov rax, qword [rbp + 0x2e0]
cmp qword [rax], 0
je 0x14005313c
cmp dword [rbp + 0x2e8], 0
jle 0x1400534ce
mov rcx, qword [rax]
mov dword [rsp + 0x60], r13d
mov dword [rsp + 0x64], r13d
test rcx, rcx
je 0x140053137
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x140053137
mov dword [rsp + 0x20], r13d
xor eax, eax
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x2c], eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x3c], eax
lea r8, [rsp + 0x20]
lea edx, [rax + 0x20]
call qword [sym.imp.GDI32.dll_GetObjectW]
mov r11d, dword [rsp + 0x24]
mov dword [rsp + 0x60], r11d
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x64], eax
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x88], rbx
mov ecx, ebx
mov eax, dword [rsp + 0xa8]
mov r8d, dword [rsp + 0xa0]
sub eax, r8d
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add r8d, eax
mov dword [rsp + 0xa0], r8d
lea eax, [r8 + rcx]
mov dword [rsp + 0xa8], eax
mov dword [rsp + 0xa4], 2
mov rax, qword [rbp + 0x2b0]
lea rdx, [rsp + 0xa0]
lea rcx, [rbp + 0x2b0]
call qword [rax + 0x10]
mov r11, qword [rbp + 0x2b0]
mov r8d, 0xff00ff
mov rdx, r12
lea rcx, [rbp + 0x2b0]
call qword [r11 + 0x38]
mov eax, dword [rsp + 0xec]
bt eax, 9
jae 0x1400532e6
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x90], xmm0
cmp dword [rbp + 0x328], 0
jg 0x1400531e4
mov ecx, r13d
jmp 0x140053278
cmp dword [rbp + 0x328], 0
jle 0x140053510
mov rax, qword [rbp + 0x320]
cmp qword [rax], 0
je 0x14005326e
cmp dword [rbp + 0x328], 0
jle 0x1400534fa
mov rcx, qword [rax]
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x44], r13d
test rcx, rcx
je 0x140053269
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x140053269
mov dword [rsp + 0x20], r13d
xor eax, eax
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x2c], eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x3c], eax
lea r8, [rsp + 0x20]
lea edx, [rax + 0x20]
call qword [sym.imp.GDI32.dll_GetObjectW]
mov r11d, dword [rsp + 0x24]
mov dword [rsp + 0x40], r11d
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x44], eax
mov rdi, qword [rsp + 0x40]
mov qword [rsp + 0x88], rdi
mov ecx, edi
mov eax, dword [rsp + 0x98]
mov r8d, dword [rsp + 0x90]
sub eax, r8d
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add r8d, eax
mov dword [rsp + 0x90], r8d
lea eax, [r8 + rcx]
mov dword [rsp + 0x98], eax
mov dword [rsp + 0x94], 2
mov rax, qword [rbp + 0x2f0]
lea rdx, [rsp + 0x90]
lea rcx, [rbp + 0x2f0]
call qword [rax + 0x10]
mov r11, qword [rbp + 0x2f0]
mov r8d, 0xff00ff
mov rdx, r12
lea rcx, [rbp + 0x2f0]
call qword [r11 + 0x38]
mov rdx, qword [rsp + 0xd8]
lea rcx, [rsp + 0x80]
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]
xor edx, edx
mov rcx, r12
call qword [rax + 0x70]
mov edx, 1
mov rcx, r12
call sub.mfc90u.dll_CDocument::ReleaseFile
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x31]
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, rax
call fcn.14004d0e2
mov r8, qword [r12]
mov rdx, rax
mov rcx, r12
call qword [r8 + 0x60]
mov r13, rax
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0xb0], xmm0
xor r8d, r8d
lea edx, [r8 - 6]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.USER32.dll_InflateRect]
add dword [rsp + 0xb4], 4
mov r8d, dword [rsp + 0xec]
bt r8d, 0x1e
jae 0x140053435
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x50], xmm0
mov ecx, dword [rsp + 0x70]
add ecx, 6
mov dword [rsp + 0x50], ecx
mov rax, qword [rsp + 0x58]
shr rax, 0x20
sub eax, dword [rsp + 0x54]
sub eax, 0xd
cdq
sub eax, edx
sar eax, 1
inc eax
mov dword [rsp + 0x54], eax
add ecx, 0xd
mov dword [rsp + 0x58], ecx
add eax, 0xd
mov dword [rsp + 0x5c], eax
bt r8d, 0x1f
jae 0x1400533f4
mov rax, qword [rbp + 0x1e0]
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x1e0]
call qword [rax + 0x10]
mov r11, qword [rbp + 0x1e0]
mov rdx, r12
lea rcx, [rbp + 0x1e0]
call qword [r11 + 8]
jmp 0x14005341f
mov rax, qword [rbp + 0x220]
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x220]
call qword [rax + 0x10]
mov r11, qword [rbp + 0x220]
mov rdx, r12
lea rcx, [rbp + 0x220]
call qword [r11 + 8]
mov eax, dword [rsp + 0x58]
add eax, 6
mov dword [rsp + 0xb0], eax
mov r8d, dword [rsp + 0xec]
test r8b, 2
je 0x140053442
mov esi, 0x825
jmp 0x14005345b
movzx eax, byte [rsp + 0xec]
and al, 1
mov esi, 0x824
cmp al, 1
mov eax, 0x826
cmove esi, eax
mov rdx, qword [rsp + 0xd8]
lea rcx, [rsp + 0xc0]
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, esi
lea r8, [rsp + 0xb0]
lea rdx, [rsp + 0xc0]
mov rcx, r12
call qword [rax + pe_nt_image_headers64]
nop
lea rcx, [rsp + 0xc0]
call qword [sym.imp.mfc90u.dll_CView::CView]
mov r11, qword [r12]
mov rdx, r13
mov rcx, r12
call qword [r11 + 0x60]
nop
lea rcx, [rsp + 0x80]
call qword [sym.imp.mfc90u.dll_CView::CView]
inc r14d
cmp r14d, r15d
jge 0x140053526
xor r13d, r13d
jmp 0x140052f60
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov ecx, 0xc000008c
call qword [sym.imp.KERNEL32.dll_RaiseException]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov ecx, 0xc000008c
call qword [sym.imp.KERNEL32.dll_RaiseException]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov ecx, 0xc000008c
call qword [sym.imp.KERNEL32.dll_RaiseException]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov ecx, 0xc000008c
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rcx, qword [rsp + 0x340]
xor rcx, rsp
call fcn.14004d770
mov rbx, qword [rsp + 0x3a0]
add rsp, 0x350
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret