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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1d8]
sub rsp, 0x2d8
mov rax, qword [0x18008ab58]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov r12, qword [rbp + 0x248]
mov rax, rcx
mov esi, dword [rbp + 0x240]
mov r14, r9
mov qword [rsp + 0x70], rcx
mov r13d, r8d
mov rcx, qword [rbp + 0x250]
mov edi, edx
mov qword [rsp + 0x30], rcx
mov qword [rbp - 0x78], rcx
mov rcx, rax
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], esi
mov dword [rsp + 0x54], r8d
mov qword [rbp - 0x80], r12
call fcn.18003f4fc
mov ebx, eax
xor eax, eax
lea ecx, [rax + 2]
cmp ebx, ecx
cmove ebx, eax
cmp ebx, 0xe
jne 0x1800430de
mov r15d, 0x12f
cmp edi, r15d
jne 0x180043629
lea edi, [rax + 1]
cmp esi, edi
jne 0x180043629
mov eax, ecx
jmp 0x18004362b
test ebx, ebx
jne 0x180043629
mov r15d, 0x12f
cmp edi, r15d
jne 0x180043622
lea edi, [rbx + 1]
cmp esi, edi
jne 0x180043622
mov rcx, qword [r12]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x60], eax
test rcx, rcx
je 0x180043131
mov eax, dword [rcx]
mov dword [rsp + 0x5c], eax
mov eax, dword [rcx + 4]
mov dword [rsp + 0x60], eax
lea rax, [rcx + 8]
mov qword [rsp + 0x78], rax
mov rax, qword [rbp - 0x78]
mov r9, r14
mov rsi, qword [rsp + 0x70]
mov r8d, r13d
mov qword [rsp + 0x30], rax
mov edx, 0x12e
lea rax, [rsp + 0x68]
mov rcx, rsi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
call fcn.18003f4fc
mov rcx, qword [rsp + 0x68]
mov ebx, eax
xor eax, eax
test ebx, ebx
jne 0x1800432c0
test rcx, rcx
je 0x180043271
lea r13, [rcx + 8]
mov esi, eax
cmp dword [rcx], eax
jbe 0x180043253
mov r12d, esi
xor edx, edx
mov rax, qword [r13 + r12*8]
test rax, rax
je 0x18004323c
cmp qword [rax], rdx
je 0x18004323c
or dword [rsp + 0x58], 0xffffffff
xor r8d, r8d
mov byte [rax + 8], dl
lea rax, [rsp + 0x58]
mov rcx, qword [r13 + r12*8]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x78]
mov r9d, dword [rcx + 0xc]
mov rdx, qword [rcx]
mov qword [rsp + 0x30], rax
mov eax, dword [rcx + 0x10]
mov dword [rsp + 0x28], eax
mov al, byte [rcx + 8]
mov byte [rsp + 0x20], al
call fcn.18003e17c
mov ebx, eax
xor eax, eax
test ebx, ebx
jne 0x180043205
mov qword [r13 + r12*8], rax
jmp 0x18004320c
cmp ebx, 0x34
jne 0x180043213
mov ebx, eax
mov rcx, qword [rsp + 0x68]
jmp 0x18004323e
mov r9, qword [r13 + r12*8]
mov r8d, 0x44c0
mov rdx, qword [rbp - 0x78]
mov ecx, ebx
mov r9, qword [r9]
call fcn.18000dc90
mov rcx, qword [rsp + 0x68]
xor eax, eax
cmp ebx, 8
je 0x18004324a
mov ebx, edi
jmp 0x18004323e
xor eax, eax
add esi, edi
cmp esi, dword [rcx]
jb 0x180043188
jmp 0x18004324f
mov ebx, 8
mov r12, qword [rbp - 0x80]
mov r13d, dword [rsp + 0x54]
mov rsi, qword [rsp + 0x70]
test rcx, rcx
je 0x180043269
call fcn.180011ac8
xor eax, eax
test ebx, ebx
jne 0x1800435e3
mov r9, r14
mov dword [rsp + 0x20], edi
mov r8d, r13d
mov edx, 0x12e
mov rcx, rsi
call fcn.180040580
mov rcx, qword [rsp + 0x70]
mov sil, al
xor eax, eax
mov r9, r14
mov r8d, r13d
mov dword [rsp + 0x20], eax
mov edx, r15d
call fcn.180040580
sub al, 5
mov ecx, 4
test al, 0xfd
je 0x1800432c8
sub sil, 2
neg sil
sbb al, al
and al, cl
mov byte [rsp + 0x50], al
jmp 0x1800432cd
cmp ebx, 2
cmove ebx, eax
jmp 0x18004325d
mov byte [rsp + 0x50], 7
cmp r13d, 0x20
je 0x180043495
cmp r13d, 0x40
jne 0x1800435db
or rax, 0xffffffffffffffff
xor ecx, ecx
inc rax
cmp word [r14 + rax*2], cx
jne 0x1800432e7
add eax, 4
mov dword [rsp + 0x54], 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 rsi, rax
xor eax, eax
test rsi, rsi
jne 0x18004331c
lea ebx, [rax + 8]
jmp 0x1800435e3
mov rcx, r14
call fcn.18003dd38
mov edx, dword [rsp + 0x54]
lea r8, [0x18007bdd8]
inc edx
mov r9, r14
mov rcx, rsi
test eax, eax
jne 0x180043342
lea r8, str._s.
call qword [sym.imp.msvcrt.dll_swprintf_s]
nop dword [rax + rax]
lea rdx, [rbp - 0x70]
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 0x1800435db
mov rcx, r14
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
bt eax, 0xa
jb 0x180043481
mov r13b, byte [rsp + 0x50]
mov r14d, 0x2e
xor esi, esi
movzx eax, word [rbp - 0x48]
movzx ecx, r14w
sub ecx, eax
jne 0x1800433c4
movzx eax, word [rbp - 0x46]
movzx ecx, r14w
sub ecx, eax
jne 0x1800433c4
movzx eax, word [rbp - 0x44]
movzx ecx, si
sub ecx, eax
test ecx, ecx
je 0x18004345f
movzx eax, word [rbp - 0x48]
movzx ecx, r14w
sub ecx, eax
jne 0x1800433e1
movzx eax, word [rbp - 0x46]
movzx ecx, si
sub ecx, eax
test ecx, ecx
je 0x18004345f
mov r9d, dword [rbp - 0x70]
lea rax, [rsp + 0x58]
or dword [rsp + 0x58], 0xffffffff
lea rdx, [rbp - 0x48]
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rsp + 0x60]
shr r9d, 4
mov qword [rsp + 0x40], rax
and r9d, edi
lea rax, [rsp + 0x5c]
xor ecx, ecx
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], esi
mov byte [rsp + 0x20], r13b
call fcn.18003e17c
mov ebx, eax
cmp eax, 0x34
jne 0x18004343f
mov ebx, esi
jmp 0x18004345f
test ebx, ebx
je 0x18004345f
mov rdx, qword [rbp - 0x78]
lea r9, [rbp - 0x48]
mov r8d, 0x44c0
mov ecx, ebx
call fcn.18000dc90
cmp ebx, 8
je 0x18004347c
mov ebx, edi
lea rdx, [rbp - 0x70]
mov rcx, r15
call qword [sym.imp.msvcrt.dll__wfindnext64]
nop dword [rax + rax]
test eax, eax
je 0x1800433a3
jmp 0x180043481
mov ebx, 8
mov rcx, r15
call qword [sym.imp.msvcrt.dll__findclose]
nop dword [rax + rax]
jmp 0x1800435d6
lea r9, [rbp - 0x80]
mov r8d, 0x20019
mov rdx, r14
call fcn.18005cd24
xor r15d, r15d
mov ebx, eax
test eax, eax
jne 0x1800435cd
mov r13b, byte [rsp + 0x50]
mov r14d, r15d
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 rsi, rax
test rax, rax
je 0x1800435b6
mov rcx, qword [rbp - 0x80]
lea r9, [rsp + 0x54]
mov qword [rsp + 0x38], r15
mov r8, rax
mov qword [rsp + 0x30], r15
mov edx, r14d
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x54], 0x104
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
mov r15d, eax
xor eax, eax
test r15d, r15d
jne 0x180043596
mov r8d, dword [rsp + 0x54]
lea rcx, [rsp + 0x58]
or dword [rsp + 0x58], 0xffffffff
mov r9d, edi
mov qword [rsp + 0x48], rcx
mov rdx, rsi
lea rcx, [rsp + 0x60]
add r14d, edi
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x5c]
mov qword [rsp + 0x38], rcx
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x30], rcx
xor ecx, ecx
mov dword [rsp + 0x28], eax
mov byte [rsp + 0x20], r13b
call fcn.18003e17c
mov ebx, eax
cmp eax, 0x34
jne 0x180043577
xor eax, eax
mov ebx, eax
jmp 0x180043596
test ebx, ebx
je 0x180043596
mov rdx, qword [rbp - 0x78]
mov r9, rsi
mov r8d, 0x44c0
mov ecx, ebx
call fcn.18000dc90
cmp ebx, 8
je 0x1800435b6
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
cmp r15d, 0x103
je 0x1800435bb
xor r15d, r15d
jmp 0x1800434bc
mov ebx, 8
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x1800435d6
mov ecx, eax
call fcn.18000ec90
mov ebx, eax
cmp ebx, 8
je 0x1800435e1
xor eax, eax
mov ebx, eax
jmp 0x1800435e3
xor eax, eax
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x180043608
mov eax, dword [rsp + 0x5c]
add rcx, 0xfffffffffffffff8
mov qword [r12], rcx
mov dword [rcx], eax
mov eax, dword [rsp + 0x60]
mov rcx, qword [r12]
mov dword [rcx + 4], eax
xor eax, eax
test ebx, ebx
je 0x18004361d
mov rcx, qword [r12]
call fcn.180011ac8
xor eax, eax
mov qword [r12], rax
jmp 0x180043629
mov ecx, 2
cmp qword [r12], rax
cmove ebx, ecx
mov eax, ebx
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.180002a90
add rsp, 0x2d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret