Function at 0x101b7640
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
push dword [ebp + 8]
mov ebx, edx
push ebx
push 0x10387618
push str.winreg.EnumValue
mov dword [esp + 0x2c], ebx
call sym.python310.dll_PySys_Audit
add esp, 0x10
test eax, eax
jns 0x101b7675
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x101b76b6
push 0
push 0
push eax
push dword [sym.python310.dll_PyExc_OSError]
call sym.python310.dll_PyErr_SetExcFromWindowsErrWithFilenameObjects
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
inc ecx
inc esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], esi
cmp ecx, 0x3fffffff
ja 0x101b787f
add ecx, ecx
cmp ecx, 0x7fffffff
ja 0x101b787f
push ecx
push dword [0x103cc55c]
call dword [0x103cc560]
mov edi, eax
add esp, 8
mov dword [esp + 0x14], edi
test edi, edi
je 0x101b787f
mov eax, dword [esp + 0xc]
cmp eax, 0x7fffffff
ja 0x101b786f
push eax
push dword [0x103cc55c]
call dword [0x103cc560]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x101b786f
mov edi, dword [0x103fb118]
xor ecx, ecx
mov eax, 0x103fb118
xchg dword [eax], ecx
test edi, edi
je 0x101b788b
mov edx, dword [edi + 8]
mov ecx, 0x103fb0c0
add edx, 0x2c
push edi
call fcn.101c8c00
add esp, 4
lea eax, [esp + 0xc]
push eax
push ebx
lea eax, [esp + 0x20]
push eax
push 0
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x28]
push dword [ebp + 8]
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ecx, edi
mov dword [esp + 0x20], eax
call fcn.101c8d20
mov ecx, dword [edi + 8]
mov edx, dword [ecx + 8]
mov ecx, dword [edx + 0x118]
add edx, 0x118
xchg dword [edx], edi
mov eax, dword [esp + 0x20]
cmp eax, 0xea
jne 0x101b77f7
add esi, esi
cmp esi, 0x7fffffff
ja 0x101b77ee
push esi
push ebx
push dword [0x103cc55c]
call dword [0x103cc568]
add esp, 0xc
test eax, eax
je 0x101b77ee
mov edi, dword [0x103fb118]
mov ebx, eax
mov eax, dword [esp + 0x24]
mov ecx, 0x103fb118
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], esi
xchg dword [ecx], eax
test edi, edi
je 0x101b788b
jmp 0x101b7744
call sym.python310.dll_PyErr_NoMemory
xor edi, edi
jmp 0x101b7846
test eax, eax
je 0x101b7805
push eax
call sym.python310.dll_PyErr_SetFromWindowsErr
mov edi, eax
jmp 0x101b7843
push dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ecx, ebx
call fcn.101b73c0
mov esi, eax
add esp, 4
test esi, esi
je 0x101b77f3
push dword [esp + 0x18]
push esi
push dword [esp + 0x1c]
push 0x10387640
call sym.python310.dll__Py_BuildValue_SizeT
add esp, 0x10
mov edi, eax
add dword [esi], 0xffffffff
jne 0x101b7846
mov eax, dword [esi + 4]
push esi
mov eax, dword [eax + 0x18]
call eax
add esp, 4
push dword [esp + 0x14]
push dword [0x103cc55c]
call dword [0x103cc56c]
push ebx
push dword [0x103cc55c]
call dword [0x103cc56c]
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push dword [0x103cc55c]
call dword [0x103cc56c]
add esp, 8
call sym.python310.dll_PyErr_NoMemory
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10389b20
call sym.python310.dll__Py_FatalError_TstateNULL
int3