Function at 0x1400fd180
Capabilities:
Enumerate files on windows
Get common file path
Set current directory

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x550
mov qword [rsp + 0xd8], 0xfffffffffffffffe
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rsp + 0x540], rax
mov esi, r9d
mov r12, r8
mov qword [rsp + 0x78], r8
mov rdi, rdx
mov r13, rcx
xor r8d, r8d
lea rdx, str.CBaseInfFile::EnumInf
lea rcx, [rsp + 0x58]
call fcn.1400075a0
nop
mov qword [rsp + 0x20], r12
mov r9, rdi
lea r8, str.pFolder___s__pProvider___s
mov edx, 1
lea rcx, [rsp + 0x58]
call fcn.140007780
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.140005900
nop
call fcn.140102a14
mov rdx, rax
xor r14d, r14d
mov ecx, r14d
test rax, rax
setne cl
test ecx, ecx
jne 0x1400fd226
mov ecx, 0x80004005
call fcn.140005210
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
call fcn.140102a14
mov rdx, rax
mov ecx, r14d
test rax, rax
setne cl
test ecx, ecx
jne 0x1400fd258
mov ecx, 0x80004005
call fcn.140005210
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
mov edx, dword [r13 + 8]
call qword [rax + 0x28]
mov qword [rsp + 0xa0], rax
lea rdx, [rsp + 0x330]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r8d, 1
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x48]
call fcn.1400475d0
nop
lea rdx, [0x14031c7a4]
mov rcx, rax
call fcn.14000d8e0
movzx ebx, al
mov rdx, qword [rsp + 0x88]
add rdx, 0xffffffffffffffe8
or r15, 0xffffffffffffffff
mov ecx, r15d
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1400fd2e8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bl, bl
je 0x1400fd2fd
lea rdx, [0x14031c7a4]
lea rcx, [rsp + 0x48]
call fcn.1400a0b50
mov rdx, qword [rsp + 0x48]
mov ecx, 1
sub ecx, dword [rdx - 8]
mov eax, dword [rdx - 0xc]
sub eax, 0x103
or eax, ecx
jge 0x1400fd32a
mov edx, 0x103
lea rcx, [rsp + 0x48]
call fcn.140005e40
mov rdx, qword [rsp + 0x48]
lea rcx, [r13 + 0x23a8]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x1400fd44d
mov qword [rsp + 0x70], r14
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x409
mov r8d, edi
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x1400fd3ae
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
lea r9, [0x14031c7a8]
lea r8, str.ApiName:__s__ErrorCode:__d_:__s
mov edx, 6
lea rcx, [rsp + 0x58]
call fcn.140007780
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400fd3be
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r9d, r15d
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x58]
call fcn.140007780
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400fd3f9
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, r15d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400fd41a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov ecx, r15d
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1400fd43b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x58]
call fcn.140007730
mov eax, r15d
jmp 0x1400fd90e
mov qword [rsp + 0xe0], 0x927
mov qword [rsp + 0xe8], r14
mov qword [rsp + 0xf0], r14
mov dword [rsp + 0xf8], r14d
mov dword [rsp + 0xfc], 0xffffffff
mov qword [rsp + 0x100], r14
mov dword [rsp + 0x108], r14d
lea rdx, [rsp + 0xe0]
test esi, esi
lea rcx, str.oem.inf
jne 0x1400fd4a6
lea rcx, str..inf
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r14, rax
mov qword [rsp + 0x68], rax
xor esi, esi
cmp rax, 0xffffffffffffffff
setne sil
lea rcx, [r13 + 0x58]
mov r8, r15
xor edx, edx
call fcn.140105958
lea rcx, [r13 + 0x30]
mov r8, r15
xor edx, edx
call fcn.14011c3ac
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x40]
test esi, esi
je 0x1400fd843
lea r8, [rsp + 0x10c]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x98]
call fcn.14003ffa0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x1400fd561
cmp dword [rbx + 0x10], 0
jl 0x1400fd552
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x1400fd552
call fcn.140006190
mov rdi, rax
mov ecx, r15d
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1400fd547
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rdi + 0x18]
mov qword [rsp + 0x50], rax
jmp 0x1400fd561
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x50]
call fcn.140005d50
nop
mov rdx, qword [rsp + 0x98]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400fd584
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
mov rcx, r15
lea rdi, [rsp + 0x10c]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rbx, rcx
mov rdi, qword [rsp + 0x40]
test ecx, ecx
jne 0x1400fd603
lea rdx, [rdi - 0x18]
mov rbx, qword [rdx]
cmp dword [rdx + 8], eax
je 0x1400fd68e
cmp dword [rdx + 0x10], eax
jge 0x1400fd5d5
cmp dword [rdi - 0xc], eax
jge 0x1400fd5ca
mov ecx, 0x80070057
call fcn.140005210
mov dword [rdi - 0x10], eax
mov word [rdi], ax
jmp 0x1400fd68e
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400fd5ec
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x40], rdi
jmp 0x1400fd68e
mov r12d, dword [rdi - 0x10]
lea rsi, [rsp + 0x10c]
sub rsi, rdi
sar rsi, 1
test ecx, ecx
jns 0x1400fd623
mov ecx, 0x80070057
call fcn.140005210
mov ecx, 1
sub ecx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, ebx
or eax, ecx
jge 0x1400fd645
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.140005e40
mov rdi, qword [rsp + 0x40]
movsxd rax, ebx
movsxd rdx, dword [rdi - 0xc]
mov rcx, rdi
add rdx, rdx
cmp rsi, r12
lea r12, [rax + rax]
mov r9, r12
ja 0x1400fd669
lea r8, [rdi + rsi*2]
call fcn.1402457b4
jmp 0x1400fd676
lea r8, [rsp + 0x10c]
call fcn.1402471ac
cmp ebx, dword [rdi - 0xc]
jg 0x1400fd838
mov dword [rdi - 0x10], ebx
xor eax, eax
mov word [r12 + rdi], ax
mov r12, qword [rsp + 0x78]
mov qword [rsp + 0x20], r12
mov rbx, qword [rsp + 0x50]
mov r9, rbx
lea r8, str._t_t_tSTART_pInfFile__GetValue_fullPath_s__pProvider_s__
mov edx, 7
lea rcx, [rsp + 0x58]
call fcn.140007780
mov rcx, qword [rsp + 0xa0]
mov rax, qword [rcx]
mov r8, r12
mov rdx, rbx
call qword [rax + 0x68]
mov esi, eax
mov qword [rsp + 0x20], r12
mov r9, rbx
lea r8, str._t_t_tEND_pInfFile__GetValue_fullPath_s__pProvider_s__
mov edx, 7
lea rcx, [rsp + 0x58]
call fcn.140007780
test esi, esi
je 0x1400fd820
mov ecx, 0x328
call fcn.1401026a0
mov rsi, rax
mov qword [rsp + 0xb0], rax
test rax, rax
je 0x1400fd73f
lea rcx, [r13 + 0x28]
lea r8, [r13 + 0x10]
lea rax, [r13 + 0x20]
lea r9, [r13 + 0x18]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400fc380
lea rax, vtable.CPDLInfContent.0
mov qword [rsi], rax
mov rdi, qword [rsp + 0x40]
jmp 0x1400fd742
mov rsi, rax
mov rax, qword [r13 + 0x28]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, 0x64
or eax, ecx
jge 0x1400fd766
mov edx, 0x64
lea rcx, [r13 + 0x28]
call fcn.140005e40
mov r14, qword [r13 + 0x28]
mov rax, qword [r13 + 0x10]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, 0x64
or eax, ecx
jge 0x1400fd78e
mov edx, 0x64
lea rcx, [r13 + 0x10]
call fcn.140005e40
mov rax, qword [r13 + 0x10]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x10c]
lea r8, str._t_t_t__s__s__s_
mov edx, 7
lea rcx, [rsp + 0x58]
call fcn.140007780
mov r10, qword [rsi]
lea rax, [r13 + 0x380]
lea rcx, [r13 + 0x358]
lea r9, [r13 + 0x330]
lea r8, [r13 + 0x308]
lea rdx, [r13 + 0x2e0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov rcx, rsi
call qword [r10 + 0x20]
lea rcx, [r13 + 0x30]
mov r8, rsi
mov rdx, qword [rcx + 0x10]
call fcn.14011c5dc
lea rcx, [r13 + 0x58]
lea r8, [rsp + 0x10c]
mov rdx, qword [rcx + 0x10]
call fcn.140105f30
mov r14, qword [rsp + 0x68]
mov r12, qword [rsp + 0x78]
lea rdx, [rsp + 0xe0]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
jmp 0x1400fd4e4
mov ecx, 0x80070057
call fcn.140005210
nop
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r9, qword [r13 + 0x68]
lea r8, str._t_t_t_d_INF_found
mov edx, 7
lea rcx, [rsp + 0x58]
call fcn.140007780
lea rcx, [rsp + 0x330]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x1400fd886
lea rcx, [rsp + 0x330]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov r9d, dword [r13 + 0x68]
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x58]
call fcn.140007780
mov rbx, qword [r13 + 0x68]
lea rdx, [rdi - 0x18]
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400fd8c0
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, r15d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400fd8e1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r15d
dec r15d
test r15d, r15d
jg 0x1400fd902
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x58]
call fcn.140007730
mov eax, ebx
mov rcx, qword [rsp + 0x540]
xor rcx, rsp
call fcn.140245660
add rsp, 0x550
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret