Function at 0x1802048d0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xbfa8]
mov eax, 0xc080
call fcn.1801821f0
sub rsp, rax
mov rax, qword [0x1803e3008]
xor rax, rsp
mov qword [rbp + 0xbf70], rax
xor r14d, r14d
mov qword [rsp + 0x60], rdx
mov edi, r14d
mov qword [rsp + 0x48], r14
call sym.python310.dll_PyEval_SaveThread
mov r15, rax
mov r9d, 0x20019
lea rax, [rsp + 0x48]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movsxd rbx, eax
mov r13d, r14d
mov esi, r14d
test rbx, rbx
je 0x180204962
cmp rbx, 0xea
jne 0x180204af1
mov rcx, qword [rsp + 0x48]
lea rax, [rsi + rsi*2]
shl rax, 8
lea r14, [rsp + 0x70]
add r14, rax
mov dword [rsp + 0x40], 0x80
lea r12, [rbp + 0x70]
mov dword [rsp + 0x44], 0x1fe
add r12, rax
lea r9, [rsp + 0x40]
xor eax, eax
mov r8, r14
mov qword [rsp + 0x38], rax
mov edx, r13d
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
movsxd rbx, eax
xor eax, eax
test rbx, rbx
jne 0x180204ae6
cmp dword [rsp + 0x40], eax
je 0x1802049d4
cmp word [r14], 0x2e
jne 0x180204ae6
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movsxd rbx, eax
xor r14d, r14d
cmp rbx, 2
jne 0x180204a09
mov rbx, r14
jmp 0x180204ae9
test eax, eax
jne 0x180204ae9
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], r12
lea rdx, str.Content_Type
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x58]
movsxd rbx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp rbx, 2
je 0x180204a01
test rbx, rbx
jne 0x180204ae9
cmp dword [rsp + 0x50], 1
jne 0x180204ae9
mov eax, dword [rsp + 0x44]
test eax, eax
je 0x180204ae9
shr rax, 1
inc edi
inc rsi
mov word [r12 + rax*2], r14w
cmp rsi, 0x40
jne 0x180204ae9
mov rcx, r15
call sym.python310.dll_PyEval_RestoreThread
mov esi, r14d
test edi, edi
jle 0x180204ad6
movsxd rax, esi
lea r9, [rsp + 0x70]
lea r8, [rbp + 0x70]
lea rdx, [0x1803721d4]
lea rcx, [rax + rax*2]
shl rcx, 8
add r9, rcx
add r8, rcx
mov rcx, qword [rsp + 0x60]
call sym.python310.dll_PyObject_CallFunction
test rax, rax
je 0x180204b85
sub qword [rax], 1
jne 0x180204ad0
mov rdx, qword [rax + 8]
mov rcx, rax
call qword [rdx + 0x30]
inc esi
cmp esi, edi
jl 0x180204a8c
call sym.python310.dll_PyEval_SaveThread
mov r15, rax
mov edi, r14d
mov rsi, r14
jmp 0x180204ae9
xor r14d, r14d
inc r13d
jmp 0x180204950
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180204b01
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, r15
call sym.python310.dll_PyEval_RestoreThread
cmp rbx, 0x103
je 0x180204b25
mov rcx, qword [sym.python310.dll_PyExc_OSError]
xor r8d, r8d
mov edx, ebx
call sym.python310.dll_PyErr_SetExcFromWindowsErrWithFilename
jmp 0x180204b90
mov ebx, r14d
test edi, edi
jle 0x180204b75
mov r14, qword [rsp + 0x60]
movsxd rax, ebx
lea r9, [rsp + 0x70]
lea r8, [rbp + 0x70]
lea rdx, [0x1803721d4]
lea rcx, [rax + rax*2]
shl rcx, 8
add r9, rcx
add r8, rcx
mov rcx, r14
call sym.python310.dll_PyObject_CallFunction
test rax, rax
je 0x180204b90
sub qword [rax], 1
jne 0x180204b6f
mov rdx, qword [rax + 8]
mov rcx, rax
call qword [rdx + 0x30]
inc ebx
cmp ebx, edi
jl 0x180204b31
inc qword [sym.python310.dll__Py_NoneStruct]
lea rax, sym.python310.dll__Py_NoneStruct
jmp 0x180204b92
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rbp + 0xbf70]
xor rcx, rsp
call fcn.180181080
lea r11, [rsp + 0xc080]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret