Function at 0x1400400d0
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [0x140174940]
xor rax, rsp
mov qword [rbp + reloc.mfc140u.dll_CDocTemplate::CDocTemplate], rax
mov rsi, rcx
xor r14d, r14d
mov dword [rsp + 0x30], r14d
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__7]
nop
mov rbx, qword [rsp + 0x40]
lea rcx, [rbp + 0x1b8]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
lea rcx, [rbp + 0x1c0]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
lea rcx, [rbp + 0x1c8]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
mov qword [rsp + 0x60], 0xffffffffffffffff
mov qword [rsp + 0x60], 0xffffffffffffffff
mov dword [rbp + 0x1d8], UnRegisterTypeLib
mov rdx, rbx
lea rcx, [rbp + 0x1b8]
call qword [sym.imp.mfc140u.dll_CMFCControlRendererInfo::CMFCControlRendererInfo]
mov edi, 1
mov r8d, edi
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x1b8]
call qword [sym.imp.mfc140u.dll_Ordinal_12600]
nop
lea rdx, [0x1400f6ad4]
mov rcx, rax
call qword [sym.imp.mfc140u.dll_Ordinal_2903]
mov ebx, eax
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
test ebx, ebx
je 0x1400401ce
lea rdx, [0x1400f6ad4]
lea rcx, [rbp + 0x1b8]
call qword [sym.imp.mfc140u.dll_COleCurrency::operator__1]
lea rdx, [0x14010bdb8]
lea rcx, [rbp + 0x1c0]
call qword [sym.imp.mfc140u.dll_CMFCControlRendererInfo::CMFCControlRendererInfo]
nop
lea rcx, [rbp + 0x1b8]
call qword [sym.imp.mfc140u.dll_CMFCRibbonUndoButton::GetIconSize]
mov rdx, rax
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_Ordinal_285]
mov dword [rsp + 0x30], edi
mov r9, qword [rbp + 0x1c0]
mov eax, dword [r9 - 0x10]
mov rdx, qword [rbp + 0x1b8]
mov dword [rsp + 0x20], eax
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_CMFCTasksPane::CollapseAllGroups]
lea rdx, [rsp + 0x38]
lea rcx, [rbp + 0x1c8]
call qword [sym.imp.mfc140u.dll_Ordinal_1501]
and edi, 0xfffffffe
mov dword [rsp + 0x30], edi
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov dword [rbp + 0x1dc], r14d
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
mov rax, qword [rsp + 0x40]
cmp dword [rax - 0x10], 0
je 0x1400403c9
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x60]
test eax, eax
jne 0x1400403c9
nop
mov rax, qword [rsp + 0x60]
lea rdx, [rsp + 0x68]
cmp rax, 0xffffffffffffffff
jne 0x1400402b9
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x60], rax
cmp rax, 0xffffffffffffffff
jne 0x1400402cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x1dc], eax
jmp 0x1400403c9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1400403a3
mov rax, qword [rsp + 0x60]
mov ecx, dword [rsp + 0x68]
test dword [rbp + 0x1d8], ecx
je 0x140040285
test cl, 0x10
jne 0x140040390
cmp dword [rbp - 0x7c], 0
jne 0x140040390
cmp dword [rbp - 0x78], 0
jne 0x140040390
lea rbx, [rbp - 0x6c]
lea rax, [rbp + 0x19c]
cmp word [rbp - 0x6c], 0
cmove rbx, rax
lea rcx, [rbp + 0x1b8]
call qword [sym.imp.mfc140u.dll_CMFCRibbonUndoButton::GetIconSize]
mov rdx, rax
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_Ordinal_285]
or edi, 4
mov dword [rsp + 0x30], edi
mov rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], 0
jne 0x140040335
mov rdx, qword [rbp + 0x1b8]
mov dword [rsp + 0x20], eax
mov r9, rbx
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_CMFCTasksPane::CollapseAllGroups]
lea rdx, [rsp + 0x38]
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.mfc140u.dll_Ordinal_1501]
and edi, 0xfffffffb
mov dword [rsp + 0x30], edi
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rcx, qword [rbp + 0x1d0]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wunlink]
inc r14d
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x60]
test eax, eax
je 0x140040280
jmp 0x1400403c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x1dc], eax
mov rcx, qword [rsp + 0x60]
cmp rcx, 0xffffffffffffffff
je 0x1400403c0
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rsp + 0x60], 0xffffffffffffffff
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
mov rcx, qword [rsp + 0x60]
cmp rcx, 0xffffffffffffffff
je 0x1400403e6
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rsp + 0x60], 0xffffffffffffffff
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rbp + 0x1c8]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rbp + 0x1c0]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rbp + 0x1b8]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov eax, r14d
mov rcx, qword [rbp + reloc.mfc140u.dll_CDocTemplate::CDocTemplate]
xor rcx, rsp
call fcn.1400c7c30
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret