Function at 0x180009180
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x180050b58]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetGuiResources]
mov ecx, dword [0x180050cd8]
xor esi, esi
mov edi, eax
test cl, 1
jne 0x180009232
or ecx, 1
lea rax, [rsp + 0x3c]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov dword [0x180050cd8], ecx
lea r8, str.GDIProcessHandleQuota
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionWindows
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x3c], 4
mov dword [rsp + 0x38], esi
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov r11d, dword [rsp + 0x38]
mov dword [0x180050cd4], r11d
jmp 0x180009239
mov r11d, dword [0x180050cd4]
sub r11d, edi
cmp r11d, 0x1f4
jb 0x1800093a5
mov edx, 0x2c
or r8, 0xffffffffffffffff
mov rcx, rbx
call fcn.180003520
mov qword [rsp + 0x30], rsi
mov rdi, rax
cmp rax, qword [rbx + 0x10]
jae 0x1800093e9
mov rax, qword [rbx + 0x18]
cmp rax, 8
jb 0x18000927b
mov rcx, qword [rbx]
jmp 0x18000927e
mov rcx, rbx
lea r8, [rcx + rdi*2]
cmp rax, 8
jb 0x18000928d
mov rdx, qword [rbx]
jmp 0x180009290
mov rdx, rbx
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], rsi
mov word [rsp + 0x68], si
cmp rdx, r8
je 0x1800092b7
sub r8, rdx
lea rcx, [rsp + 0x68]
sar r8, 1
call fcn.180007510
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x1800092c6
mov rcx, qword [rbx]
jmp 0x1800092c9
mov rcx, rbx
mov rax, qword [rbx + 0x10]
lea r8, [rcx + rax*2]
cmp rdx, 8
jb 0x1800092da
mov rbx, qword [rbx]
lea rdx, [rbx + rdi*2 + 2]
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], rsi
mov word [rsp + 0x40], si
cmp rdx, r8
je 0x180009307
sub r8, rdx
lea rcx, [rsp + 0x40]
sar r8, 1
call fcn.180007510
lea rcx, [rbp - 0x70]
xor edx, edx
mov r8d, 0x208
call sub.MSVCR100.dll_memset
cmp qword [rbp - 0x80], 8
lea rcx, [rsp + 0x68]
cmovae rcx, qword [rsp + 0x68]
lea rdx, [rbp - 0x70]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp qword [rsp + 0x58], 8
lea rcx, [rsp + 0x40]
cmovae rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCR100.dll__wtoi]
lea r8, [rsp + 0x30]
lea rcx, [rbp - 0x70]
xor r9d, r9d
mov edx, eax
mov dword [rsp + 0x20], 1
call qword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
jne 0x1800093a9
cmp qword [rsp + 0x58], 8
jb 0x180009381
mov rcx, qword [rsp + 0x40]
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
cmp qword [rbp - 0x80], 8
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], rsi
mov word [rsp + 0x40], si
jb 0x1800093a5
mov rcx, qword [rsp + 0x68]
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
xor eax, eax
jmp 0x18000941c
cmp qword [rsp + 0x58], 8
mov rbx, qword [rsp + 0x30]
jb 0x1800093c0
mov rcx, qword [rsp + 0x40]
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
cmp qword [rbp - 0x80], 8
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], rsi
mov word [rsp + 0x40], si
jb 0x1800093e4
mov rcx, qword [rsp + 0x68]
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
mov rax, rbx
jmp 0x18000941c
cmp qword [rbx + 0x18], 8
jb 0x1800093f3
mov rbx, qword [rbx]
lea r8, [rsp + 0x30]
xor r9d, r9d
xor edx, edx
mov rcx, rbx
mov dword [rsp + 0x20], 1
call qword [sym.imp.SHELL32.dll_ExtractIconExW]
mov rcx, qword [rsp + 0x30]
test eax, eax
cmove rcx, rsi
mov rax, rcx
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.18002f870
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret