Function at 0x1400108d0
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x910
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov qword [rsp + 0x950], rbx
mov rax, qword [0x140134780]
xor rax, rsp
mov qword [rsp + 0x900], rax
mov qword [rsp + 0x78], r9
mov r14, r8
mov r12, rdx
mov qword [rsp + 0x50], rdx
mov rdi, rcx
mov qword [rsp + 0x58], rcx
xor r15d, r15d
mov dword [rsp + 0x30], r15d
call fcn.14003c3f0
mov rcx, rax
xor eax, eax
test rcx, rcx
setne al
test eax, eax
jne 0x140010948
mov ecx, 0x80004005
call fcn.140001120
int3
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x80], rax
call fcn.14003c3f0
mov rcx, rax
xor eax, eax
test rcx, rcx
setne al
test eax, eax
jne 0x140010979
mov ecx, 0x80004005
call fcn.140001120
int3
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
call fcn.14003c3f0
mov rcx, rax
xor eax, eax
test rcx, rcx
setne al
test eax, eax
jne 0x1400109a7
mov ecx, 0x80004005
call fcn.140001120
int3
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rsi, [rax + 0x18]
mov qword [rsp + 0x40], rsi
xor edx, edx
mov r8d, 0x250
lea rcx, [rsp + 0x90]
call fcn.1400a09f0
mov r8, r12
lea rdx, str._s.inf
lea rcx, [rsp + 0x4f0]
call fcn.1400030e0
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x4f0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbp, rax
mov qword [rsp + 0x48], rax
or r13, 0xffffffffffffffff
cmp rax, r13
je 0x140010e9f
nop
lea r9, [rsp + 0xbc]
mov r8, r12
lea rdx, [0x1400efcb0]
lea rcx, [rsp + 0x4f0]
call fcn.1400030e0
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 2]
lea rcx, [rsp + 0x4f0]
call qword [sym.imp.SETUPAPI.dll_SetupOpenInfFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x140010e22
lea r9, [rsp + 0x60]
xor r8d, r8d
lea rdx, str.Manufacturer
mov rcx, rax
call qword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
je 0x140010e0d
mov qword [rsp + 0x20], 0
mov r9d, 0x104
lea r8, [rsp + 0x2e0]
mov edx, 1
lea rcx, [rsp + 0x60]
call qword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
je 0x140010e0d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x2e0]
mov rdx, r15
mov rcx, rdi
call fcn.140003280
test eax, eax
jne 0x140010ad9
mov rcx, r15
call qword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
mov r15d, dword [rsp + 0x30]
jmp 0x140010e27
lea r9, [rsp + 0x60]
xor r8d, r8d
lea rdx, [rsp + 0x2e0]
mov rcx, r15
call qword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
je 0x140010e0d
xor r12d, r12d
nop
mov qword [rsp + 0x20], r12
mov r9d, 0x104
lea r8, [rsp + 0x2e0]
mov edx, 2
lea rcx, [rsp + 0x60]
call qword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
je 0x140010dcc
xor eax, eax
mov rcx, r13
lea rdi, [rsp + 0x2e0]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
cmp rcx, 1
jbe 0x140010dcc
mov rcx, r13
lea rdi, [rsp + 0x2e0]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x140010bc6
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140010c53
cmp dword [rdx + 0x10], eax
jge 0x140010b92
cmp dword [rbx - 0xc], eax
jl 0x140010e41
mov dword [rbx - 0x10], r12d
mov word [rbx], ax
jmp 0x140010c53
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140010baa
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 0x140010c53
mov ebp, dword [rbx - 0x10]
lea r12, [rsp + 0x2e0]
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 0x140010bf9
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.140004410
mov rbx, qword [rsp + 0x38]
cmp r12, rbp
ja 0x140010c19
movsxd rax, edi
lea rbp, [rax + rax]
lea r8, [rbx + r12*2]
mov r9, rbp
mov rdx, rbp
mov rcx, rbx
call fcn.14009f850
jmp 0x140010c36
movsxd rax, edi
lea rbp, [rax + rax]
mov r9, rbp
lea r8, [rsp + 0x2e0]
mov rdx, rbp
mov rcx, rbx
call fcn.14009f640
test edi, edi
js 0x140010e62
cmp edi, dword [rbx - 0xc]
jg 0x140010e62
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 0x140010c79
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.140004410
mov rbx, qword [rsp + 0x38]
lea eax, [rdi + 1]
movsxd rdx, eax
mov rcx, rbx
call fcn.14009fd30
test edi, edi
js 0x140010e57
cmp edi, dword [rbx - 0xc]
jg 0x140010e57
mov dword [rbx - 0x10], edi
mov word [rbx + rdi*2], 0
lea rcx, [rbx - 0x18]
lea rdi, [rsi - 0x18]
cmp rcx, rdi
je 0x140010d05
cmp dword [rdi + 0x10], 0
jl 0x140010cef
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x140010cef
call fcn.140004470
mov rsi, rax
mov eax, r13d
lock xadd dword [rdi + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140010cdf
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 0x140010d05
mov r8d, dword [rbx - 0x10]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140006310
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 0x140010d2b
mov edx, ebp
lea rcx, [rsp + 0x40]
call fcn.140004410
mov rsi, qword [rsp + 0x40]
mov rcx, rsi
mov rdi, rsi
lea r11, [rsi + rbp*2]
cmp rsi, r11
jae 0x140010d84
nop
nop
lea r10, [rcx + 2]
cmp word [rcx], 0x2a
je 0x140010d7c
mov r8, r10
sub r8, rcx
sar r8, 1
lea r9, [rdi + r8*2]
mov rdx, r12
cmp rdi, r9
je 0x140010d7c
nop
cmp rdx, r8
jae 0x140010d7c
movzx eax, word [rcx]
mov word [rdi], ax
add rcx, 2
add rdi, 2
add rdx, 1
cmp rdi, r9
jne 0x140010d60
mov rcx, r10
cmp r10, r11
jb 0x140010d40
mov word [rdi], 0
sub rcx, rdi
sar rcx, 1
sub ebp, ecx
js 0x140010e4c
cmp ebp, dword [rsi - 0xc]
jg 0x140010e4c
mov dword [rsi - 0x10], ebp
movsxd rax, ebp
mov word [rsi + rax*2], 0
mov rdx, rbx
mov rcx, r14
call fcn.14009f5d0
test rax, rax
jne 0x140010de5
mov rdx, rsi
mov rcx, r14
call fcn.14009f5d0
test rax, rax
jne 0x140010de5
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x60]
call qword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
je 0x140010dfe
jmp 0x140010b00
mov dword [rsp + 0x30], 1
mov rbp, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
mov r12, qword [rsp + 0x50]
jmp 0x140010e0d
mov rbp, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
mov r12, qword [rsp + 0x50]
mov rcx, r15
call qword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
mov r15d, dword [rsp + 0x30]
test r15d, r15d
jne 0x140010e6d
jmp 0x140010e27
mov r15d, dword [rsp + 0x30]
lea rdx, [rsp + 0x90]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140010e95
jmp 0x140010a10
mov ecx, 0x80070057
call fcn.140001120
int3
mov ecx, 0x80070057
call fcn.140001120
int3
mov ecx, 0x80070057
call fcn.140001120
int3
mov ecx, 0x80070057
call fcn.140001120
int3
xor eax, eax
mov rcx, r13
lea rdi, [rsp + 0x4f0]
repne scasw ax, word [rdi]
not rcx
lea r8, [rsp + 0x4f0]
mov rdx, rcx
mov rcx, qword [rsp + 0x78]
call fcn.1400a1bd0
mov rcx, rbp
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 0x140010ebc
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 0x140010ede
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x80]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r13d
add r13d, 0xffffffff
test r13d, r13d
jg 0x140010f02
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r15d
mov rcx, qword [rsp + 0x900]
xor rcx, rsp
call fcn.1400a1970
mov rbx, qword [rsp + 0x950]
add rsp, 0x910
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret