Function at 0x140002af0
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x600]
sub rsp, 0x700
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rbp + 0x5f0], rax
xor esi, esi
call fcn.140003dec
lea rcx, str.launch.cfg
mov qword [rsp + 0x50], rcx
mov ebx, 0xa
mov qword [rsp + 0x58], rbx
lea r8, [rsp + 0x50]
mov edx, eax
lea rcx, [rsp + 0x28]
call fcn.140002090
nop
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 7
cmova rcx, qword [rsp + 0x28]
mov r9d, 0xffffffff
lea r8d, [rsi + 3]
lea rdx, [rsp + 0x60]
call fcn.140003f28
mov r8d, eax
test eax, eax
jne 0x140002bbe
mov edx, dword [rsp + 0x70]
test dl, 1
mov ecx, 0x1ff
mov eax, 0x16d
cmovne ecx, eax
mov dword [rsp + 0x54], ecx
bt edx, 0xa
jae 0x140002bb0
mov eax, dword [rsp + 0x74]
cmp eax, 0xa000000c
jne 0x140002ba9
lea ebx, [rsi + 4]
jmp 0x140002be1
cmp eax, 0xa0000003
je 0x140002be1
movzx ebx, dl
and ebx, 0x10
or ebx, 0x20
shr ebx, 4
jmp 0x140002be1
mov dword [rsp + 0x54], 0xffff
sub eax, 2
je 0x140002bdc
sub eax, 1
je 0x140002bdc
sub eax, 0x32
je 0x140002bdc
cmp eax, 0x46
mov ebx, esi
jne 0x140002be1
mov ebx, 1
mov dword [rsp + 0x50], r8d
lea rax, [0x14000a0c8]
mov qword [rsp + 0x58], rax
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
test ebx, ebx
je 0x140002c47
cmp ebx, 1
setne bl
mov rdx, qword [rsp + 0x40]
cmp rdx, 7
jbe 0x140002c59
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002c54
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002c54
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
xor bl, bl
test r8d, r8d
jne 0x140002dec
jmp 0x140002c07
call fcn.140004528
test bl, bl
je 0x140002c90
lea rdx, [rbp - 0x80]
lea rcx, str..exe
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
xor ecx, ecx
cmp rax, 0xffffffffffffffff
jne 0x140002cba
xor r9d, r9d
lea r8, str.Error
lea rdx, str.Failed_to_find_loader_
call qword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov rcx, qword [rbp + 0x5f0]
xor rcx, rsp
call fcn.1400042c0
lea r11, [rsp + 0x700]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov r8d, 0x104
lea rdx, [rbp + 0x3e0]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140002d00
xor r9d, r9d
lea r8, str.Error
lea rdx, str.Failed_to_get_own_executable_name_
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x140002c90
lea rdx, [rbp + 0x1d0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea r8, [0x1400068b4]
mov edx, 0x104
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea r8, [rbp - 0x54]
mov edx, 0x104
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rdx, [rbp + 0x3e0]
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140002d74
lea rdx, [rbp - 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140002d00
mov eax, 1
jmp 0x140002c92
lea rax, [rbp + 0x1d0]
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], 0
jne 0x140002d82
mov rax, qword [0x14000a0f0]
cmp rdx, rax
ja 0x140002dd6
lea rdi, [0x14000a0d8]
cmp rax, 7
cmova rdi, qword [0x14000a0d8]
mov qword [0x14000a0e8], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
lea rdx, [rbp + 0x1d0]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi], si
mov eax, 1
jmp 0x140002c92
lea r9, [rbp + 0x1d0]
call fcn.140003190
mov eax, 1
jmp 0x140002c92
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x50]
call fcn.140002a90
int3