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

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2e0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x100081138]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov r13, r8
mov r12, rdx
mov rbp, rcx
lea rdi, [0x100081100]
mov rcx, rdi
mov rax, qword [0x100081100]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
mov rcx, rdi
mov rax, qword [0x100081100]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
mov rcx, rdi
mov rax, qword [0x100081100]
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x40], rdi
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
mov esi, 0x105
sub eax, esi
or eax, ecx
jge 0x100027741
mov edx, esi
lea rcx, [rsp + 0x38]
call fcn.10001edf8
mov rbx, qword [rsp + 0x38]
cmp dword [rbx - 0xc], esi
jge 0x100027751
mov ecx, 0x80070057
call fcn.10001f28c
int3
mov dword [rbx - 0x10], esi
xor r14d, r14d
mov word [rbx + 0x20a], r14w
mov edx, dword [rbx - 0x10]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp eax, r14d
jne 0x1000277da
lea rdx, [rdi - 0x18]
or rsi, 0xffffffffffffffff
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
cmp eax, r14d
jg 0x100027790
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
cmp eax, r14d
jg 0x1000277b1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
cmp eax, r14d
jg 0x100027c3b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x100027c3b
xor eax, eax
or rsi, 0xffffffffffffffff
mov rcx, rsi
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp ecx, r14d
jl 0x100027c30
cmp ecx, dword [rbx - 0xc]
jg 0x100027c30
mov dword [rbx - 0x10], ecx
movsxd rax, ecx
mov word [rbx + rax*2], r14w
lea rdx, [0x100008568]
lea rcx, [rsp + 0x48]
call fcn.10001e134
nop
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x38]
call fcn.10002f9d0
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
cmp eax, r14d
jg 0x100027853
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdi, qword [rsp + 0x40]
mov rdx, rdi
mov rcx, qword [rbp]
call qword [sym.imp.msvcrt.dll__wcsicmp]
cmp eax, r14d
jne 0x1000278d0
lea rdx, [rdi - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
cmp eax, r14d
jg 0x100027886
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
cmp eax, r14d
jg 0x1000278a7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
cmp eax, r14d
jg 0x100027c3b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x100027c3b
lea r8, [0x100009808]
mov rdx, rbp
lea rcx, [rsp + 0x70]
call fcn.10001e58c
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.10001e1c8
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
cmp eax, r14d
jg 0x100027913
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, rsi
jne 0x100027999
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
cmp eax, r14d
jg 0x10002794f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
cmp eax, r14d
jg 0x100027970
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
cmp eax, r14d
jg 0x100027c3b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x100027c3b
lea r15, [0x100009820]
mov eax, dword [rsp + 0x80]
test al, 0x10
je 0x100027a7e
lea rdx, [0x100009814]
lea rcx, [rsp + 0xac]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
cmp eax, r14d
je 0x100027a77
lea rdx, [0x100009818]
lea rcx, [rsp + 0xac]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
cmp eax, r14d
je 0x100027a77
lea r8, [0x100001f38]
mov rdx, rbp
lea rcx, [rsp + 0x68]
call fcn.10001e58c
nop
lea r8, [rsp + 0xac]
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.10001e58c
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.10001e1c8
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
cmp eax, r14d
jg 0x100027a45
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
cmp eax, r14d
jg 0x100027a65
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsp + 0x30]
mov rcx, r12
call fcn.10001ee9c
jmp 0x100027ba8
mov eax, dword [rsp + 0x80]
test al, 0x10
jne 0x100027ba8
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
lea rcx, [rsp + 0xac]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, edi
jle 0x100027ba8
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
lea rcx, [rsp + 0xac]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
sub eax, edi
cdqe
lea r8, [rsp + rax*2 + 0xac]
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], r15
mov r9d, esi
mov edx, 1
lea ecx, [rdx + 0x7e]
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x100027ba8
mov dword [rsp + 0x28], esi
lea rax, [0x100009830]
mov qword [rsp + 0x20], rax
mov r9d, esi
lea r8, [rsp + 0xac]
mov edx, 1
lea ecx, [rdx + 0x7e]
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x100027ba8
lea r8, [0x100001f38]
mov rdx, rbp
lea rcx, [rsp + 0x60]
call fcn.10001e58c
nop
lea r8, [rsp + 0xac]
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.10001e58c
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.10001e1c8
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
cmp eax, r14d
jg 0x100027b7b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
cmp eax, r14d
jg 0x100027b9b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsp + 0x30]
mov rcx, r13
call fcn.10001ee9c
lea rdx, [rsp + 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, r14d
jne 0x1000279a0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
cmp eax, r14d
jg 0x100027bed
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
cmp eax, r14d
jg 0x100027c0e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
cmp eax, r14d
jg 0x100027c3b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x100027c3b
mov ecx, 0x80070057
call fcn.10001f28c
nop
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.10005cbe0
mov rbx, qword [rsp + 0x338]
add rsp, 0x2e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret