Function at 0x4c5120
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x53b14c
push eax
mov eax, 0x101c
mov dword fs:[0], esp
call fcn.00526790
push ebx
push esi
mov esi, dword [esp + 0x1038]
mov ebx, ecx
test esi, esi
je 0x4c532e
cmp dword [ebx], 0
je 0x4c532e
push ebp
mov ebp, dword [esp + 0x1040]
cmp ebp, esi
push edi
je 0x4c51b1
mov edi, dword [ebp + 4]
mov eax, dword [ebp]
mov ecx, dword [esi]
cmp eax, edi
je 0x4c5195
cmp ecx, dword [esi + 4]
je 0x4c5191
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
cmp eax, edi
jne 0x4c5174
mov eax, dword [esi + 4]
push eax
push ecx
mov ecx, esi
call fcn.00405c30
jmp 0x4c51b1
cmp eax, edi
jne 0x4c51a3
mov eax, dword [esi + 4]
push eax
push ecx
mov ecx, esi
call fcn.00405c30
jmp 0x4c51b1
lea ecx, [esp + 0x11]
push ecx
push edi
push eax
mov ecx, esi
call fcn.00406900
lea edx, [esp + 0x20]
lea eax, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x1040]
lea ecx, [esp + 0x28]
push eax
mov eax, dword [ebx]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x38], 0xfff
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
mov dword [esp + 0x28], eax
jne 0x4c52cd
mov eax, dword [esp + 0x24]
mov ebx, 1
cmp eax, ebx
jne 0x4c52cd
xor eax, eax
lea ecx, [esp + 0x12]
push eax
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x103c], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
call fcn.005124c0
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
mov dl, byte [esp + 0x12]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x11], dl
lea edx, [esp + 0x2c]
mov byte [esp + 0x1034], bl
lea eax, [esp + ecx + 0x2c]
lea ecx, [esp + 0x11]
push ecx
push eax
push edx
lea ecx, [esp + 0x20]
call fcn.004012f0
lea eax, [esp + 0x14]
mov byte [esp + 0x1034], 2
cmp eax, esi
je 0x4c52a8
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
cmp eax, edi
je 0x4c528c
cmp ecx, dword [esi + 4]
je 0x4c5288
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
cmp eax, edi
jne 0x4c526b
mov eax, dword [esi + 4]
push eax
push ecx
mov ecx, esi
call fcn.00405c30
jmp 0x4c52a8
cmp eax, edi
jne 0x4c529a
mov eax, dword [esi + 4]
push eax
push ecx
mov ecx, esi
call fcn.00405c30
jmp 0x4c52a8
lea ecx, [esp + 0x13]
push ecx
push edi
push eax
mov ecx, esi
call fcn.00406900
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
sub edx, eax
lea ecx, [esp + 0x1c]
push edx
push eax
mov byte [esp + 0x103c], 3
call fcn.004fdfd0
mov eax, dword [esp + 0x28]
pop edi
pop ebp
jmp 0x4c5333
cmp ebp, esi
je 0x4c5326
mov edi, dword [ebp + 4]
mov eax, dword [ebp]
mov ecx, dword [esi]
cmp eax, edi
je 0x4c5304
cmp ecx, dword [esi + 4]
je 0x4c5300
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
cmp eax, edi
jne 0x4c52dd
mov eax, dword [esi + 4]
push eax
push ecx
mov ecx, esi
call fcn.00405c30
mov eax, dword [esp + 0x28]
pop edi
pop ebp
jmp 0x4c5333
cmp eax, edi
jne 0x4c5318
mov eax, dword [esi + 4]
push eax
push ecx
mov ecx, esi
call fcn.00405c30
mov eax, dword [esp + 0x28]
pop edi
pop ebp
jmp 0x4c5333
lea ecx, [esp + 0x11]
push ecx
push edi
push eax
mov ecx, esi
call fcn.00406900
mov eax, dword [esp + 0x28]
pop edi
pop ebp
jmp 0x4c5333
mov eax, 0x57
mov ecx, dword [esp + 0x1024]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1028
ret 0xc