Function at 0x14010c940
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x14016a508]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rsi, rdx
mov r12, rcx
mov rcx, qword [0x14016a048]
lea rdi, [0x14016a048]
cmp rcx, rdi
je 0x14010c9ac
test byte [rcx + 0x1c], 1
je 0x14010c9ac
cmp byte [rcx + 0x19], 4
jb 0x14010c9ac
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157dd0]
mov edx, 0x47
call fcn.14000c0e8
xor r13d, r13d
or r15, 0xffffffffffffffff
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x38], r13
test rsi, rsi
jne 0x14010c9da
lea r8, str.prgBackupMachineNames
mov edx, 0x946
lea rcx, str.base_stor_blbengine_blbengutils_blbbackuptargetutils.cpp
call fcn.140088f60
cmp qword [rsi + 8], r13
je 0x14010c9f8
lea r8, str.prgBackupMachineNames__IsEmpty__
mov edx, 0x947
lea rcx, str.base_stor_blbengine_blbengutils_blbbackuptargetutils.cpp
call fcn.140088f60
lea r8, [rsp + 0x30]
xor edx, edx
mov rcx, r12
call fcn.14010dda4
mov ebx, eax
test eax, eax
js 0x14010cc19
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x250
call sub.msvcrt.dll_memset
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
nop dword [rax + rax]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x14010caa9
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x14010ca8f
test dword [rcx + 0x1c], 0x200
je 0x14010ca8f
cmp byte [rcx + 0x19], 3
jb 0x14010ca8f
mov r9, qword [rsp + 0x30]
lea edx, [r15 + 0x49]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157dd0]
mov dword [rsp + 0x20], edi
call fcn.140014f78
cmp edi, 5
lea rdi, [0x14016a048]
jne 0x14010cc19
mov ebx, 0x80070005
jmp 0x14010cc19
mov rcx, qword [0x14016a048]
cmp rcx, rdi
je 0x14010cadb
test byte [rcx + 0x1c], 1
je 0x14010cadb
cmp byte [rcx + 0x19], 4
jb 0x14010cadb
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x6c]
mov edx, 0x49
lea r8, [0x140157dd0]
call fcn.140014f10
lea rax, [rsp + 0x6c]
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], r13w
jne 0x14010cae4
cmp rdi, 1
jb 0x14010cb10
lea rdx, [0x14014e464]
lea rcx, [rsp + 0x6c]
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14010cb63
cmp rdi, 2
jb 0x14010cb32
lea rdx, [0x14014e468]
lea rcx, [rsp + 0x6c]
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14010cb63
test byte [rsp + 0x40], 0x10
je 0x14010cb63
xor r8d, r8d
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x6c]
call fcn.14008a470
mov ebx, eax
test eax, eax
js 0x14010cb99
lea rdx, [rsp + 0x38]
mov rcx, rsi
call fcn.14000c904
mov qword [rsp + 0x38], r13
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x250
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x40]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [rax + rax]
test eax, eax
je 0x14010cbb1
lea rdi, [0x14016a048]
jmp 0x14010caa9
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14010cc12
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
jmp 0x14010cc12
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
cmp eax, 0x12
je 0x14010cc12
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x14010cc01
test byte [rcx + 0x1c], 1
je 0x14010cc01
cmp byte [rcx + 0x19], 2
jb 0x14010cc01
mov r9, qword [rsp + 0x30]
lea r8, [0x140157dd0]
mov rcx, qword [rcx + 0x10]
mov edx, 0x4a
mov dword [rsp + 0x20], edi
call fcn.14003fbc0
test edi, edi
jg 0x14010cc09
mov ebx, edi
jmp 0x14010cc12
movzx ebx, di
or ebx, 0x80070000
lea rdi, [0x14016a048]
cmp qword [rsp + 0x30], r13
je 0x14010cc31
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindClose]
nop dword [rax + rax]
test ebx, ebx
jns 0x14010cc78
mov rcx, qword [0x14016a048]
cmp rcx, rdi
je 0x14010cca5
test byte [rcx + 0x1c], 1
je 0x14010cc7f
cmp byte [rcx + 0x19], 3
jb 0x14010cc7f
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157dd0]
mov edx, 0x4b
mov dword [rsp + 0x20], ebx
mov r9, r12
call fcn.140014f78
mov rcx, qword [0x14016a048]
cmp rcx, rdi
je 0x14010cca5
test byte [rcx + 0x1c], 1
je 0x14010cca5
cmp byte [rcx + 0x19], 4
jb 0x14010cca5
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157dd0]
mov edx, 0x4c
call fcn.14000c0e8
mov eax, ebx
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1400071e0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rbp
ret