Function at 0x100012a4c
Capabilities:
Enumerate files on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2c0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x10001e110]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov r12d, r9d
mov r13d, r8d
mov rbx, rdx
mov rbp, rcx
mov eax, dword [0x10001e15c]
mov dword [rsp + 0x30], eax
mov eax, dword [0x100080430]
mov dword [rsp + 0x34], eax
xor edi, edi
cmp r8d, edi
jne 0x100012ab4
cmp r9d, edi
jne 0x100012ab4
lea eax, [rdi + 1]
jmp 0x100012cac
lea rdx, [rsp + 0x40]
call fcn.10001330c
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x38]
call sub.MFC42u.dll_AfxThrowNotSupportedException
nop
lea rcx, [rsp + 0x40]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov r15d, edi
mov esi, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edx, edx
mov r8d, 0x250
lea rcx, [rsp + 0x60]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x28], 2
mov qword [rsp + 0x20], rdi
xor r9d, r9d
lea r8, [rsp + 0x60]
mov edx, esi
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp r14, 0xffffffffffffffff
jne 0x100012b3b
cmp eax, 2
je 0x100012c8e
jmp 0x100012c6b
mov esi, dword [rsp + 0x34]
test byte [rsp + 0x60], 0x10
je 0x100012bd5
cmp r12d, edi
je 0x100012c20
lea rdx, [0x100002974]
lea rcx, [rsp + 0x8c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
cmp eax, edi
je 0x100012c20
lea rdx, [0x100002978]
lea rcx, [rsp + 0x8c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
cmp eax, edi
je 0x100012c20
mov ecx, 0x70
call sub.MFC42u.dll_CMonthCalCtrl::SetDayState
mov qword [rsp + 0x48], rax
cmp rax, rdi
je 0x100012bae
mov rcx, rax
call fcn.1000138d0
mov rbx, rax
jmp 0x100012bb1
mov rbx, rdi
mov r9d, esi
lea r8, [rsp + 0x60]
mov rdx, rbp
mov rcx, rbx
call fcn.100013a90
lea rdx, [rbp + 0x60]
mov r8, rbx
mov rcx, rbp
call fcn.10001298c
jmp 0x100012c20
cmp r13d, edi
je 0x100012c20
mov ecx, 0x70
call sub.MFC42u.dll_CMonthCalCtrl::SetDayState
mov qword [rsp + 0x48], rax
cmp rax, rdi
je 0x100012bfb
mov rcx, rax
call fcn.1000138d0
mov rbx, rax
jmp 0x100012bfe
mov rbx, rdi
mov r9d, esi
lea r8, [rsp + 0x60]
mov rdx, rbp
mov rcx, rbx
call fcn.100013a90
lea rdx, [rbp + 0x28]
mov r8, rbx
mov rcx, rbp
call fcn.10001298c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edx, edx
mov r8d, 0x250
lea rcx, [rsp + 0x60]
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x60]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, edi
jne 0x100012b3f
mov esi, 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp ebx, 0x12
je 0x100012c9e
add r15d, esi
mov r9d, r15d
mov r8d, dword [rsp + 0x30]
mov edx, dword [rsp + 0x328]
mov rcx, rbp
call fcn.100009c24
cmp eax, edi
je 0x100012c9c
jmp 0x100012ae2
lea rcx, [rsp + 0x38]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov eax, esi
jmp 0x100012cac
jmp 0x100012ca0
mov edi, esi
lea rcx, [rsp + 0x38]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov eax, edi
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.100018470
mov rbx, qword [rsp + 0x310]
add rsp, 0x2c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret