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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x2d8
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x100082138]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
mov r13, r8
mov r12, rdx
mov rbp, rcx
lea rdi, [0x100082100]
mov rcx, rdi
mov rax, qword [0x100082100]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov rax, qword [0x100082100]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x28], rbx
mov rcx, rdi
mov rax, qword [0x100082100]
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x30], rdi
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
mov esi, 0x105
sub eax, esi
or eax, ecx
jge 0x1000294f0
mov edx, esi
lea rcx, [rsp + 0x28]
call fcn.10001fc6c
mov rbx, qword [rsp + 0x28]
cmp dword [rbx - 0xc], esi
jge 0x100029500
mov ecx, 0x80070057
call fcn.10001fd10
int3
mov dword [rbx - 0x10], esi
mov word [rbx + 0x20a], 0
mov edx, dword [rbx - 0x10]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x100029586
lea rdx, [rdi - 0x18]
mov rsi, 0xffffffffffffffff
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x10002953e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x10002955e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x1000299a7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1000299a7
xor eax, eax
lea rsi, [rax - 1]
mov rcx, rsi
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
test ecx, ecx
js 0x10002999c
cmp ecx, dword [rbx - 0xc]
jg 0x10002999c
mov dword [rbx - 0x10], ecx
movsxd rax, ecx
mov word [rbx + rax*2], 0
lea rdx, [0x100005558]
lea rcx, [rsp + 0x38]
call fcn.10001ff98
nop
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x28]
call fcn.1000327cc
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x1000295ff
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdi, qword [rsp + 0x30]
mov rdx, rdi
mov rcx, qword [rbp]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x100029678
lea rdx, [rdi - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x100029630
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x100029650
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x1000299a7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1000299a7
lea r8, [0x100009ee8]
mov rdx, rbp
lea rcx, [rsp + 0x60]
call fcn.10001eff0
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.10001ecdc
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x1000296ba
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, rsi
jne 0x10002973a
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x1000296f2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x100029712
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x1000299a7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1000299a7
mov eax, dword [rsp + 0x70]
test al, 0x10
je 0x10002980e
lea rdx, [0x100009ef4]
lea rcx, [rsp + 0x9c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x10002980a
lea rdx, [0x100009ef8]
lea rcx, [rsp + 0x9c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x10002980a
lea r8, [0x100009f00]
mov rdx, rbp
lea rcx, [rsp + 0x58]
call fcn.10001eff0
nop
lea r8, [rsp + 0x9c]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.10001eff0
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.10001ecdc
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x1000297d9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x1000297f8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsp + 0x20]
mov rcx, r12
call fcn.10001f488
jmp 0x10002991b
mov eax, dword [rsp + 0x70]
test al, 0x10
jne 0x10002991b
lea rcx, [0x100009f08]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
lea rcx, [rsp + 0x9c]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, edi
jle 0x10002991b
lea rcx, [0x100009f08]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
lea rcx, [rsp + 0x9c]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
sub eax, edi
cdqe
lea rcx, [rsp + rax*2 + 0x9c]
lea rdx, [0x100009f08]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10002991b
lea rdx, [0x100009f18]
lea rcx, [rsp + 0x9c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10002991b
lea r8, [0x100009f00]
mov rdx, rbp
lea rcx, [rsp + 0x50]
call fcn.10001eff0
nop
lea r8, [rsp + 0x9c]
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.10001eff0
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.10001ecdc
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x1000298ef
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x10002990e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsp + 0x20]
mov rcx, r13
call fcn.10001f488
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10002973a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x10002995b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x10002997b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x1000299a7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1000299a7
mov ecx, 0x80070057
call fcn.10001fd10
nop
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.10006b1f0
add rsp, 0x2d8
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret