Function at 0x14004ad90
Capabilities:
Enumerate gui resources
Get common file path
Resume thread
Set current directory

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 [0x1400ebe98]
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.14004d9dc
mov eax, dword [0x1400ed740]
lea esi, [rdi + 1]
test sil, al
je 0x14004ae09
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, esi
lea rdx, [0x1400a3058]
call fcn.140016e58
mov eax, dword [0x1400ed740]
test al, 4
je 0x14004ae26
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, esi
lea rdx, [0x1400a3018]
call fcn.140016e58
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 0x14004aedc
mov rdx, qword [rbx + 0x1a8]
cmp word [rdx], di
je 0x14004aedc
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 0x14004aedc
lea rdx, [rsp + 0x30]
lea rcx, [0x14004b7f0]
call qword [sym.imp.USER32.dll_EnumWindows]
nop dword [rax + rax]
movzx ecx, word [rsp + 0x30]
test cx, cx
je 0x14004b2fc
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 0x14004af0a
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.1400637a8
call fcn.140063870
mov rcx, rbx
call fcn.14004b92c
cmp dword [rbx + 0x19c], edi
jne 0x14004af70
mov eax, dword [rbx + 0xe0]
cmp eax, esi
je 0x14004af61
mov esi, eax
cmp eax, 2
jle 0x14004af76
cmp eax, 5
jle 0x14004af61
cmp eax, 7
jle 0x14004af76
cmp eax, 0xa
jg 0x14004af76
mov esi, eax
cmp dword [rbx + reloc.MFC42u.dll_CString::CString], edi
je 0x14004af76
mov esi, 3
mov dword [rbx + 0xe0], esi
lea rdi, [0x1400ed9b4]
lea r14, [0x1400ed9c0]
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 0x14004af8a
mov rcx, qword [rbx + 0x110]
xor edi, edi
test rcx, rcx
je 0x14004afc3
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.140063634
mov dword [0x1400ee078], eax
xor ecx, ecx
call qword [sym.imp.ole32.dll_OleInitialize]
nop dword [rax + rax]
test eax, eax
je 0x14004b03a
or r8d, 0xffffffff
xor edx, edx
lea ecx, [rdx + 0x64]
call qword [sym.imp.MFC42u.dll_Ordinal_1498]
nop dword [rax + rax]
test byte [0x1400ed740], 2
je 0x14004b2fc
lea rax, [rsp + 0x58]
mov r9d, 1
lea rdx, [0x1400a2fd8]
jmp 0x14004b29a
mov r14d, 1
mov dword [rbx + reloc.MFC42u.dll_COleVariant::operator], r14d
cmp dword [0x1400ee078], edi
je 0x14004b0bc
mov rcx, qword [0x1400bf1b0]
mov rax, qword [0x1400bf1b8]
cmp rcx, qword [0x1400a2b00]
jne 0x14004b06f
cmp rax, qword [0x1400a2b08]
je 0x14004b089
cmp rcx, qword [0x1400a2b40]
jne 0x14004b2fc
cmp rax, qword [0x1400a2b48]
jne 0x14004b2fc
mov rax, qword [str._f_t_]
lea rcx, str._f_t_
mov rax, qword [rax + 8]
call qword [str._N_b_]
lea rcx, str._f_t_
call qword [sym.imp.ole32.dll_CoRegisterActivationFilter]
nop dword [rax + rax]
test eax, eax
js 0x14004b2fc
lea rcx, str.Embedded_Object
call qword [sym.imp.USER32.dll_RegisterClipboardFormatW]
nop dword [rax + rax]
mov word [0x1400ed8ac], ax
lea rcx, str.Rich_Text_Format
call qword [sym.imp.USER32.dll_RegisterClipboardFormatW]
nop dword [rax + rax]
mov word [0x1400ed88c], ax
lea rcx, str.RichEdit_Text_and_Objects
call qword [sym.imp.USER32.dll_RegisterClipboardFormatW]
nop dword [rax + rax]
mov word [0x1400ed8a8], ax
lea rcx, str.MSFTEDIT.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
nop dword [rax + rax]
test rax, rax
jne 0x14004b159
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 [0x1400ed740], 2
je 0x14004b2fc
lea rax, [rsp + 0x58]
mov r9d, r14d
lea rdx, [0x1400a3038]
jmp 0x14004b29a
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, [0x1400edf40]
call qword [sym.imp.MFC42u.dll_CThreadData::CThreadData]
nop dword [rax + rax]
lea rcx, [rbx + 0x2b0]
mov r9d, r14d
lea r8, [0x1400edf40]
lea rdx, [0x1400bf1c0]
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, [0x14004cb40]
call qword [sym.imp.MFC42u.dll_Ordinal_1404]
nop dword [rax + rax]
mov qword [rbx + 0x348], rax
test rax, rax
je 0x14004b237
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, [0x1400bf1d0]
mov r8d, r14d
xor edx, edx
lea rcx, [0x1400a3cc0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
nop dword [rax + rax]
test eax, eax
jns 0x14004b2a6
test byte [0x1400ed740], 2
je 0x14004b2fc
lea rax, str.CoCreateInstance_Failed.
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], 0x32
lea rax, [rsp + 0x58]
mov r9d, 2
lea rdx, [0x1400a3190]
mov qword [rsp + 0x20], rax
call fcn.140016e58
jmp 0x14004b2fc
cmp dword [rbx + 0x19c], edi
jne 0x14004b755
cmp dword [rbx + 0x1a0], edi
jne 0x14004b755
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.14004c310
mov dword [rbx + reloc.MFC42u.dll_CTabCtrl::CTabCtrl], edi
or r14, 0xffffffffffffffff
mov dword [rbx + 0xe0], r14d
cmp qword [rbx + 0x40], rdi
jne 0x14004b303
xor eax, eax
jmp 0x14004b7b6
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0xf8]
call qword [str._N_b_]
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 0x14004b3bc
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.14000c90c
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.14000ce2c
and dword [rdi + 0x48], 0
mov dword [rdi + 0x4c], r15d
jmp 0x14004b3bf
mov rdi, rax
mov qword [rbx + 0x358], rdi
test r15b, 1
je 0x14004b3e9
and r15d, 0xfffffffe
cmp qword [rsp + 0x78], 8
jb 0x14004b3e9
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 0x14004b4d1
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 0x14004b442
mov rdx, r13
lea rcx, [rsp + 0x80]
call fcn.14000c90c
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 0x14004b4c8
lea rdx, [rsp + 0x80]
mov rcx, rax
call fcn.140070760
jmp 0x14004b4cb
mov rax, r13
mov qword [rdi + 8], rax
jmp 0x14004b4d7
xor r13d, r13d
mov edi, r13d
mov qword [rbx + 0x360], rdi
test r15b, 2
je 0x14004b503
cmp qword [rsp + 0xa0], 8
jb 0x14004b503
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 0x14004b531
lea rax, vtable.CWordPadRecoveryCallback.0
mov qword [rcx], rax
mov qword [rcx + 0x10], r12
jmp 0x14004b534
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 0x14004b572
mov r8, r14
lea rcx, [rsp + 0x80]
call fcn.14000c90c
nop
lea rdx, [rsp + 0x80]
mov rcx, qword [rbx + 0x358]
call fcn.14006e28c
mov edi, eax
cmp qword [rsp + 0xa0], 8
jb 0x14004b5c2
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
test edi, edi
je 0x14004b5e6
mov rcx, qword [rbx + 0x360]
call fcn.14006cf1c
mov rcx, qword [rbx + 0x360]
call fcn.14006d650
mov dword [rbx + 0xe0], esi
jmp 0x14004b64f
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 0x14004b60b
mov dword [rbx + 0xe0], esi
cmp dword [rbx + 0x1a4], r13d
je 0x14004b642
lea rdx, [rbx + 0x190]
mov rcx, rbx
call qword [sym.imp.MFC42u.dll_COleServerDoc::XPersistStorage::Save]
nop dword [rax + rax]
test eax, eax
jne 0x14004b642
call qword [sym.imp.MFC42u.dll_CMemFile::Alloc]
nop dword [rax + rax]
nop
xor eax, eax
jmp 0x14004b7b6
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 0x14004b69d
lea rcx, [rsp + 0x2e0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
nop dword [rax + rax]
test byte [0x1400ed740], 4
je 0x14004b6bf
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, r14d
lea rdx, [0x1400a3280]
call fcn.140016e58
mov rdx, qword [rbx + 0x360]
imul r8d, dword [rdx + 0x40], 0x3e8
xor r9d, r9d
lea rcx, [0x14006d4f0]
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.140071b44
nop
lea rdx, [rsp + 0xa8]
mov rcx, qword [rbx + 0x358]
call fcn.14006e6d8
mov rcx, qword [rbx + 0x358]
call fcn.14006e5c0
nop
cmp qword [rsp + 0xc8], 8
jb 0x14004b7b3
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
jmp 0x14004b7b3
test byte [0x1400ed740], r14b
je 0x14004b777
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, r14d
lea rdx, [0x1400a3270]
call fcn.140016e58
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 [0x1400ed740], 4
je 0x14004b7b3
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, r14d
lea rdx, [0x1400a3280]
call fcn.140016e58
mov eax, r14d
mov rcx, qword [rsp + reloc.MFC42u.dll_AfxThrowUserException]
xor rcx, rsp
call fcn.140083280
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