Function at 0x18001a8dc
Capabilities:
Get file attributes
Query or enumerate registry key

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
xor r13d, r13d
mov dword [rax - 0x68], r9d
mov r15d, edx
mov r8d, edx
xor r9d, r9d
mov r12, rcx
mov edi, r13d
mov r14d, r13d
lea edx, [r13 + 1]
mov esi, r13d
call fcn.18001ae48
mov ebx, eax
cmp eax, 5
je 0x18001ade9
cmp eax, 0x780
je 0x18001ade9
cmp eax, 0x20
je 0x18001ade9
add eax, 0xfffffffe
test eax, 0xfffffffa
jne 0x18001a972
cmp ebx, 7
je 0x18001a972
mov edx, dword [0x18008b2a0]
mov rax, qword gs:[0x58]
mov ecx, 0x18
mov rax, qword [rax + rdx*8]
mov dword [rcx + rax], ebx
xor eax, eax
jmp 0x18001ae29
test ebx, ebx
je 0x18001a97d
mov eax, ebx
jmp 0x18001ae29
or r13, 0xffffffffffffffff
xor eax, eax
inc r13
cmp word [r12 + r13*2], ax
jne 0x18001a983
sub r15d, 1
je 0x18001abd0
cmp r15d, 3
jne 0x18001a976
lea r9, [rbp - 0x10]
mov r8d, 0x20019
mov rdx, r12
lea ecx, [r15 + 1]
call fcn.18005cd24
mov ebx, eax
xor eax, eax
test ebx, ebx
jne 0x18001ab18
mov r15d, eax
mov edx, 0x208
mov ecx, 0x40
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
nop dword [rax + rax]
mov r14, rax
xor eax, eax
test r14, r14
je 0x18001aadb
mov rcx, qword [rbp - 0x10]
lea r9, [rbp + 0x50]
mov qword [rsp + 0x38], rax
mov r8, r14
mov qword [rsp + 0x30], rax
mov edx, r15d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x50], 0x104
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
mov esi, eax
test eax, eax
jne 0x18001aabc
mov eax, dword [rbp + 0x50]
xor ecx, ecx
inc eax
inc r15d
add eax, r13d
mov dword [rbp + 0x50], eax
lea edx, [rax + 1]
add rdx, rdx
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
nop dword [rax + rax]
mov qword [rbp - 8], rax
mov rbx, rax
test rax, rax
je 0x18001aadb
mov edx, dword [rbp + 0x50]
lea r8, str._s_s
inc edx
mov qword [rsp + 0x20], r14
mov r9, r12
mov rcx, rax
call qword [sym.imp.msvcrt.dll_swprintf_s]
nop dword [rax + rax]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
mov r9d, dword [rbp + 0x58]
lea edx, [rsi + 4]
xor eax, eax
xor r8d, r8d
mov rcx, rbx
mov r14d, eax
call fcn.18001a8dc
mov rcx, qword [rbp - 8]
mov ebx, eax
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
test ebx, ebx
je 0x18001a9c2
jmp 0x18001aae0
cmp esi, 0x103
mov rcx, r14
cmovne ebx, esi
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
xor eax, eax
mov r14d, eax
jmp 0x18001aae0
mov ebx, 8
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
xor r8d, r8d
test esi, esi
je 0x18001ab30
cmp esi, 0x103
je 0x18001ab30
mov r9, r12
mov r8d, 0x1c39
mov edx, esi
mov ecx, 1
call fcn.180038d90
mov ebx, esi
jmp 0x18001ab2d
mov r9, r12
mov r8d, 0x1c6a
mov edx, ebx
mov ecx, 1
call fcn.180038d90
xor r8d, r8d
cmp ebx, 5
je 0x18001ab71
cmp ebx, 0x780
je 0x18001ab71
cmp ebx, 0x20
je 0x18001ab71
lea eax, [rbx - 2]
test eax, 0xfffffffa
jne 0x18001abb3
cmp ebx, 7
je 0x18001abb3
mov edx, dword [0x18008b2a0]
mov rax, qword gs:[0x58]
mov ecx, 0x18
mov rax, qword [rax + rdx*8]
mov dword [rcx + rax], ebx
mov ebx, r8d
jmp 0x18001abb3
mov ecx, dword [0x18008b2a0]
mov r9b, 5
mov rax, qword gs:[0x58]
mov rdx, r12
mov dword [rsp + 0x28], r8d
mov qword [rsp + 0x20], r8
mov r8d, 1
mov r10, qword [rax + rcx*8]
mov ecx, 0x18
mov eax, 0x20
mov dword [rcx + r10], ebx
mov rcx, qword [rax + r10]
call fcn.1800448bc
mov ebx, eax
test r14, r14
je 0x18001a976
mov rcx, r14
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
jmp 0x18001adcc
mov edx, 0x230
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x18001abf3
lea ebx, [rax + 8]
jmp 0x18001a976
lea eax, [r13 + 4]
xor ecx, ecx
lea edx, [rax + 1]
mov dword [rbp + 0x50], eax
add rdx, rdx
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x18001ac1e
lea ebx, [rax + 8]
jmp 0x18001adcc
mov edx, dword [rbp + 0x50]
lea r8, str._s.
inc edx
mov r9, r12
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_swprintf_s]
nop dword [rax + rax]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__wfindfirst64]
nop dword [rax + rax]
mov rcx, rsi
mov r15, rax
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
cmp r15, 0xffffffffffffffff
je 0x18001adcc
mov rcx, r12
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
test eax, 0x400
jne 0x18001adbd
mov edx, 0x2e
lea rsi, [rdi + 0x28]
movzx eax, word [rsi]
movzx ecx, dx
sub ecx, eax
jne 0x18001acac
movzx eax, word [rsi + 2]
movzx ecx, dx
sub ecx, eax
jne 0x18001acac
movzx eax, word [rsi + 4]
movzx ecx, r14w
sub ecx, eax
test ecx, ecx
je 0x18001ad9f
movzx eax, word [rsi]
movzx ecx, dx
sub ecx, eax
jne 0x18001acc8
movzx eax, word [rsi + 2]
movzx ecx, r14w
sub ecx, eax
test ecx, ecx
je 0x18001ad9f
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r14w
jne 0x18001acd4
inc eax
xor ecx, ecx
add eax, r13d
mov dword [rbp + 0x50], eax
lea edx, [rax + 1]
add rdx, rdx
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
nop dword [rax + rax]
mov r14, rax
test rax, rax
je 0x18001adb8
mov edx, dword [rbp + 0x50]
lea r8, str._s_s
inc edx
mov qword [rsp + 0x20], rsi
mov r9, r12
mov rcx, rax
call qword [sym.imp.msvcrt.dll_swprintf_s]
nop dword [rax + rax]
mov ebx, dword [rdi]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
xor eax, eax
mov rcx, r14
mov edi, eax
test bl, 0x10
je 0x18001ad57
mov r9d, dword [rbp + 0x58]
lea edx, [rax + 1]
xor r8d, r8d
call fcn.18001a8dc
jmp 0x18001ad6c
mov eax, dword [rbp + 0x58]
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
lea r8d, [r9 + 1]
call fcn.18001ae48
mov rcx, r14
mov ebx, eax
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
xor r14d, r14d
test ebx, ebx
jne 0x18001adbd
mov edx, 0x230
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x18001adb8
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.msvcrt.dll__wfindnext64]
nop dword [rax + rax]
test eax, eax
jmp 0x18001ac7e
mov ebx, 8
mov rcx, r15
call qword [sym.imp.msvcrt.dll__findclose]
nop dword [rax + rax]
test rdi, rdi
je 0x18001a976
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
jmp 0x18001a976
mov ecx, dword [0x18008b2a0]
mov r9b, 5
mov rax, qword gs:[0x58]
mov r8d, 1
mov dword [rsp + 0x28], r13d
mov rdx, r12
mov qword [rsp + 0x20], r13
mov r10, qword [rax + rcx*8]
mov ecx, 0x18
mov eax, 0x20
mov dword [rcx + r10], ebx
mov rcx, qword [rax + r10]
call fcn.1800448bc
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret