Function at 0x4045d0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x42e004]
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 0x40460e
lea eax, [edx + 0x6d]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040649c
mov esp, ebp
pop ebp
ret
mov dword [ebx], 0
call fcn.00404190
test eax, eax
jne 0x404867
mov edx, ebx
mov ecx, edi
call fcn.00404340
test eax, eax
jne 0x404867
mov eax, dword [str.SoftwarePython]
test eax, eax
je 0x4047f9
mov ebx, 0x42e9b4
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 0x4047df
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 0x4047b3
mov esi, dword [edi + 0x40]
test esi, esi
je 0x404736
mov edi, dword [ebp - 0x210]
test edi, edi
je 0x40471a
push eax
push eax
push eax
push edi
lea eax, [ebp - 0x208]
push eax
push 0xffffffffffffffff
push esi
push 9
push 0x428e98
call dword [sym.imp.KERNEL32.dll_CompareStringEx]
sub eax, 1
je 0x40471a
sub eax, 1
je 0x404730
sub eax, 1
je 0x40471a
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 0x404796
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 0x404796
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.00403c30
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 0x404695
jmp 0x4047c9
cmp eax, 0x103
je 0x4047c9
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 0x40481f
mov ebx, dword [ebp - 0x224]
mov eax, dword [ebx + 0x10]
add ebx, 0x14
mov dword [ebp - 0x224], ebx
test eax, eax
jne 0x404650
mov ebx, dword [ebp - 0x228]
cmp dword [edi + 0x40], 0
je 0x404832
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.0040649c
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.0040649c
mov esp, ebp
pop ebp
ret
mov eax, dword [str.PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0]
test eax, eax
je 0x404865
mov esi, 0x42e8c4
push dword [esi + 4]
mov edx, ebx
mov ecx, edi
push dword [esi]
push eax
call fcn.00403e70
add esp, 0xc
test eax, eax
je 0x40485b
cmp eax, 0x67
jne 0x404867
mov eax, dword [esi + 8]
add esi, 0xc
test eax, eax
jne 0x404840
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040649c
mov esp, ebp
pop ebp
ret