Function at 0x4046e0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, edx
mov dword [ebp - 0x228], ebx
push edi
mov edi, ecx
mov dword [ebp - 0x20c], edi
test ebx, ebx
jne 0x40472b
push str._collectEnvironments___was_passed_a_NULL_result_n
call fcn.00401130
add esp, 4
lea eax, [ebx + 0x6d]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004065bc
mov esp, ebp
pop ebp
ret
mov dword [ebx], 0
call fcn.004042a0
test eax, eax
jne 0x404987
mov edx, ebx
mov ecx, edi
call fcn.00404450
test eax, eax
jne 0x404987
mov eax, dword [str.SoftwarePython]
test eax, eax
je 0x404919
mov ebx, 0x42ea04
mov dword [ebp - 0x224], ebx
nop word [eax + eax]
lea ecx, [ebp - 0x220]
push ecx
push dword [ebx + 4]
push 0
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4048ff
mov eax, dword [ebx + 0xc]
xor esi, esi
mov dword [ebp - 0x22c], eax
mov eax, dword [ebx + 8]
xor ebx, ebx
mov dword [ebp - 0x230], eax
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], esi
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x210], 0x100
push ecx
lea ecx, [ebp - 0x208]
push ecx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4048d3
mov esi, dword [edi + 0x40]
test esi, esi
je 0x404856
mov edi, dword [ebp - 0x210]
test edi, edi
je 0x40483a
push eax
push eax
push eax
push edi
lea eax, [ebp - 0x208]
push eax
push 0xffffffffffffffff
push esi
push 9
push 0x428ea8
call dword [sym.imp.KERNEL32.dll_CompareStringEx]
sub eax, 1
je 0x40483a
sub eax, 1
je 0x404850
sub eax, 1
je 0x40483a
lea eax, [ebp - 0x208]
push eax
push edi
push esi
push 0xffffffffffffffff
push str.Error_comparing__.s_and__.s__compare_
push 0
call fcn.00401200
add esp, 0x18
lea eax, [ebp - 0x208]
push eax
push str._Skipping__s_due_to_PYLAUNCHER_LIMIT_TO_COMPANY_n
call fcn.00401130
add esp, 8
jmp 0x4048b6
mov edi, dword [ebp - 0x20c]
lea eax, [ebp - 0x214]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x208]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4048b6
push dword [ebp - 0x22c]
mov edx, dword [ebp - 0x228]
lea eax, [ebp - 0x208]
push eax
push dword [ebp - 0x230]
mov ecx, edi
push dword [ebp - 0x214]
call fcn.00403d30
add esp, 0x10
mov dword [ebp - 0x218], eax
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x218]
inc ebx
mov edi, dword [ebp - 0x20c]
mov eax, dword [ebp - 0x21c]
test esi, esi
je 0x4047b5
jmp 0x4048e9
cmp eax, 0x103
je 0x4048e9
push str.Failed_to_read_distributors__company__from_the_registry
push 0
call fcn.00401200
add esp, 8
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40493f
mov ebx, dword [ebp - 0x224]
mov eax, dword [ebx + 0x10]
add ebx, 0x14
mov dword [ebp - 0x224], ebx
test eax, eax
jne 0x404770
mov ebx, dword [ebp - 0x228]
cmp dword [edi + 0x40], 0
je 0x404952
push str._Skipping_APPX_search_due_to_PYLAUNCHER_LIMIT_TO_COMPANY_n
call fcn.00401130
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004065bc
mov esp, ebp
pop ebp
ret
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004065bc
mov esp, ebp
pop ebp
ret
mov eax, dword [str.PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0]
test eax, eax
je 0x404985
mov esi, 0x42e904
push dword [esi + 4]
mov edx, ebx
mov ecx, edi
push dword [esi]
push eax
call fcn.00403f70
add esp, 0xc
test eax, eax
je 0x40497b
cmp eax, 0x67
jne 0x404987
mov eax, dword [esi + 8]
add esi, 0xc
test eax, eax
jne 0x404960
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004065bc
mov esp, ebp
pop ebp
ret