Function at 0x14004bde0
Capabilities:
Enumerate gui resources

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x500
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400ece98]
xor rax, rsp
mov qword [rsp + reloc.MFC42u.dll_AfxThrowUserException], rax
mov rbx, rcx
mov qword [rsp + 0x38], rcx
xor edi, edi
mov r15d, edi
mov dword [rsp + 0x30], edi
call fcn.14004ea2c
mov eax, dword [0x1400ee7c0]
lea esi, [rdi + 1]
test sil, al
je 0x14004be59
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, esi
lea rdx, [0x1400a4040]
call fcn.140016d78
mov eax, dword [0x1400ee7c0]
test al, 4
je 0x14004be76
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, esi
lea rdx, [0x1400a4000]
call fcn.140016d78
xor r9d, r9d
xor r8d, r8d
mov edx, esi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapSetInformation]
nop dword [rax + rax]
lea rdx, [rbx + 0x190]
mov rcx, rbx
call qword [sym.imp.MFC42u.dll_CMapWordToPtr::RemoveKey]
nop dword [rax + rax]
xor edx, edx
lea rcx, str.WordPadClass
call qword [sym.imp.USER32.dll_FindWindowW]
nop dword [rax + rax]
test rax, rax
je 0x14004bf2c
mov rdx, qword [rbx + 0x1a8]
cmp word [rdx], di
je 0x14004bf2c
lea rcx, [rsp + 0xd0]
call qword [sym.imp.MFC42u.dll_Ordinal_1447]
nop dword [rax + rax]
lea rcx, [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
nop dword [rax + rax]
mov word [rsp + 0x30], ax
test ax, ax
je 0x14004bf2c
lea rdx, [rsp + 0x30]
lea rcx, [0x14004c840]
call qword [sym.imp.USER32.dll_EnumWindows]
nop dword [rax + rax]
movzx ecx, word [rsp + 0x30]
test cx, cx
je 0x14004c34c
call qword [sym.imp.KERNEL32.dll_DeleteAtom]
nop dword [rax + rax]
lea rdx, str.MicrosoftWindowsCurrentVersionApplets
mov rcx, rbx
call qword [sym.imp.MFC42u.dll_CHtmlView::CHtmlView]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x118]
test rcx, rcx
je 0x14004bf5a
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
lea r13, str.Wordpad
mov rcx, r13
call qword [sym.imp.msvcrt.dll__wcsdup]
nop dword [rax + rax]
mov qword [rbx + 0x118], rax
call fcn.1400647f8
call fcn.1400648c0
mov rcx, rbx
call fcn.14004c97c
cmp dword [rbx + 0x19c], edi
jne 0x14004bfc0
mov eax, dword [rbx + 0xe0]
cmp eax, esi
je 0x14004bfb1
mov esi, eax
cmp eax, 2
jle 0x14004bfc6
cmp eax, 5
jle 0x14004bfb1
cmp eax, 7
jle 0x14004bfc6
cmp eax, 0xa
jg 0x14004bfc6
mov esi, eax
cmp dword [rbx + reloc.MFC42u.dll_CString::CString], edi
je 0x14004bfc6
mov esi, 3
mov dword [rbx + 0xe0], esi
lea rdi, [0x1400eea34]
lea r14, [0x1400eea40]
mov r12d, SafeArrayGetDim
mov edx, dword [rdi]
mov rcx, r14
call qword [sym.imp.MFC42u.dll_CPropertySheet::OnCtlColor]
nop dword [rax + rax]
add r14, 0x28
lea rdi, [rdi + 0x28]
sub r12, 1
jne 0x14004bfda
mov rcx, qword [rbx + 0x110]
xor edi, edi
test rcx, rcx
je 0x14004c013
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
lea rcx, str.WORDPAD.HLP
call qword [sym.imp.msvcrt.dll__wcsdup]
nop dword [rax + rax]
mov qword [rbx + 0x110], rax
lea rcx, str.SoftwareMicrosoftWindowsCurrentVersionWordpadCOMChecks
call fcn.140064684
mov dword [0x1400ef130], eax
xor ecx, ecx
call qword [sym.imp.ole32.dll_OleInitialize]
nop dword [rax + rax]
test eax, eax
je 0x14004c08a
or r8d, 0xffffffff
xor edx, edx
lea ecx, [rdx + 0x64]
call qword [sym.imp.MFC42u.dll_Ordinal_1498]
nop dword [rax + rax]
test byte [0x1400ee7c0], 2
je 0x14004c34c
lea rax, [rsp + 0x58]
mov r9d, 1
lea rdx, [0x1400a3fc0]
jmp 0x14004c2ea
mov r14d, 1
mov dword [rbx + reloc.MFC42u.dll_COleVariant::operator], r14d
cmp dword [0x1400ef130], edi
je 0x14004c10c
mov rcx, qword [0x1400c0190]
mov rax, qword [0x1400c0198]
cmp rcx, qword [0x1400a3b40]
jne 0x14004c0bf
cmp rax, qword [0x1400a3b48]
je 0x14004c0d9
cmp rcx, qword [0x1400a3b80]
jne 0x14004c34c
cmp rax, qword [0x1400a3b88]
jne 0x14004c34c
mov rax, qword [str._v_t_]
lea rcx, str._v_t_
mov rax, qword [rax + 8]
call qword [case.0x14004e05b.0]
lea rcx, str._v_t_
call qword [sym.imp.ole32.dll_CoRegisterActivationFilter]
nop dword [rax + rax]
test eax, eax
js 0x14004c34c
lea rcx, str.Embedded_Object
call qword [sym.imp.USER32.dll_RegisterClipboardFormatW]
nop dword [rax + rax]
mov word [0x1400ee92c], ax
lea rcx, str.Rich_Text_Format
call qword [sym.imp.USER32.dll_RegisterClipboardFormatW]
nop dword [rax + rax]
mov word [0x1400ee90c], ax
lea rcx, str.RichEdit_Text_and_Objects
call qword [sym.imp.USER32.dll_RegisterClipboardFormatW]
nop dword [rax + rax]
mov word [0x1400ee928], ax
lea rcx, str.MSFTEDIT.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
nop dword [rax + rax]
test rax, rax
jne 0x14004c1a9
or r8d, 0xffffffff
lea edx, [rax + 0x30]
lea ecx, [rax + 0x6c]
call qword [sym.imp.MFC42u.dll_Ordinal_1498]
nop dword [rax + rax]
test byte [0x1400ee7c0], 2
je 0x14004c34c
lea rax, [rsp + 0x58]
mov r9d, r14d
lea rdx, [0x1400a4020]
jmp 0x14004c2ea
lea rcx, str._CTF_ENABLE_PROCESS_ATOM_
call qword [sym.imp.KERNEL32.dll_AddAtomW]
nop dword [rax + rax]
mov word [rbx + 0x350], ax
lea rcx, str._CTF_PROCESS_ATOM_
call qword [sym.imp.KERNEL32.dll_AddAtomW]
nop dword [rax + rax]
mov word [rbx + 0x352], ax
mov edx, 9
mov rcx, rbx
call qword [sym.imp.MFC42u.dll_CPropertyPage::OnCtlColor]
nop dword [rax + rax]
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 5]
lea rcx, [0x1400eefc0]
call qword [sym.imp.MFC42u.dll_CThreadData::CThreadData]
nop dword [rax + rax]
lea rcx, [rbx + 0x2b0]
mov r9d, r14d
lea r8, [0x1400eefc0]
lea rdx, [0x1400c01a0]
call qword [sym.imp.MFC42u.dll_ConstructElements]
nop dword [rax + rax]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 4
xor r9d, r9d
lea r8d, [r9 - 0xf]
mov rdx, rbx
lea rcx, [0x14004db90]
call qword [sym.imp.MFC42u.dll_Ordinal_1404]
nop dword [rax + rax]
mov qword [rbx + 0x348], rax
test rax, rax
je 0x14004c287
mov dword [rax + 0x50], edi
mov rcx, qword [rbx + 0x348]
mov rcx, qword [rcx + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
nop dword [rax + rax]
lea rax, [rbx + 0x178]
mov qword [rsp + 0x20], rax
lea r9, [0x1400c01b0]
mov r8d, r14d
xor edx, edx
lea rcx, [0x1400a4ca0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
nop dword [rax + rax]
test eax, eax
jns 0x14004c2f6
test byte [0x1400ee7c0], 2
je 0x14004c34c
lea rax, str.CoCreateInstance_Failed.
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], 0x32
lea rax, [rsp + 0x58]
mov r9d, 2
lea rdx, [0x1400a4178]
mov qword [rsp + 0x20], rax
call fcn.140016d78
jmp 0x14004c34c
cmp dword [rbx + 0x19c], edi
jne 0x14004c7a5
cmp dword [rbx + 0x1a0], edi
jne 0x14004c7a5
mov dword [rbx + reloc.MFC42u.dll_CTabCtrl::CTabCtrl], r14d
lea rcx, [rbx + 0x1f0]
mov edx, 0xf03e
call qword [sym.imp.MFC42u.dll_CPropertySheet::OnCtlColor]
nop dword [rax + rax]
mov rcx, rbx
call fcn.14004d360
mov dword [rbx + reloc.MFC42u.dll_CTabCtrl::CTabCtrl], edi
or r14, 0xffffffffffffffff
mov dword [rbx + 0xe0], r14d
cmp qword [rbx + 0x40], rdi
jne 0x14004c353
xor eax, eax
jmp 0x14004c806
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0xf8]
call qword [case.0x14004e05b.0]
mov rcx, rax
call qword [sym.imp.MFC42u.dll_COleControl::XDataObject::GetCanonicalFormatEtc]
nop dword [rax + rax]
mov r12, qword [rax + 0x80]
mov ecx, 0x50
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetDayState]
nop dword [rax + rax]
mov rdi, rax
mov qword [rsp + 0x40], rax
xor eax, eax
test rdi, rdi
je 0x14004c40c
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rax
mov word [rsp + 0x60], ax
lea r8d, [rax + 8]
lea rdx, str._restart
lea rcx, [rsp + 0x58]
call fcn.14000c838
nop
mov r15d, 1
mov dword [rsp + 0x30], r15d
xor eax, eax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rax
lea rcx, [rdi + 0x20]
mov qword [rcx + 0x20], 7
mov qword [rcx + 0x18], rax
mov word [rcx + 8], ax
mov r9, r14
xor r8d, r8d
lea rdx, [rsp + 0x58]
call fcn.14000cd4c
and dword [rdi + 0x48], 0
mov dword [rdi + 0x4c], r15d
jmp 0x14004c40f
mov rdi, rax
mov qword [rbx + 0x358], rdi
test r15b, 1
je 0x14004c439
and r15d, 0xfffffffe
cmp qword [rsp + 0x78], 8
jb 0x14004c439
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
call qword [sym.imp.MFC42u.dll_Ordinal_1463]
nop dword [rax + rax]
cmp qword [rax + 0x20], 0
cmovne r13, qword [rax + 0x20]
mov ecx, 0x50
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetDayState]
nop dword [rax + rax]
mov rdi, rax
mov qword [rsp + 0x40], rax
xor eax, eax
test rdi, rdi
je 0x14004c521
mov qword [rsp + 0xa0], 7
mov qword [rsp + 0x98], rax
mov word [rsp + 0x88], ax
mov r8, r14
inc r8
cmp word [r13 + r8*2], ax
jne 0x14004c492
mov rdx, r13
lea rcx, [rsp + 0x80]
call fcn.14000c838
nop
or r15d, 2
mov dword [rsp + 0x30], r15d
mov rax, qword [rbx + 0x358]
mov qword [rdi + 0x38], 7
xor r13d, r13d
mov qword [rdi + 0x30], r13
mov word [rdi + 0x20], r13w
mov qword [rdi], rax
mov dword [rdi + 0x40], 5
mov qword [rdi + 0x44], 0x12c
mov dword [rdi + 0x4c], 1
mov ecx, 0x90
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetDayState]
nop dword [rax + rax]
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14004c518
lea rdx, [rsp + 0x80]
mov rcx, rax
call fcn.1400717b0
jmp 0x14004c51b
mov rax, r13
mov qword [rdi + 8], rax
jmp 0x14004c527
xor r13d, r13d
mov edi, r13d
mov qword [rbx + 0x360], rdi
test r15b, 2
je 0x14004c553
cmp qword [rsp + 0xa0], 8
jb 0x14004c553
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
mov ecx, SafeArrayCopy
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetDayState]
nop dword [rax + rax]
mov rcx, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14004c581
lea rax, vtable.CWordPadRecoveryCallback.0
mov qword [rcx], rax
mov qword [rcx + 0x10], r12
jmp 0x14004c584
mov rcx, r13
mov qword [rbx + 0x368], rcx
mov rax, qword [rbx + 0x360]
mov qword [rax + 0x10], rcx
mov rax, qword [rax + 8]
mov qword [rcx + 8], rax
mov rdx, qword [rbx + 0xd8]
mov qword [rsp + 0xa0], 7
mov qword [rsp + 0x98], r13
mov word [rsp + 0x88], r13w
inc r14
cmp word [rdx + r14*2], r13w
jne 0x14004c5c2
mov r8, r14
lea rcx, [rsp + 0x80]
call fcn.14000c838
nop
lea rdx, [rsp + 0x80]
mov rcx, qword [rbx + 0x358]
call fcn.14006f2dc
mov edi, eax
cmp qword [rsp + 0xa0], 8
jb 0x14004c612
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
test edi, edi
je 0x14004c636
mov rcx, qword [rbx + 0x360]
call fcn.14006df6c
mov rcx, qword [rbx + 0x360]
call fcn.14006e6a0
mov dword [rbx + 0xe0], esi
jmp 0x14004c69f
lea rcx, [rsp + 0x58]
call qword [sym.imp.MFC42u.dll_CButton::CButton]
nop dword [rax + rax]
nop
mov rax, qword [rbx + 0x1a8]
cmp dword [rax - 8], r13d
je 0x14004c65b
mov dword [rbx + 0xe0], esi
cmp dword [rbx + 0x1a4], r13d
je 0x14004c692
lea rdx, [rbx + 0x190]
mov rcx, rbx
call qword [sym.imp.MFC42u.dll_COleServerDoc::XPersistStorage::Save]
nop dword [rax + rax]
test eax, eax
jne 0x14004c692
call qword [sym.imp.MFC42u.dll_CMemFile::Alloc]
nop dword [rax + rax]
nop
xor eax, eax
jmp 0x14004c806
call qword [sym.imp.MFC42u.dll_CMemFile::Alloc]
nop dword [rax + rax]
nop
mov r14d, 1
mov edx, r14d
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.MFC42u.dll_CDragListBox::DrawInsert]
nop dword [rax + rax]
xor r9d, r9d
lea r8d, [r14 + 4]
lea rdx, [rsp + 0x2e0]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
nop dword [rax + rax]
test eax, eax
je 0x14004c6ed
lea rcx, [rsp + 0x2e0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
nop dword [rax + rax]
test byte [0x1400ee7c0], 4
je 0x14004c70f
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, r14d
lea rdx, [0x1400a4268]
call fcn.140016d78
mov rdx, qword [rbx + 0x360]
imul r8d, dword [rdx + 0x40], 0x3e8
xor r9d, r9d
lea rcx, [0x14006e540]
call qword [sym.imp.KERNEL32.dll_RegisterApplicationRecoveryCallback]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x360]
lea rdx, [rsp + 0xa8]
mov rcx, qword [rcx + 8]
call fcn.140072b94
nop
lea rdx, [rsp + 0xa8]
mov rcx, qword [rbx + 0x358]
call fcn.14006f728
mov rcx, qword [rbx + 0x358]
call fcn.14006f610
nop
cmp qword [rsp + 0xc8], 8
jb 0x14004c803
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
jmp 0x14004c803
test byte [0x1400ee7c0], r14b
je 0x14004c7c7
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, r14d
lea rdx, [0x1400a4258]
call fcn.140016d78
call qword [sym.imp.MFC42u.dll_CPreviewDC::SetBkColor]
nop dword [rax + rax]
xor ecx, ecx
call qword [sym.imp.MFC42u.dll_Ordinal_1519]
nop dword [rax + rax]
test byte [0x1400ee7c0], 4
je 0x14004c803
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, r14d
lea rdx, [0x1400a4268]
call fcn.140016d78
mov eax, r14d
mov rcx, qword [rsp + reloc.MFC42u.dll_AfxThrowUserException]
xor rcx, rsp
call fcn.1400842d0
lea r11, [rsp + 0x500]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret