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

Disassembly:
sub esp, 0x128
push ebx
push ebp
push esi
push edi
mov edi, 0x4f8fc8
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x1c], ebx
mov ebp, ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x24], ebx
lea eax, [ebp + 0x27]
push eax
call fcn.004bc474
add esp, 4
cmp eax, ebx
mov dword [esp + 0x28], eax
je 0x47f6bb
mov ecx, 6
mov esi, str.SoftwarePythonPythonCore_
mov edi, eax
add eax, 0x1b
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, ebp
movsb byte es:[edi], byte [esi]
mov edx, ecx
mov esi, 0x4f8fc8
mov edi, eax
add eax, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [str.PythonPath]
mov dword [eax], ecx
mov edx, dword [0x4f8fec]
mov dword [eax + 4], edx
mov ecx, dword [0x4f8ff0]
lea edx, [esp + 0x1c]
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x13c]
push edx
push 0x20019
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x47f6bb
push ebx
lea edx, [esp + 0x14]
push ebx
mov ecx, dword [esp + 0x24]
push edx
push ebx
push ebx
push ebx
lea eax, [esp + 0x2c]
push ebx
push eax
push ebx
push ebx
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x47f6bb
cmp dword [esp + 0x140], ebx
je 0x47f4e5
mov dword [esp + 0x10], ebx
mov edx, dword [esp + 0x14]
lea eax, [edx*4]
push eax
call fcn.004bc474
mov ebp, eax
add esp, 4
cmp ebp, ebx
mov dword [esp + 0x2c], ebp
je 0x47f6bb
mov ecx, dword [esp + 0x14]
xor eax, eax
mov edi, ebp
xor esi, esi
rep stosd dword es:[edi], eax
cmp dword [esp + 0x14], ebx
jbe 0x47f5d5
mov eax, dword [esp + 0x1c]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x2c]
push ebx
lea edx, [esp + 0x40]
push ecx
push edx
push esi
push eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], 0x105
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x47f68e
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
lea edx, [esp + 0x38]
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x47f68e
mov edx, dword [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x20]
push ecx
push ebx
push ebx
push ebx
push ebx
push edx
call edi
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x47f5bd
push eax
call fcn.004bc474
add esp, 4
cmp eax, ebx
mov dword [ebp + esi*4], eax
je 0x47f5bd
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
push eax
push ebx
push ebx
push ebx
push edx
call edi
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
lea edx, [eax + ecx + 1]
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
inc esi
cmp esi, eax
jb 0x47f51d
mov ecx, dword [esp + 0x10]
inc ecx
push ecx
call fcn.004bc474
mov esi, eax
add esp, 4
cmp esi, ebx
mov dword [esp + 0x18], esi
je 0x47f68e
mov eax, dword [esp + 0x14]
mov ebp, esi
test eax, eax
jbe 0x47f64a
test ebx, ebx
jbe 0x47f60d
mov byte [ebp], 0x3b
mov eax, dword [esp + 0x10]
inc ebp
dec eax
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x2c]
mov edx, dword [edx + ebx*4]
test edx, edx
je 0x47f641
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
push esi
push edx
push ebp
call fcn.004bba60
mov eax, dword [esp + 0x1c]
add esp, 0xc
add ebp, esi
sub eax, esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
inc ebx
cmp ebx, eax
jb 0x47f5fb
mov ecx, dword [esp + 0x140]
test ecx, ecx
je 0x47f65b
mov byte [ebp], 0
jmp 0x47f684
test eax, eax
je 0x47f66d
mov byte [ebp], 0x3b
mov eax, dword [esp + 0x10]
inc ebp
dec eax
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
push ebp
push 0
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x24], esi
xor ebx, ebx
mov eax, dword [esp + 0x14]
xor esi, esi
cmp eax, ebx
jbe 0x47f6b2
mov eax, dword [ebp + esi*4]
cmp eax, ebx
je 0x47f6a9
push eax
call fcn.004bc8dd
add esp, 4
mov eax, dword [esp + 0x14]
inc esi
cmp esi, eax
jb 0x47f698
push ebp
call fcn.004bc8dd
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x47f6ca
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x28]
pop edi
pop esi
cmp eax, ebx
pop ebp
pop ebx
je 0x47f6df
push eax
call fcn.004bc8dd
add esp, 4
mov eax, dword [esp + 0x14]
add esp, 0x128
ret