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

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x298
mov qword [rsp + 0x68], 0xffffffffffffffff
mov dword [rsp + 0xc0], 0
mov ecx, 0x4000
call sub.msvcrt.dll_malloc
mov qword [rsp + 0x50], rax
mov r8d, 0x4000
xor edx, edx
mov rcx, qword [rsp + 0x50]
call sub.msvcrt.dll_memset
mov r8d, dword [rsp + 0x2b8]
mov rdx, qword [rsp + 0x2b0]
lea rcx, [rsp + 0xd8]
call fcn.180008280
lea rcx, [rsp + 0xd8]
call fcn.1800082d0
mov dword [rsp + 0x70], eax
mov r8d, 0x4000
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0xd8]
call fcn.180008450
mov edx, 0x200000
lea rcx, [rsp + 0xa0]
call fcn.180003470
mov edx, dword [rsp + 0x70]
lea rcx, [rsp + 0xa0]
call fcn.1800034b0
mov r8d, 0x4000
lea rdx, [0x180014894]
mov rcx, qword [rsp + 0x50]
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x18000512c
mov rdx, qword [rsp + 0x50]
mov ecx, 0x4000
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov r9d, 2
lea r8, [0x1800148f8]
mov edx, 0x4000
mov rcx, qword [rsp + 0x50]
call fcn.18000ef00
mov r8, qword [rsp + 0x50]
lea rdx, [0x1800148fc]
lea rcx, [rsp + 0xa0]
call fcn.180003500
lea rdx, [rsp + 0x150]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0xffffffffffffffff
jne 0x1800051cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, qword [rsp + 0x50]
mov ecx, 0x34
call fcn.180003be0
lea rcx, [rsp + 0xa0]
call fcn.1800034f0
mov dword [rsp + 0x74], eax
lea rcx, [rsp + 0xa0]
call fcn.18000bae0
mov r8d, reloc.WS2_32.dll_shutdown
mov ecx, dword [rsp + 0x74]
mov edx, ecx
mov rcx, rax
call qword [rsp + 0x2c0]
mov rcx, qword [rsp + 0x50]
call fcn.18000cc84
lea rcx, [rsp + 0xa0]
call fcn.180003430
jmp 0x18000540a
mov rcx, qword [rsp + 0x50]
call fcn.18000cc84
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x164]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0xc8]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
mov eax, dword [rsp + 0x150]
and eax, 0x10
cmp eax, 0x10
jne 0x1800052c4
lea rax, [rsp + 0xf0]
lea rcx, str._ns__td20_:d20_:d20__d20__d20__d20__t0_tD
mov rdi, rax
mov rsi, rcx
mov ecx, 0x26
rep movsb byte [rdi], byte [rsi]
movzx eax, word [rsp + 0x64]
mov dword [rsp + 0x78], eax
movzx ecx, word [rsp + 0x62]
mov dword [rsp + 0x7c], ecx
movzx edx, word [rsp + 0x60]
mov dword [rsp + 0x80], edx
movzx edi, word [rsp + 0x58]
movzx esi, word [rsp + 0x5e]
movzx r8d, word [rsp + 0x5a]
mov dword [rsp + 0x84], r8d
lea rcx, [rsp + 0xf0]
call sub.msvcrt.dll__strrev
lea rcx, [rsp + 0x17c]
mov qword [rsp + 0x40], rcx
mov ecx, dword [rsp + 0x78]
mov dword [rsp + 0x38], ecx
mov ecx, dword [rsp + 0x7c]
mov dword [rsp + 0x30], ecx
mov ecx, dword [rsp + 0x80]
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edi
mov r9d, esi
mov ecx, dword [rsp + 0x84]
mov r8d, ecx
mov rdx, rax
lea rcx, [rsp + 0xa0]
call fcn.180003500
jmp 0x18000539d
mov eax, dword [rsp + 0x170]
mov dword [rsp + 0xb8], eax
mov eax, dword [rsp + 0x16c]
mov dword [rsp + 0xbc], eax
lea rax, [rsp + 0x118]
lea rcx, str._ns__td20_:d20_:d20__d20__d20__d20__td46I__tF
mov rdi, rax
mov rsi, rcx
mov ecx, 0x2a
rep movsb byte [rdi], byte [rsi]
movzx eax, word [rsp + 0x64]
mov dword [rsp + 0x88], eax
movzx ecx, word [rsp + 0x62]
mov dword [rsp + 0x8c], ecx
movzx edx, word [rsp + 0x60]
mov dword [rsp + 0x90], edx
movzx edi, word [rsp + 0x58]
movzx esi, word [rsp + 0x5e]
movzx r8d, word [rsp + 0x5a]
mov dword [rsp + 0x94], r8d
lea rcx, [rsp + 0x118]
call sub.msvcrt.dll__strrev
lea rcx, [rsp + 0x17c]
mov qword [rsp + 0x48], rcx
mov ecx, dword [rsp + 0x88]
mov dword [rsp + 0x40], ecx
mov ecx, dword [rsp + 0x8c]
mov dword [rsp + 0x38], ecx
mov ecx, dword [rsp + 0x90]
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], esi
mov ecx, dword [rsp + 0x94]
mov r9d, ecx
mov r8, qword [rsp + 0xb8]
mov rdx, rax
lea rcx, [rsp + 0xa0]
call fcn.180003500
lea rdx, [rsp + 0x150]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1800051d9
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rcx, [rsp + 0xa0]
call fcn.1800034f0
mov dword [rsp + 0x98], eax
lea rcx, [rsp + 0xa0]
call fcn.18000bae0
mov r8d, reloc.WS2_32.dll_shutdown
mov ecx, dword [rsp + 0x98]
mov edx, ecx
mov rcx, rax
call qword [rsp + 0x2c0]
lea rcx, [rsp + 0xa0]
call fcn.180003430
add rsp, 0x298
pop rdi
pop rsi
ret