Function at 0x140024270
Capabilities:
Check if file exists
Get common file path
Get file attributes
Query environment variable
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2648]
mov eax, 0x2748
call fcn.14008f2b0
sub rsp, rax
mov rax, qword [0x1400fc100]
xor rax, rsp
mov qword [rbp + 0x2630], rax
mov qword [rbp - 0x40], r9
mov r13, r8
mov rsi, rdx
mov qword [rbp - 0x70], rcx
mov rax, qword [rbp + 0x26b8]
mov qword [rbp - 0x68], rax
mov r12, qword [rbp + 0x26c0]
mov qword [rbp - 0x30], r12
xor r14d, r14d
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0x630]
call fcn.1400bc070
nop
movzx edx, byte [rsp + 0x40]
lea rcx, [rbp - 0x28]
call fcn.1400042d0
lea rcx, [rbp - 0x28]
call fcn.1400098c0
nop
mov rdx, rsi
lea rcx, [rsp + 0x68]
call fcn.140007a00
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140020850
mov rdi, rax
cmp rsi, rax
je 0x140024347
mov rcx, rsi
call fcn.140004660
mov rcx, rdi
call fcn.140004660
mov rbx, rax
mov rcx, rsi
call fcn.1400095c0
mov rcx, rbx
call fcn.14000c490
mov rdx, rdi
mov rcx, rsi
call fcn.140009710
lea rcx, [rsp + 0x48]
call fcn.1400079d0
mov rdx, rsi
lea rcx, [rbp + 0x10]
call fcn.1400200c0
nop
cmp dword [0x1400ffb5c], 9
ja 0x14002444d
lea rcx, [0x1400e4100]
call fcn.140004230
mov rdi, rax
mov rbx, qword [rbp + 0x20]
lea rcx, [rbp + 0x10]
call fcn.140009940
mov r12, rax
cmp rdi, rbx
ja 0x140024449
sub rbx, rdi
test rdi, rdi
je 0x140024405
lea r15, [rax + rbx*2]
mov rbx, rax
nop dword [rax]
nop word [rax + rax]
lea rax, [r15 + 2]
sub rax, rbx
sar rax, 1
mov rcx, r14
je 0x1400243db
cmp word [rbx], 0x65
je 0x1400243d8
cmp rax, 1
je 0x1400243db
dec rax
add rbx, 2
cmp word [rbx], 0x65
jne 0x1400243c5
mov rcx, rbx
mov rbx, rcx
test rcx, rcx
je 0x140024449
mov r8, rdi
lea rdx, [0x1400e4100]
call fcn.14000a0f0
test eax, eax
je 0x1400243fc
add rbx, 2
jmp 0x1400243b0
sub rbx, r12
cmp rbx, 2
jae 0x140024449
mov qword [rbp], 4
mov rax, qword [rbp + 0x20]
mov qword [rbp - 0x78], rax
lea rdx, [rbp - 0x78]
lea rcx, [rbp]
call fcn.140004610
mov rbx, qword [rax]
mov rdi, qword [rbp + 0x20]
lea rcx, [rbp + 0x10]
call fcn.140003770
sub rdi, rbx
lea r8, [rdi + 1]
lea rdx, [rax + rbx*2]
mov rcx, rax
call fcn.14000a190
mov qword [rbp + 0x20], rdi
mov r12, qword [rbp - 0x30]
mov rdi, qword [rbp - 0x70]
add rdi, 8
mov rax, qword [rdi]
mov qword [rbp - 0x70], rax
mov rdx, rdi
lea rcx, [rbp - 0x70]
call fcn.140001790
mov rbx, qword [rbp - 0x70]
mov rax, qword [rdi]
mov rcx, qword [rax]
mov qword [rbp], rcx
mov rdx, rdi
lea rcx, [rbp]
call fcn.140001790
mov rax, qword [rbp]
mov qword [rbp - 8], rax
xor edx, edx
lea rcx, [rbp - 8]
call fcn.140001790
mov qword [rbp - 0x30], rbx
xor edx, edx
lea rcx, [rbp - 0x30]
call fcn.140001790
mov rbx, qword [rbp - 8]
cmp rbx, qword [rbp - 0x30]
je 0x1400244dc
nop
lea rcx, [rbx + 0x10]
call fcn.1400076b0
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.1400255f0
mov rbx, qword [rbp - 8]
cmp rax, 0xffffffffffffffff
jne 0x1400244dc
mov rbx, qword [rbx]
mov qword [rbp - 8], rbx
cmp rbx, qword [rbp - 0x30]
jne 0x1400244b0
mov rax, qword [rdi]
mov qword [rbp - 0x78], rax
mov rdx, rdi
lea rcx, [rbp - 0x78]
call fcn.140001790
cmp rbx, qword [rbp - 0x78]
je 0x14002464f
mov rcx, qword [rbx + 0x30]
cmp rcx, qword [rbx + 0x38]
je 0x14002453b
mov rdx, r13
call fcn.14000bba0
test al, al
jne 0x140024515
mov rdi, qword [rbx + 0x30]
jmp 0x14002451d
mov rdi, qword [rbx + 0x38]
sub rdi, 0x20
cmp rsi, rdi
je 0x14002456a
mov rcx, rsi
call fcn.140004660
mov rcx, rdi
call fcn.1400045d0
mov rbx, qword [rdi + 0x10]
mov rcx, rdi
jmp 0x140024557
cmp rsi, r13
je 0x14002456a
mov rcx, rsi
call fcn.140004660
mov rcx, r13
call fcn.1400045d0
mov rbx, qword [r13 + 0x10]
mov rcx, r13
call fcn.140009940
mov r8, rbx
mov rdx, rax
mov rcx, rsi
call fcn.14001a2f0
mov r9, r12
mov r8, qword [rbp - 0x68]
mov rdx, rsi
call fcn.140024e90
mov edx, 0x80000000
lea ecx, [rax + rdx]
test edx, ecx
jne 0x140024e49
cmp eax, 0xc015001d
je 0x140024e49
test byte [rbp + 0x26b0], 2
je 0x140024e4c
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0x30]
call fcn.1400bc070
mov edx, 0xff
lea rcx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rdx, [rbp + 0x30]
lea rcx, [rbp - 0x60]
call fcn.140004270
mov rbx, rax
lea rdi, [0x1400e40fc]
mov rcx, rdi
call fcn.140004230
mov rcx, rax
call fcn.140004370
mov r8, rax
mov rdx, rdi
mov rcx, rbx
call fcn.140007860
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140007a00
nop
mov rdx, rsi
lea rcx, [rsp + 0x68]
call fcn.1400096c0
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140007a00
lea rdx, [rsp + 0x48]
mov rcx, rsi
call fcn.14001a200
lea rcx, [rsp + 0x48]
call fcn.1400079d0
nop
lea rcx, [rsp + 0x68]
call fcn.1400079d0
nop
lea rcx, [rbp - 0x60]
call fcn.1400079d0
jmp 0x140024e4c
mov r15d, dword [rbp + 0x26b0]
test r15b, 1
jne 0x14002468c
mov r9, r12
mov r8, qword [rbp - 0x68]
mov rdx, rsi
call fcn.140024e90
mov edx, 0x80000000
lea ecx, [rax + rdx]
test edx, ecx
jne 0x140024e49
cmp eax, 0xc015001d
je 0x140024e49
test r15b, 4
je 0x140024697
mov r14d, 0xc0000225
jmp 0x140024e4c
mov rcx, rsi
call fcn.1400076b0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140024e4c
mov qword [rbp + 8], r14
lea r8, [rbp + 8]
lea rdx, str.SYSTEMCurrentControlSetControlSession_ManagerKnownDLLs
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
movsxd rdi, eax
test eax, eax
jne 0x1400247c1
mov ebx, r14d
nop dword [rax + rax]
test rdi, rdi
jne 0x1400247c1
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0x430]
call fcn.1400bc070
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0x230]
call fcn.1400bc070
mov dword [rbp - 0x30], 0xff
mov dword [rbp - 8], r14d
lea rax, [rbp - 0x30]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x230]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x30]
lea r8, [rbp + 0x430]
mov edx, ebx
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
movsxd rdi, eax
lea rcx, [rbp + 0x10]
call fcn.1400076b0
mov rdx, rax
lea rcx, [rbp + 0x230]
call fcn.1400a53d8
test eax, eax
jne 0x1400247b3
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0x30]
call fcn.1400bc070
mov dword [rbp - 0x30], 0xff
mov edx, 0xff
lea rcx, [rbp + 0x30]
test r15b, 8
je 0x1400247a4
call qword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
jmp 0x1400247aa
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test rdi, rdi
je 0x1400249a6
inc ebx
cmp ebx, 0x1000
jl 0x1400246e0
mov r13, qword [rbp - 0x40]
mov rcx, r13
call fcn.140007680
lea rdi, [0x1400e40fc]
test al, al
jne 0x1400248bb
mov rcx, r13
call fcn.140003820
mov rbx, rax
mov rcx, rdi
call fcn.140004230
mov rcx, rax
call fcn.140004370
mov r12, rax
mov rcx, r13
call fcn.140004540
sub rax, rbx
cmp rax, r12
jb 0x140024e85
mov rcx, r13
call fcn.1400076b0
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rbx
mov r9, rax
mov r8, r13
movzx edx, byte [rsp + 0x40]
lea rcx, [rsp + 0x68]
call fcn.14000e230
nop
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x68]
call fcn.1400096c0
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140007a00
lea rcx, [rbp - 0x28]
call fcn.140004660
lea rcx, [rsp + 0x48]
call fcn.140004660
mov rbx, rax
lea rcx, [rbp - 0x28]
call fcn.1400095c0
mov rcx, rbx
call fcn.14000c490
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x28]
call fcn.140009710
lea rcx, [rsp + 0x48]
call fcn.1400079d0
nop
lea rcx, [rsp + 0x68]
call fcn.1400079d0
lea rcx, [rbp - 0x28]
call fcn.1400076b0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140024cd0
mov rax, qword [rbp - 0x68]
mov r8d, dword [rax + 8]
lea rdx, [rbp - 0x60]
call fcn.1400252f0
mov rbx, rax
mov rcx, rdi
call fcn.140004230
mov rcx, rax
call fcn.140004370
mov r8, rax
mov rdx, rdi
mov rcx, rbx
call fcn.140007860
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140007a00
nop
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x68]
call fcn.1400096c0
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140007a00
lea rcx, [rbp - 0x28]
call fcn.140004660
lea rcx, [rsp + 0x48]
call fcn.140004660
mov rbx, rax
lea rcx, [rbp - 0x28]
call fcn.1400095c0
mov rcx, rbx
call fcn.14000c490
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x28]
call fcn.140009710
lea rcx, [rsp + 0x48]
call fcn.1400079d0
nop
lea rcx, [rsp + 0x68]
call fcn.1400079d0
nop
lea rcx, [rbp - 0x60]
call fcn.1400079d0
lea rcx, [rbp - 0x28]
call fcn.1400076b0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140024cd0
mov edx, 0x1000
lea rcx, [rbp + 0x630]
test r15b, 8
je 0x140024a4f
call qword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
jmp 0x140024a55
lea rdx, [rbp + 0x30]
lea rcx, [rbp - 0x60]
call fcn.140004270
mov rbx, rax
lea rdi, [0x1400e40fc]
mov rcx, rdi
call fcn.140004230
mov rcx, rax
call fcn.140004370
mov r8, rax
mov rdx, rdi
mov rcx, rbx
call fcn.140007860
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140007a00
nop
lea rcx, [rbp + 0x230]
call fcn.140004230
mov rcx, rax
call fcn.140004370
mov r8, rax
lea rdx, [rbp + 0x230]
lea rcx, [rsp + 0x48]
call fcn.140007860
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140007a00
lea rdx, [rsp + 0x68]
mov rcx, rsi
call fcn.14001a200
lea rcx, [rsp + 0x68]
call fcn.1400079d0
nop
lea rcx, [rsp + 0x48]
call fcn.1400079d0
nop
lea rcx, [rbp - 0x60]
call fcn.1400079d0
jmp 0x140024e38
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rdx, [rbp + 0x630]
lea rcx, [rbp - 0x60]
call fcn.140004270
mov rbx, rax
mov rcx, rdi
call fcn.140004230
mov rcx, rax
call fcn.140004370
mov r8, rax
mov rdx, rdi
mov rcx, rbx
call fcn.140007860
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140007a00
nop
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x68]
call fcn.1400096c0
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140007a00
lea rcx, [rbp - 0x28]
call fcn.140004660
lea rcx, [rsp + 0x48]
call fcn.140004660
mov rbx, rax
lea rcx, [rbp - 0x28]
call fcn.1400095c0
mov rcx, rbx
call fcn.14000c490
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x28]
call fcn.140009710
lea rcx, [rsp + 0x48]
call fcn.1400079d0
nop
lea rcx, [rsp + 0x68]
call fcn.1400079d0
nop
lea rcx, [rbp - 0x60]
call fcn.1400079d0
lea rcx, [rbp - 0x28]
call fcn.1400076b0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140024cd0
mov edx, 0x1000
lea rcx, [rbp + 0x630]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea rdx, [rbp + 0x630]
lea rcx, [rbp - 0x60]
call fcn.140004270
mov rbx, rax
mov rcx, rdi
call fcn.140004230
mov rcx, rax
call fcn.140004370
mov r8, rax
mov rdx, rdi
mov rcx, rbx
call fcn.140007860
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140007a00
nop
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x68]
call fcn.1400096c0
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140007a00
lea rcx, [rbp - 0x28]
call fcn.140004660
lea rcx, [rsp + 0x48]
call fcn.140004660
mov rbx, rax
lea rcx, [rbp - 0x28]
call fcn.1400095c0
mov rcx, rbx
call fcn.14000c490
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x28]
call fcn.140009710
lea rcx, [rsp + 0x48]
call fcn.1400079d0
nop
lea rcx, [rsp + 0x68]
call fcn.1400079d0
nop
lea rcx, [rbp - 0x60]
call fcn.1400079d0
lea rcx, [rbp - 0x28]
call fcn.1400076b0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140024cd0
lea rdx, [rbp + 0x630]
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rdx, [rbp + 0x630]
lea rcx, [rbp - 0x60]
call fcn.140004270
mov rbx, rax
mov rcx, rdi
call fcn.140004230
mov rcx, rax
call fcn.140004370
mov r8, rax
mov rdx, rdi
mov rcx, rbx
call fcn.140007860
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140007a00
nop
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x68]
call fcn.1400096c0
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140007a00
lea rcx, [rbp - 0x28]
call fcn.140004660
lea rcx, [rsp + 0x48]
call fcn.140004660
mov rbx, rax
lea rcx, [rbp - 0x28]
call fcn.1400095c0
mov rcx, rbx
call fcn.14000c490
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x28]
call fcn.140009710
lea rcx, [rsp + 0x48]
call fcn.1400079d0
nop
lea rcx, [rsp + 0x68]
call fcn.1400079d0
nop
lea rcx, [rbp - 0x60]
call fcn.1400079d0
lea rcx, [rbp - 0x28]
call fcn.1400076b0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140024d0e
lea rax, [rbp - 0x28]
cmp rsi, rax
je 0x140024e38
mov rcx, rsi
call fcn.140004660
lea rcx, [rbp - 0x28]
call fcn.1400045d0
mov rbx, qword [rbp - 0x18]
lea rcx, [rbp - 0x28]
call fcn.140009940
mov r8, rbx
mov rdx, rax
mov rcx, rsi
call fcn.14001a2f0
jmp 0x140024e38
mov r8d, 0x1000
lea rdx, [rbp + 0x630]
lea rcx, str.PATH
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea r8, [rbp - 0x38]
lea rdx, [0x1400e4194]
lea rcx, [rbp + 0x630]
call fcn.1400a56f4
test rax, rax
je 0x140024e32
nop dword [rax + rax]
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.140004270
mov rbx, rax
mov rcx, rdi
call fcn.140004230
mov rcx, rax
call fcn.140004370
mov r8, rax
mov rdx, rdi
mov rcx, rbx
call fcn.140007860
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140007a00
nop
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x68]
call fcn.1400096c0
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140007a00
lea rcx, [rbp - 0x28]
call fcn.140004660
lea rcx, [rsp + 0x48]
call fcn.140004660
mov rbx, rax
lea rcx, [rbp - 0x28]
call fcn.1400095c0
mov rcx, rbx
call fcn.14000c490
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x28]
call fcn.140009710
lea rcx, [rsp + 0x48]
call fcn.1400079d0
nop
lea rcx, [rsp + 0x68]
call fcn.1400079d0
nop
lea rcx, [rbp - 0x60]
call fcn.1400079d0
lea rcx, [rbp - 0x28]
call fcn.1400076b0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140024cd0
lea r8, [rbp - 0x38]
lea rdx, [0x1400e4194]
mov rcx, qword [rbp - 0x38]
call fcn.1400a56f4
test rax, rax
jne 0x140024d50
mov r14d, 0xc0000225
mov rcx, qword [rbp + 8]
test rcx, rcx
jle 0x140024e4c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140024e4c
mov r14d, eax
lea rcx, [rbp + 0x10]
call fcn.1400079d0
nop
lea rcx, [rbp - 0x28]
call fcn.1400079d0
mov eax, r14d
mov rcx, qword [rbp + 0x2630]
xor rcx, rsp
call fcn.14008e960
add rsp, 0x2748
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1400017d0
nop
int3