Function at 0x140039f40
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x480]
sub rsp, 0x580
mov rsi, rcx
xor edx, edx
lea rcx, [rbp + 0x1b0]
mov r8d, 0x104
call fcn.1400514f0
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x104
call fcn.1400514f0
xor edx, edx
lea rcx, [rbp + 0x2c0]
mov r8d, 0x104
call fcn.1400514f0
mov edx, 0x104
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea rcx, [rsp + 0x60]
dec rcx
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140039fb4
movups xmm0, xmmword [str.LiveKernelReportsWATCHDOG]
xor edi, edi
mov eax, dword [0x1400b3458]
movsd xmm1, qword [0x1400b3450]
movups xmmword [rcx], xmm0
movsd qword [rcx + 0x10], xmm1
mov dword [rcx + 0x18], eax
mov ecx, edi
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rsp + rcx + 0x60]
mov byte [rbp + rcx + 0x1b0], al
lea rcx, [rcx + 1]
test al, al
jne 0x140039ff0
lea rcx, [rbp + 0x1b0]
dec rcx
nop
cmp byte [rcx + 1], dil
lea rcx, [rcx + 1]
jne 0x14003a010
movzx eax, word [0x1400b324c]
mov word [rcx], ax
movzx eax, byte [0x1400b324e]
mov byte [rcx + 2], al
lea rcx, [rsp + 0x60]
dec rcx
cmp byte [rcx + 1], dil
lea rcx, [rcx + 1]
jne 0x14003a036
movzx eax, word [0x1400a709c]
lea rdx, [rbp + 0x70]
mov word [rcx], ax
lea rcx, [rbp + 0x1b0]
mov qword [rbp + 0x498], rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003a1df
nop
test byte [rbp + 0x70], 0x10
jne 0x14003a0b6
lea rdx, [rbp + 0x84]
lea rcx, [rbp + 0x498]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 0xffffffff
jne 0x14003a0b6
mov rax, qword [rbp + 0x84]
lea rdx, [rbp + 0x9c]
mov r8d, 0x104
mov qword [rbp + 0x498], rax
lea rcx, [rbp + 0x2c0]
call fcn.140078290
lea rdx, [rbp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x14003a070
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rcx, [rsp + 0x60]
dec rcx
nop dword [rax + rax]
cmp byte [rcx + 1], dil
lea rcx, [rcx + 1]
jne 0x14003a0e0
lea r8, [rbp + 0x2c0]
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14003a100
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x498]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
xor eax, eax
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
movzx eax, word [rsp + 0x2c]
mov dword [rsp + 0x30], eax
movzx eax, word [rsp + 0x2a]
mov dword [rsp + 0x34], eax
movzx eax, word [rsp + 0x28]
mov dword [rsp + 0x38], eax
movzx eax, word [rsp + 0x26]
mov dword [rsp + 0x3c], eax
movzx eax, word [rsp + 0x20]
sub eax, 0x76c
mov dword [rsp + 0x44], eax
movzx eax, word [rsp + 0x22]
dec eax
mov dword [rsp + 0x40], eax
call fcn.14007cc04
mov rbx, rax
test rax, rax
jle 0x14003a1c5
lea rcx, [rbp + 0x3d0]
call qword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
call fcn.14007c260
mov ecx, dword [rax]
neg ecx
cmp ecx, 0xa8c0
lea edx, [rcx - 0x15180]
cmovle edx, ecx
cmp edx, 0xffff6550
lea eax, [rdx + 0x15180]
cmovge eax, edx
movsxd rdi, eax
add rdi, rbx
cmp dword [rbp + 0x498], 0
mov qword [rsi + 0x10], rdi
jne 0x14003a1db
cmp dword [rbp + 0x49c], 0
je 0x14003a1df
mov al, 1
jmp 0x14003a1e1
xor al, al
lea r11, [rsp + 0x580]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret