Function at 0x1400131f0
Capabilities:
Enumerate files on windows

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb40
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x1401216d8]
xor rax, rsp
mov qword [rsp + 0xb30], rax
mov r14, rdx
mov qword [rsp + 0x90], rdx
mov qword [rsp + 0x98], rcx
xor edi, edi
mov dword [rsp + 0x34], edi
call fcn.14004b378
mov rcx, rax
xor eax, eax
test rcx, rcx
setne al
test eax, eax
jne 0x140013265
mov ecx, 0x80004005
call fcn.140001610
int3
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x88], rax
call fcn.14004b378
mov rcx, rax
xor eax, eax
test rcx, rcx
setne al
test eax, eax
jne 0x140013296
mov ecx, 0x80004005
call fcn.140001610
int3
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
call fcn.14004b378
mov rcx, rax
xor eax, eax
test rcx, rcx
setne al
test eax, eax
jne 0x1400132c4
mov ecx, 0x80004005
call fcn.140001610
int3
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rsi, [rax + 0x18]
mov qword [rsp + 0x40], rsi
test r14, r14
jne 0x140013346
lea rdx, [rsi - 0x18]
or r13, 0xffffffffffffffff
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x1400132f9
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, r13d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001331b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x88]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r13d
add r13d, 0xffffffff
test r13d, r13d
jg 0x14001333f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x140013b92
xor edx, edx
mov r8d, 0x250
lea rcx, [rsp + 0xb0]
call fcn.140091cf0
mov r8, qword [r14 + 8]
lea rdx, str._s.inf
lea rcx, [rsp + 0x720]
call fcn.1400034d0
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x720]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r12, rax
mov qword [rsp + 0x58], rax
or r13, 0xffffffffffffffff
cmp rax, r13
je 0x140013b2d
nop
lea r9, [rsp + 0xdc]
mov r8, qword [r14 + 8]
lea rdx, [0x1400e01b8]
lea rcx, [rsp + 0x720]
call fcn.1400034d0
xor ebp, ebp
mov dword [rsp + 0x60], ebp
xor edi, edi
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x68], edi
xor r9d, r9d
xor edx, edx
lea r8d, [rbp + 2]
lea rcx, [rsp + 0x720]
call qword [sym.imp.SETUPAPI.dll_SetupOpenInfFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x140013ab7
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, str.Manufacturer
mov rcx, rax
call qword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
je 0x140013951
mov qword [rsp + 0x20], rdi
mov r9d, 0x104
lea r8, [rsp + 0x300]
lea edx, [rbp + 1]
lea rcx, [rsp + 0x70]
call qword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
je 0x140013951
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x300]
mov rdx, r15
mov rcx, qword [rsp + 0x98]
call fcn.140003650
test eax, eax
jne 0x140013478
mov rcx, r15
call qword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
mov edi, dword [rsp + 0x34]
jmp 0x140013ac7
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, [rsp + 0x300]
mov rcx, r15
call qword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
je 0x140013951
xor r12d, r12d
nop
mov qword [rsp + 0x20], r12
mov r9d, 0x104
lea r8, [rsp + 0x300]
mov edx, 2
lea rcx, [rsp + 0x70]
call qword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
je 0x14001377c
lea rdx, str.FUNC_01VEN
lea rcx, [rsp + 0x300]
call fcn.140090a10
test rax, rax
je 0x1400134f9
mov r8, rax
mov edx, 0x104
lea rcx, [rsp + 0x300]
call fcn.140092450
xor eax, eax
mov rcx, r13
lea rdi, [rsp + 0x300]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x140013575
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140013602
cmp dword [rdx + 0x10], eax
jge 0x140013541
cmp dword [rbx - 0xc], eax
jl 0x140013ae1
mov dword [rbx - 0x10], r12d
mov word [rbx], ax
jmp 0x140013602
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140013559
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
mov rsi, qword [rsp + 0x40]
jmp 0x140013602
mov ebp, dword [rbx - 0x10]
lea r12, [rsp + 0x300]
sub r12, rbx
sar r12, 1
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x1400135a8
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.140004650
mov rbx, qword [rsp + 0x38]
cmp r12, rbp
ja 0x1400135c8
movsxd rax, edi
lea rbp, [rax + rax]
lea r8, [rbx + r12*2]
mov r9, rbp
mov rdx, rbp
mov rcx, rbx
call fcn.140090b50
jmp 0x1400135e5
movsxd rax, edi
lea rbp, [rax + rax]
mov r9, rbp
lea r8, [rsp + 0x300]
mov rdx, rbp
mov rcx, rbx
call fcn.140090a80
test edi, edi
js 0x140013b02
cmp edi, dword [rbx - 0xc]
jg 0x140013b02
mov dword [rbx - 0x10], edi
mov word [rbx + rbp], 0
xor r12d, r12d
movsxd rdi, dword [rbx - 0x10]
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140013628
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.140004650
mov rbx, qword [rsp + 0x38]
lea eax, [rdi + 1]
movsxd rdx, eax
mov rcx, rbx
call fcn.140091030
test edi, edi
js 0x140013af7
cmp edi, dword [rbx - 0xc]
jg 0x140013af7
mov dword [rbx - 0x10], edi
mov word [rbx + rdi*2], 0
lea rcx, [rbx - 0x18]
lea rdi, [rsi - 0x18]
cmp rcx, rdi
je 0x1400136b4
cmp dword [rdi + 0x10], 0
jl 0x14001369e
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x14001369e
call fcn.1400046b0
mov rsi, rax
mov eax, r13d
lock xadd dword [rdi + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001368e
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
add rsi, 0x18
mov qword [rsp + 0x40], rsi
mov rbx, qword [rsp + 0x38]
jmp 0x1400136b4
mov r8d, dword [rbx - 0x10]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140005e50
mov rsi, qword [rsp + 0x40]
movsxd rbp, dword [rsi - 0x10]
mov ecx, 1
sub ecx, dword [rsi - 8]
mov eax, dword [rsi - 0xc]
sub eax, ebp
or eax, ecx
jge 0x1400136da
mov edx, ebp
lea rcx, [rsp + 0x40]
call fcn.140004650
mov rsi, qword [rsp + 0x40]
mov rcx, rsi
mov rdi, rsi
lea r11, [rsi + rbp*2]
cmp rsi, r11
jae 0x140013734
nop
nop
lea r10, [rcx + 2]
cmp word [rcx], 0x2a
je 0x14001372c
mov r8, r10
sub r8, rcx
sar r8, 1
lea r9, [rdi + r8*2]
mov rdx, r12
cmp rdi, r9
je 0x14001372c
nop
cmp rdx, r8
jae 0x14001372c
movzx eax, word [rcx]
mov word [rdi], ax
add rcx, 2
add rdi, 2
add rdx, 1
cmp rdi, r9
jne 0x140013710
mov rcx, r10
cmp r10, r11
jb 0x1400136f0
mov word [rdi], 0
sub rcx, rdi
sar rcx, 1
sub ebp, ecx
js 0x140013aec
cmp ebp, dword [rsi - 0xc]
jg 0x140013aec
mov dword [rsi - 0x10], ebp
movsxd rax, ebp
mov word [rsi + rax*2], 0
mov rdx, rbx
mov rcx, qword [r14]
call fcn.140090a10
test rax, rax
jne 0x140013799
mov rdx, rsi
mov rcx, qword [r14]
call fcn.140090a10
test rax, rax
jne 0x140013799
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x70]
call qword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
je 0x14001393f
jmp 0x1400134a0
mov edi, 1
mov dword [rsp + 0x68], edi
lea rdx, [0x1400e06c0]
mov rcx, rbx
call fcn.140090a10
mov ebp, dword [rsp + 0x60]
test rax, rax
cmovne ebp, edi
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, str.Version
mov rcx, r15
call qword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
je 0x14001391f
mov r14d, edi
nop
mov qword [rsp + 0x20], r12
mov r9d, 0x104
lea r8, [rsp + 0x300]
xor edx, edx
lea rcx, [rsp + 0x70]
call qword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
je 0x1400138dd
mov edx, 0x104
lea rcx, [rsp + 0x300]
call fcn.140091030
lea rdx, [0x1400e0698]
lea rcx, [rsp + 0x300]
call fcn.140090a10
test rax, rax
je 0x1400138e3
mov qword [rsp + 0x20], r12
mov r9d, 0x104
lea r8, [rsp + 0x510]
mov edx, r14d
lea rcx, [rsp + 0x70]
call qword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
je 0x1400138e9
lea rdx, [0x1400e0694]
lea rcx, [rsp + 0x510]
call fcn.140090a10
test rax, rax
je 0x1400138ef
lea r8, [rax + 2]
mov edx, 0x104
lea rcx, [rsp + 0x300]
call fcn.140092450
lea rdx, [0x1400e0690]
lea rcx, [rsp + 0x300]
call fcn.140090a10
test rax, rax
je 0x1400138f5
lea rcx, [rsp + 0x300]
sub rax, rcx
sar rax, 1
mov r9, rax
lea r8, [rsp + 0x300]
mov edx, 0x104
lea rcx, [rsp + 0x510]
call fcn.1400925d0
mov edi, r14d
mov dword [rsp + 0x30], r14d
jmp 0x1400138f9
mov edi, dword [rsp + 0x30]
jmp 0x1400138f9
mov edi, dword [rsp + 0x30]
jmp 0x1400138f9
mov edi, dword [rsp + 0x30]
jmp 0x1400138f9
mov edi, dword [rsp + 0x30]
jmp 0x1400138f9
mov edi, dword [rsp + 0x30]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x70]
call qword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
jne 0x1400137e0
mov r14, qword [rsp + 0x90]
test edi, edi
jne 0x14001394c
jmp 0x140013923
mov edi, dword [rsp + 0x30]
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x510]
call fcn.140091cf0
mov r12, qword [rsp + 0x58]
jmp 0x140013951
mov edi, dword [rsp + 0x30]
mov ebp, edi
mov r12, qword [rsp + 0x58]
jmp 0x140013951
mov r12, qword [rsp + 0x58]
mov rcx, r15
call qword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
cmp dword [rsp + 0x68], 0
je 0x140013ac3
test edi, edi
je 0x140013abd
lea rax, [rsp + 0x48]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x60], rax
call fcn.14004b378
mov rcx, rax
xor eax, eax
test rcx, rcx
setne al
test eax, eax
je 0x140013b18
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x510]
lea rax, [rsp + 0x510]
test rax, 0xffffffffffff0000
jne 0x1400139e1
movzx edi, cx
mov ecx, edi
call fcn.14004b1a0
test rax, rax
je 0x140013a0b
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140005c00
jmp 0x140013a0b
xor eax, eax
mov rcx, r13
lea rdi, [rsp + 0x510]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x510]
lea rcx, [rsp + 0x48]
call fcn.140005e50
nop
call fcn.14004b378
mov rcx, rax
xor eax, eax
test rcx, rcx
setne al
test eax, eax
je 0x140013b0d
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x720]
lea rax, [rsp + 0x720]
test rax, 0xffffffffffff0000
jne 0x140013a6b
movzx edi, cx
mov ecx, edi
call fcn.14004b1a0
test rax, rax
je 0x140013a95
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140005c00
jmp 0x140013a95
xor eax, eax
mov rcx, r13
lea rdi, [rsp + 0x720]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x720]
lea rcx, [rsp + 0x50]
call fcn.140005e50
nop
mov r9d, ebp
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.1400082e0
mov eax, 1
mov edi, eax
mov dword [rsp + 0x34], eax
jmp 0x140013ac7
mov edi, dword [rsp + 0x34]
jmp 0x140013ac7
mov edi, dword [rsp + 0x34]
jmp 0x140013ac7
mov edi, dword [rsp + 0x34]
lea rdx, [rsp + 0xb0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140013b23
jmp 0x1400133a0
mov ecx, 0x80070057
call fcn.140001610
int3
mov ecx, 0x80070057
call fcn.140001610
int3
mov ecx, 0x80070057
call fcn.140001610
int3
mov ecx, 0x80070057
call fcn.140001610
nop
mov ecx, 0x80004005
call fcn.140001610
nop
mov ecx, 0x80004005
call fcn.140001610
int3
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
lea rdx, [rsi - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140013b4a
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, r13d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140013b6c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x88]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r13d
add r13d, 0xffffffff
test r13d, r13d
jg 0x140013b90
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, edi
mov rcx, qword [rsp + 0xb30]
xor rcx, rsp
call fcn.140090720
lea r11, [rsp + 0xb40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret