Function at 0x140004710
Capabilities:
Enumerate files on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x278]
sub rsp, 0x360
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140010008]
xor rax, rsp
mov qword [rbp + 0x250], rax
mov rsi, rcx
mov qword [rsp + 0x70], rcx
xor r14d, r14d
mov edi, r14d
mov qword [rbp - 0x48], 7
mov qword [rbp - 0x50], r14
mov word [rbp - 0x60], r14w
lea r8d, [r14 + 5]
lea rdx, str.x64_
lea rcx, [rbp - 0x60]
call fcn.140005860
nop
mov rax, qword [rsi + 0x10]
sub eax, dword [rbp - 0x50]
test eax, eax
jg 0x1400047fe
mov rax, qword [rbp - 0x48]
cmp rax, 8
jb 0x140004c16
inc rax
mov rcx, qword [rbp - 0x60]
movabs rbx, 0x7fffffffffffffff
cmp rax, rbx
jbe 0x1400047b1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
add rax, rax
cmp rax, 0x1000
jb 0x140004c11
test byte [rbp - 0x60], 0x1f
je 0x1400047cd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400047dd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400047ed
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x140004c0e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
movsxd r9, eax
lea rdx, [rbp - 0x80]
mov rcx, rsi
call fcn.1400055c0
nop
mov eax, 0x5c
mov word [rsp + 0x78], ax
mov r11, qword [rbp - 0x68]
mov r10, qword [rbp - 0x80]
mov rcx, qword [rbp - 0x70]
cmp rcx, 1
jb 0x140004b2b
lea rax, [rbp - 0x80]
cmp r11, 8
cmovae rax, r10
lea r9, [rcx - 1]
lea r9, [rax + r9*2]
or ebx, 0xffffffff
nop word [rax + rax]
cmp word [r9], 0x5c
sete al
test al, al
je 0x140004898
mov edx, 1
lea r8, [rsp + 0x78]
mov rax, r9
nop dword [rax]
movzx ecx, word [r8]
cmp word [rax], cx
jne 0x140004889
add rax, 2
add r8, 2
sub rdx, 1
je 0x1400048b0
jmp 0x140004870
mov edx, 1
cmp word [rax], cx
cmovb edx, ebx
test edx, edx
je 0x1400048b0
lea rcx, [rbp - 0x80]
call fcn.140005770
cmp r9, rax
je 0x140004b2b
sub r9, 2
jmp 0x140004850
lea rax, [rbp - 0x80]
cmp r11, 8
cmovae rax, r10
sub r9, rax
sar r9, 1
cmp r9, 0xffffffffffffffff
je 0x140004b2b
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x80]
call fcn.1400055c0
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.1400056a0
mov rax, qword [rsp + 0x38]
cmp rax, 8
jb 0x14000495b
inc rax
mov rcx, qword [rsp + 0x20]
movabs rbx, 0x7fffffffffffffff
cmp rax, rbx
jbe 0x14000490f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
add rax, rax
cmp rax, 0x1000
jb 0x140004956
test cl, 0x1f
je 0x140004926
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140004936
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x140004946
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x140004953
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.1400073b0
lea r8, str..
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x40]
call fcn.140006110
nop
lea r8, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae r8, qword [rbp - 0x80]
lea rdx, str.WaitForUpdate______BaseDir___s
lea rcx, [0x140010748]
call fcn.1400018a0
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae rcx, qword [rbp - 0x40]
lea rdx, [rbp]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400049f0
lea rdx, str.WaitForUpdate_error:_failed_to_find_first_file
lea rcx, [0x140010748]
call fcn.1400018a0
nop
lea rcx, [rbp - 0x40]
call fcn.140005600
nop
lea rcx, [rbp - 0x80]
call fcn.140005600
nop
lea rcx, [rbp - 0x60]
call fcn.140005600
jmp 0x140004c27
movzx ecx, word [rbp + 0x2c]
movzx eax, word [rbp + 0x2e]
cmp cx, word [0x1400097e4]
jne 0x140004a0e
cmp ax, word [0x1400097e6]
je 0x140004ac7
cmp cx, word [0x1400097e8]
jne 0x140004a31
cmp ax, word [0x1400097ea]
jne 0x140004a31
movzx eax, word [rbp + 0x30]
cmp ax, word [0x1400097ec]
je 0x140004ac7
test byte [rbp], 0x10
je 0x140004ac7
lea r8, [0x1400097f0]
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x50]
call fcn.140006110
nop
lea r8, [rbp + 0x2c]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1400061f0
nop
lea r8, str..
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.1400061f0
nop
lea rcx, [rsp + 0x20]
call fcn.140005600
nop
lea rcx, [rsp + 0x50]
call fcn.140005600
mov qword [rsp + 0x38], 7
mov qword [rsp + 0x30], r14
mov word [rsp + 0x20], r14w
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x20]
call fcn.140005af0
lea rcx, [rsp + 0x20]
call fcn.140004c60
test al, al
je 0x140004abe
inc edi
lea rcx, [rbp - 0x20]
call fcn.140005600
lea rdx, [rbp]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400049f0
cmp edi, 1
setg bl
movzx r9d, bl
mov r8d, edi
lea rdx, str.WaitForUpdate:_full_Addin_package_count____d___IsWaitUpdate____d_
lea rcx, [0x140010748]
call fcn.1400018a0
nop
lea rcx, [rbp - 0x40]
call fcn.140005600
nop
lea rcx, [rbp - 0x80]
call fcn.140005600
nop
lea rcx, [rbp - 0x60]
call fcn.140005600
nop
mov rcx, rsi
call fcn.140005600
movzx eax, bl
jmp 0x140004c31
movabs rbx, 0x7fffffffffffffff
cmp r11, 8
jb 0x140004b9b
lea rax, [r11 + 1]
cmp rax, rbx
jbe 0x140004b4b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
add rax, rax
cmp rax, 0x1000
jb 0x140004b93
test byte [rbp - 0x80], 0x1f
je 0x140004b63
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [r10 - 8]
cmp rax, r10
jb 0x140004b73
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub r10, rax
cmp r10, 8
jae 0x140004b83
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp r10, 0x27
jbe 0x140004b90
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov r10, rax
mov rcx, r10
call fcn.1400073b0
mov qword [rbp - 0x68], 7
mov qword [rbp - 0x70], r14
mov word [rbp - 0x80], r14w
mov rax, qword [rbp - 0x48]
cmp rax, 8
jb 0x140004c16
inc rax
mov rcx, qword [rbp - 0x60]
cmp rax, rbx
jbe 0x140004bc9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
add rax, rax
cmp rax, 0x1000
jb 0x140004c11
test byte [rbp - 0x60], 0x1f
je 0x140004be1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140004bf1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x140004c01
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x140004c0e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.1400073b0
mov word [rbp - 0x60], r14w
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x48], 7
mov rcx, rsi
call fcn.140005600
xor al, al
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.140007350
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret