Function at 0x140052420
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1c8]
lea rcx, [0x1400cd014]
call fcn.140056ac0
lea r8, [rbp + 0x28]
lea rdx, [rbp + 8]
mov rcx, qword [rbp + 0x1a0]
call fcn.140052a20
mov qword [rbp + 0x48], 0
cmp qword [0x14009f158], 0
jne 0x140052496
cmp qword [0x14009f150], 0
je 0x140052496
mov rax, qword [0x14009f150]
mov qword [0x14009f158], rax
cmp qword [0x14009f158], 0
je 0x14005252e
mov rax, qword [0x14009f158]
cmp qword [rax + 0x10], 0
je 0x14005252e
mov rax, qword [0x14009f158]
mov rcx, qword [rbp + 8]
cmp qword [rax + 0x10], rcx
jb 0x14005252e
mov rax, qword [0x14009f158]
mov rcx, qword [rbp + 0x28]
cmp qword [rax + 0x10], rcx
ja 0x14005252e
mov rax, qword [0x14009f158]
mov rax, qword [rax + 0x10]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 8]
cmp qword [rbp + 0x48], rax
jb 0x1400524f7
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x48], rax
jbe 0x1400524fe
xor eax, eax
jmp 0x1400527b7
mov rax, qword [0x14009f158]
mov rcx, qword [rbp + 0x48]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rbp + 0x48]
call fcn.140058630
mov rax, qword [rbp + 0x48]
jmp 0x1400527b7
mov rax, qword [0x14009f150]
mov qword [0x14009f158], rax
jmp 0x140052550
mov rax, qword [0x14009f158]
mov rax, qword [rax + 8]
mov qword [0x14009f158], rax
cmp qword [0x14009f158], 0
je 0x14005259b
cmp qword [0x14009f158], 0
je 0x140052599
mov rax, qword [0x14009f158]
cmp qword [rax + 0x10], 0
je 0x140052599
mov rax, qword [0x14009f158]
mov rcx, qword [rbp + 8]
cmp qword [rax + 0x10], rcx
jb 0x140052599
mov rax, qword [0x14009f158]
mov rcx, qword [rbp + 0x28]
cmp qword [rax + 0x10], rcx
ja 0x140052599
jmp 0x1400524d4
jmp 0x14005253e
mov rcx, qword [rbp + 0x1a0]
call fcn.140054cd0
and eax, 0xffff
mov eax, eax
mov rcx, qword [rbp + 0x1a0]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x1a0], rax
mov qword [rbp + 0x68], 0
cmp qword [rbp + 0x68], 0
jne 0x1400525fb
cmp qword [rbp + 0x1a0], 0x40000000
jbe 0x1400525fb
mov rax, qword [rbp + 0x1a0]
sub rax, 0x40000000
mov rdx, rax
mov rcx, qword [rbp + 8]
call fcn.1400520b0
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x140052632
movabs rax, 0xffffffff40000000
cmp qword [rbp + 0x1a0], rax
jae 0x140052632
mov rax, qword [rbp + 0x1a0]
add rax, 0x40000000
mov rdx, qword [rbp + 0x28]
mov rcx, rax
call fcn.140052200
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x140052666
cmp qword [rbp + 0x1a0], 0x40000000
jbe 0x140052666
mov rax, qword [rbp + 0x1a0]
sub rax, 0x40000000
mov rdx, qword [rbp + 0x1a0]
mov rcx, rax
call fcn.140052200
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x1400526a0
movabs rax, 0xffffffff40000000
cmp qword [rbp + 0x1a0], rax
jae 0x1400526a0
mov rax, qword [rbp + 0x1a0]
add rax, 0x40000000
mov rdx, rax
mov rcx, qword [rbp + 0x1a0]
call fcn.1400520b0
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x1400526bb
mov rdx, qword [rbp + 0x1a0]
mov rcx, qword [rbp + 8]
call fcn.1400520b0
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x1400526d6
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x1a0]
call fcn.140052200
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
je 0x1400527b5
mov rax, qword [rbp + 0x68]
mov qword [0x14009f158], rax
mov rax, qword [0x14009f158]
mov dword [rax], 0x52727464
mov rax, qword [0x14009f158]
mov qword [rax + 0x10], 0
mov rax, qword [0x14009f158]
mov rcx, qword [0x14009f150]
mov qword [rax + 8], rcx
mov rax, qword [0x14009f158]
mov qword [0x14009f150], rax
mov qword [rbp + 0x88], 0
mov rax, qword [0x14009f158]
add rax, 0x60
mov qword [rbp + 0x48], rax
mov dword [rbp + 0xa4], reloc.SHELL32.dll_IsUserAnAdmin
jmp 0x14005275c
mov eax, dword [rbp + 0xa4]
dec eax
mov dword [rbp + 0xa4], eax
cmp dword [rbp + 0xa4], 1
jle 0x14005279e
movsxd rax, dword [rbp + 0xa4]
imul rax, rax, 0x60
mov rcx, qword [rbp + 0x48]
mov rdx, qword [rbp + 0x88]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rbp + 0xa4]
imul rax, rax, 0x60
mov rcx, qword [rbp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
jmp 0x14005274e
mov rax, qword [0x14009f158]
mov rcx, qword [rbp + 0x88]
mov qword [rax + 0x10], rcx
jmp 0x1400524d4
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.d2d1.dll_Ordinal_2
call fcn.140056a4c
mov rax, rdi
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret