Function at 0x14001b8c0
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x8f0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x940], rbx
mov rax, qword [0x14012df80]
xor rax, rsp
mov qword [rsp + 0x8e0], rax
mov qword [rsp + 0x50], r9
mov qword [rsp + 0x58], r8
mov rbp, rdx
mov qword [rsp + 0x48], rdx
mov rdi, rcx
mov r12, qword [rsp + 0x950]
call fcn.1400a02a0
mov r15, qword [rax + 8]
mov rbx, qword [r15 + 0x178]
test rbx, rbx
je 0x14001b9c7
mov rax, qword [rbx]
cmp dword [rax + 0x174], 4
jl 0x14001b9c7
call fcn.14009d5e8
mov r11, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x14001b95b
mov ecx, 0x80004005
call fcn.1400034f0
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x40], rax
lea rax, [0x1400fb278]
mov qword [rsp + 0x20], rax
lea r9, str.QueryAlternativeOEMInf
lea r8, str.CDeviceMgr
lea rdx, str.private__s::_s__s_
lea rcx, [rsp + 0x40]
call fcn.14000a800
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14002f200
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001b9c7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov esi, 2
mov rax, qword [rdi]
lea rdx, str.oem.inf
mov rcx, rdi
call qword [rax + 0x30]
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14001bb58
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x14001bb50
mov r14, qword [rsp + 0x58]
nop
test byte [rsp + 0x70], 0x10
jne 0x14001bb2c
mov rax, qword [rdi]
lea rdx, [rsp + 0x9c]
mov rcx, rdi
call qword [rax + 0x30]
mov rbx, rax
test rax, rax
je 0x14001bb2c
mov r10, qword [rdi]
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x2c0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, rbx
mov rdx, rbp
mov rcx, rdi
call qword [r10 + 0x70]
mov ebp, eax
test eax, eax
je 0x14001bb1b
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x6d0]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x4d0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x2d0]
mov qword [rsp + 0x20], rax
lea r9, [0x1400fceb0]
lea r8, str.QueryAlternativeOEMInf
lea rdx, str.CDeviceMgr
mov rcx, r15
call fcn.140080a70
mov r11d, 0x7fffffff
lea rax, [rsp + 0x2d0]
cmp word [rax], 0
je 0x14001bad4
add rax, 2
sub r11, 1
jne 0x14001bac4
lea r8, [r14 + 0x10]
lea rax, [rsp + 0x2d0]
sub r8, rax
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14001baf7
add rax, 2
test ecx, ecx
jne 0x14001bae3
test edx, edx
je 0x14001bb1b
test r12, r12
je 0x14001bb16
mov rcx, r12
lea rdx, [rsp + 0x2c0]
mov r8d, 0x620
call fcn.1400cfba0
mov esi, 0x50
mov rcx, rbx
call fcn.1400913ac
test ebp, ebp
jne 0x14001bb42
mov rbp, qword [rsp + 0x48]
lea rdx, [rsp + 0x70]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14001ba10
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r14, qword [rsp + 0x40]
mov rcx, r14
call fcn.1400913ac
mov dword [rsp + 0x20], esi
lea r9, [0x1400facf8]
lea r8, str.QueryAlternativeOEMInf
lea rdx, str.CDeviceMgr
mov rcx, r15
call fcn.140081270
mov eax, esi
mov rcx, qword [rsp + 0x8e0]
xor rcx, rsp
call fcn.1400cd6e0
mov rbx, qword [rsp + 0x940]
add rsp, 0x8f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret