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

Disassembly:
push 0xffffffffffffffff
push 0x51710b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xce8
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ebx
test ebx, ebx
jne 0x4c5b88
mov ecx, dword [esp + 0xd08]
lea eax, [esp + 0x2c]
push eax
push str.Import
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4c5d17
jmp 0x4c5e78
cmp ebx, 1
jne 0x4c5e78
mov eax, dword [esp + 0xd08]
lea edx, [esp + 0x28]
push edx
push str.Export
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4c5e78
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x18], ecx
mov edi, ecx
mov esi, 0x3e8
lea edx, [esp + 0x910]
push esi
push edx
push 0
push edi
mov dword [esp + 0x34], 1
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x4c5e71
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x910]
push eax
push ecx
push edi
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4c5e4d
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x38]
lea eax, [esp + 0x528]
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push str.Extensions
push edx
call esi
test eax, eax
jne 0x4c5e3d
cmp dword [esp + 0x14], 1
jne 0x4c5e3d
lea eax, [esp + 0x34]
lea ecx, [esp + 0x140]
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push str.Name
push eax
call esi
test eax, eax
jne 0x4c5e3d
cmp dword [esp + 0x14], 1
jne 0x4c5e3d
lea ecx, [esp + 0x30]
lea edx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x18]
push edx
push eax
push 0
push str.Path
push ecx
call esi
test eax, eax
jne 0x4c5e3d
cmp dword [esp + 0x14], 1
jne 0x4c5e3d
mov edx, dword [0x64b3e4]
mov dword [esp + 0x10], edx
mov al, byte [esp + 0x528]
mov dword [esp + 0xd00], 0
cmp al, 0x20
lea esi, [esp + 0x528]
jne 0x4c5cd9
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
je 0x4c5cd1
mov ecx, esi
mov al, byte [esi]
test al, al
je 0x4c5d27
cmp al, 0x20
jne 0x4c5d24
cmp byte [ecx], 0x20
je 0x4c5d05
push ecx
lea ecx, [esp + 0x14]
mov byte [esi], 0
call fcn.00507642
push 0x6473b4
lea ecx, [esp + 0x14]
call fcn.00507642
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
jne 0x4c5cd9
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
je 0x4c5d0d
jmp 0x4c5cd9
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x18], edi
jmp 0x4c5bbb
inc esi
jmp 0x4c5cdb
mov al, byte [ecx]
test al, al
je 0x4c5d3b
cmp al, 0x20
je 0x4c5d3b
push ecx
lea ecx, [esp + 0x14]
call fcn.00507642
lea ecx, [esp + 0x10]
call fcn.00504af0
lea ecx, [esp + 0x10]
call fcn.00504aa4
lea ecx, [esp + 0x10]
call fcn.0050777a
lea eax, [esp + 0x3c]
push eax
call fcn.004c5b00
add esp, 4
cmp eax, 1
jne 0x4c5e25
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4c5e25
mov ebx, dword [ebp + 8]
mov edi, 0
dec ebx
js 0x4c5ddb
mov edx, dword [ebp + 0x40]
mov ax, word [edx + edi*2]
cmp ax, word [esp + 0x20]
jne 0x4c5dd0
mov eax, dword [ebp + 4]
lea esi, [edi*4]
add eax, esi
lea ecx, [esp + 0x140]
push ecx
mov eax, dword [eax]
push eax
call fcn.004e3513
add esp, 8
test eax, eax
jne 0x4c5dd0
mov eax, dword [ebp + 0x2c]
lea edx, [esp + 0x3c]
add eax, esi
push edx
mov eax, dword [eax]
push eax
call fcn.004e3513
add esp, 8
test eax, eax
je 0x4c5dd7
inc edi
cmp edi, ebx
jle 0x4c5d86
jmp 0x4c5ddb
cmp edi, ebx
jle 0x4c5e21
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x140]
push ecx
push eax
mov ecx, ebp
call fcn.00506603
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp + 0x14]
lea edx, [esp + 0x10]
push edx
push eax
call fcn.0050662f
mov eax, dword [ebp + 0x30]
lea ecx, [ebp + 0x28]
lea edx, [esp + 0x3c]
push edx
push eax
call fcn.00506603
mov edx, dword [esp + 0x20]
mov eax, dword [ebp + 0x44]
lea ecx, [ebp + 0x3c]
push edx
push eax
call fcn.0050699b
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x10]
mov dword [esp + 0xd00], 0xffffffff
call fcn.005072b2
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 0x3e8
mov ecx, dword [esp + 0x24]
push esi
mov eax, ecx
inc ecx
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x914]
push ecx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x4c5be2
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebx
cmp ebx, 1
mov dword [esp + 0x20], ebx
jle 0x4c5b5f
mov ecx, dword [esp + 0xcf8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xcf4
ret 4