Function at 0x140006170
Capabilities:
Enumerate files on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x298]
sub rsp, 0x370
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
mov rax, qword [0x140011010]
xor rax, rsp
mov qword [rbp + 0x240], rax
mov rbx, rcx
mov qword [rbp - 0x78], rcx
xor r14d, r14d
mov edi, r14d
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x20], xmm1
lea r8d, [r14 + 5]
lea rdx, str.x64_
lea rcx, [rbp - 0x30]
call fcn.140007b10
nop
mov ecx, dword [rbx + 0x10]
sub ecx, dword [rbp - 0x20]
test ecx, ecx
jg 0x1400062ba
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x14000622f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
cmp rdx, 0x1000
mov rax, rcx
jb 0x140006229
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400068c2
call fcn.140008cb0
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14000626e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140006269
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400068c9
mov rcx, r8
call fcn.140008cb0
xor al, al
mov word [rbx], r14w
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r14
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.140008c90
lea r11, [rsp + 0x370]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x58], r14
movsxd r8, ecx
cmp qword [rbx + 0x10], r8
cmovb r8, qword [rbx + 0x10]
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400062e2
mov rdx, qword [rbx]
lea rcx, [rbp - 0x70]
call fcn.140007b10
nop
lea rdx, [rbp - 0x70]
mov r9, qword [rbp - 0x70]
mov r10, qword [rbp - 0x58]
cmp r10, 8
cmovae rdx, r9
mov r11, qword [rbp - 0x60]
test r11, r11
je 0x140006830
lea rcx, [r11 - 1]
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea r8, [rdx + rax*2]
cmp word [r8], 0x5c
je 0x140006344
nop word [rax + rax]
cmp r8, rdx
je 0x140006830
sub r8, 2
cmp word [r8], 0x5c
jne 0x140006330
sub r8, rdx
sar r8, 1
cmp r8, 0xffffffffffffffff
je 0x140006830
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
cmp r11, r8
cmovb r8, r11
lea rdx, [rbp - 0x70]
cmp r10, 8
cmovae rdx, r9
lea rcx, [rsp + 0x40]
call fcn.140007b10
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x1400063c2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400063bd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000672a
call fcn.140008cb0
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rbp - 0x60], xmm1
movabs r15, 0x7ffffffffffffffe
mov rax, r15
movq rcx, xmm1
sub rax, rcx
cmp rax, 4
jb 0x1400068d6
lea r9, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae r9, qword [rbp - 0x70]
mov qword [rsp + 0x30], 4
lea r13, str..
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x50]
call fcn.140007f90
nop
lea r8, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae r8, qword [rbp - 0x70]
lea rdx, str.WaitForUpdate______BaseDir___s
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140001900
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rcx, qword [rbp - 0x50]
lea rdx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140006527
lea rdx, str.WaitForUpdate_error:_failed_to_find_first_file
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140001900
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x1400064bf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400064ba
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000672a
call fcn.140008cb0
movdqa xmm0, xmmword [0x14000e710]
movdqu xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x50], r14w
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x140006511
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000650c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000685f
call fcn.140008cb0
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x58], 7
mov word [rbp - 0x70], r14w
jmp 0x1400061ee
lea r12, [0x14000b854]
nop
movzx ecx, word [rbp + 0x1c]
movzx eax, word [rbp + 0x1e]
cmp cx, 0x2e
jne 0x14000655c
test ax, ax
je 0x1400066bc
cmp cx, cx
jne 0x14000655c
cmp ax, cx
jne 0x14000655c
cmp word [rbp + 0x20], 0
je 0x1400066bc
test byte [rbp - 0x10], 0x10
je 0x1400066bc
mov rax, r15
mov rcx, qword [rbp - 0x60]
sub rax, rcx
cmp rax, 1
jb 0x1400068d0
lea r9, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae r9, qword [rbp - 0x70]
mov qword [rsp + 0x30], 1
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x68]
call fcn.140007f90
nop
lea rdx, [rbp + 0x1c]
lea rcx, [rsp + 0x68]
call fcn.140007a60
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
mov rdx, r13
lea rcx, [rsp + 0x40]
call fcn.140007a60
movups xmm6, xmmword [rax]
movups xmm7, xmmword [rax + 0x10]
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x14000664d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006648
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006731
call fcn.140008cb0
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r14w
mov rdx, qword [rbp - 0x80]
cmp rdx, 8
jb 0x1400066a2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000669d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006738
call fcn.140008cb0
movups xmmword [rsp + 0x68], xmm6
movups xmmword [rsp + 0x78], xmm7
lea rcx, [rsp + 0x68]
call fcn.1400068e0
test al, al
je 0x1400066bc
inc edi
lea rdx, [rbp - 0x10]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140006530
cmp edi, 1
setg sil
movzx r9d, sil
mov r8d, edi
lea rdx, str.WaitForUpdate:_full_Addin_package_count____d___IsWaitUpdate____d_
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140001900
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x140006744
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000673f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000673f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140008cb0
movdqa xmm0, xmmword [0x14000e710]
movdqu xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x50], r14w
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x140006796
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006791
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000685f
call fcn.140008cb0
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x58], 7
mov word [rbp - 0x70], r14w
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x1400067e8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400067e2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400068c2
call fcn.140008cb0
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140006827
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140006822
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400068c9
mov rcx, r8
call fcn.140008cb0
movzx eax, sil
jmp 0x140006270
cmp r10, 8
jb 0x14000686e
lea rdx, [r10*2 + 2]
mov rax, r9
cmp rdx, 0x1000
jb 0x140006866
add rdx, 0x27
mov r9, qword [r9 - 8]
sub rax, r9
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006866
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r9
call fcn.140008cb0
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x58], 7
mov word [rbp - 0x70], r14w
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x14000622f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006229
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006229
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1400011b0
nop
call fcn.1400011b0
int3