Function at 0x14001045c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
push r14
push r15
mov eax, 0x108e0
call fcn.140019520
sub rsp, rax
xor eax, eax
xor r14d, r14d
lea r9, [rsp + 0xa0]
mov qword [rsp + 0xa1], rax
mov qword [rsp + 0xa9], rax
mov qword [rsp + 0xb1], rax
mov dword [rsp + 0xb9], eax
mov word [rsp + 0xbd], ax
mov byte [rsp + 0xbf], al
lea rax, [rsp + 0x5c]
mov rbx, r8
mov rdi, rcx
mov r12d, r14d
mov byte [rsp + 0xa0], r14b
mov dword [rsp + 0x5c], r14d
mov qword [rsp + 0x20], rax
call fcn.14001008c
cmp eax, r14d
je 0x140010877
lea rcx, [rsp + 0x60]
mov rdx, rbx
mov qword [rsp + 0x60], r14
call fcn.1400177d4
cmp eax, r14d
je 0x140010866
lea r8, str.PolicySecrets
lea edx, [r14 + 0x20]
lea rcx, [rsp + 0x60]
call fcn.140017880
cmp eax, r14d
mov ebx, eax
je 0x140010866
add eax, 0x1000
cmp eax, dword [rsp + 0x68]
jae 0x14001053b
cmp ebx, 0xffffffff
je 0x14001053b
mov ecx, eax
add rcx, qword [rsp + 0x60]
jmp 0x14001053e
mov rcx, r14
cmp rcx, r14
je 0x140010550
cmp word [rcx + 4], 0x6b6e
jne 0x140010550
mov esi, dword [rcx + 0x18]
jmp 0x140010553
mov esi, r14d
lea r8, [rsp + 0x88]
lea rcx, [rsp + 0x80]
mov r9d, 4
mov edx, esi
mov dword [rsp + 0x8c], 0x20
mov qword [rsp + 0x80], r14
mov dword [rsp + 0x90], r14d
mov dword [rsp + 0x88], r14d
mov dword [rsp + 0x20], 0x20
call fcn.14000a048
mov r9, qword [rsp + 0x80]
lea rcx, [rsp + 0x60]
mov r8d, esi
mov edx, ebx
call fcn.140017e34
cmp esi, r14d
mov dword [rsp + 0x58], r14d
jbe 0x14001084f
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x98], rcx
mov ebx, dword [rcx]
lea rcx, [rsp + 0xe2]
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0xe0], r14w
call sub.msvcrt.dll_memset
lea r8, [rsp + 0xe0]
lea rcx, [rsp + 0x60]
mov r9d, 0x3ff
mov edx, ebx
call fcn.140017da4
cmp eax, r14d
je 0x1400106d7
lea rdx, [rsp + 0xe0]
lea rcx, str.DPAPI_SYSTEM
call sub.msvcrt.dll__wcsicmp
cmp eax, r14d
jne 0x1400106d7
xor edx, edx
lea rcx, [rsp + 0x44]
mov word [rsp + 0x40], r14w
lea r8d, [rdx + 0x14]
call sub.msvcrt.dll_memset
lea r11, [rsp + 0x40]
lea r9, [0x14001a8d0]
lea r8, str.CurrVal
lea rcx, [rsp + 0x60]
mov edx, ebx
mov qword [rsp + 0x20], r11
call fcn.140017bcc
cmp eax, r14d
je 0x1400106d7
mov ebx, dword [rsp + 0x5c]
cmp ebx, 0x20
jne 0x140010703
mov rbx, qword [rsp + 0x50]
mov r14d, dword [rsp + 0x44]
mov r8d, 0x20
lea r15, [rbx + 0x3c]
add r14d, 0xffffffc4
lea rdx, [rsp + 0xa0]
mov dword [rsp + 0x30], r14d
lea r9, [rbx + 0x1c]
mov rcx, rdi
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], r8d
call fcn.14000fe60
test eax, eax
je 0x1400106d4
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x40], rax
mov edx, dword [r15]
cmp edx, r14d
jb 0x140010898
xor r14d, r14d
mov eax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x98]
add eax, 1
add rcx, 4
cmp eax, esi
mov dword [rsp + 0x58], eax
mov qword [rsp + 0x98], rcx
jae 0x14001084f
jmp 0x1400105d0
lea rcx, [rsp + 0x8e1]
xor edx, edx
mov r8d, 0xffff
mov byte [rsp + 0x8e0], r14b
call sub.msvcrt.dll_memset
mov eax, dword [rsp + 0x44]
mov r11, qword [rsp + 0x50]
add eax, 0xfffffff4
mov edx, 0x10000
mov dword [rsp + 0xd0], eax
mov dword [rsp + 0xd4], eax
lea rax, [rsp + 0xa0]
add r11, 0xc
cmp qword [rdi + 0x18], r14
mov qword [rsp + 0xc8], rax
lea rax, [rsp + 0x8e0]
mov qword [rsp + 0xd8], r11
mov dword [rsp + 0xc0], ebx
mov dword [rsp + 0xc4], ebx
mov dword [rsp + 0x70], edx
mov dword [rsp + 0x74], edx
mov qword [rsp + 0x78], rax
jne 0x1400107ba
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp rax, r14
jne 0x1400107a2
lea rcx, str.advapi32.dll
call fcn.14000ab14
lea rdx, str.SystemFunction005
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [rsp + 0x70]
mov qword [rdi + 0x18], rax
mov rax, qword [rdi + 0x18]
cmp rax, r14
je 0x1400107e0
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0xd0]
call rax
mov edx, dword [rsp + 0x70]
jmp 0x1400107e3
mov eax, r14d
cmp eax, r14d
jne 0x1400106d7
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x78]
cmp edx, r14d
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], edx
mov rax, qword [rcx + 8]
mov qword [rdi + 0x30], rax
mov rax, qword [rcx + 0x10]
mov qword [rdi + 0x38], rax
mov qword [rdi + 0x28], r14
jbe 0x140010849
lea rcx, [rdi + 8]
call fcn.14000b474
mov r8d, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rdi + 8]
call sub.msvcrt.dll_memcpy
mov r11, qword [rdi + 8]
mov qword [rdi + 0x38], r11
mov r12d, 1
cmp qword [rsp + 0x80], r14
je 0x140010866
mov rcx, qword [rsp + 0x80]
call sub.msvcrt.dll_free
cmp qword [rsp + 0x60], r14
je 0x140010877
mov rcx, qword [rsp + 0x60]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
lea r11, [rsp + 0x108e0]
mov eax, r12d
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop r12
ret
lea rax, [rbx + 0x4c]
xor r14d, r14d
jmp 0x1400107fe