Function at 0x4b3a20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53942e
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x57c06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x418], edx
mov dword [ebp - 0x420], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0
mov byte [ebp - 4], 1
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
push ecx
cmovae eax, dword [ebp + 8]
lea ecx, [ebp - 0x42c]
push eax
push edx
call fcn.004b3500
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x42c]
test eax, eax
jne 0x4b3c86
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.004e5200
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x414]
add esp, 0xc
mov dword [ebp - 0x414], 0x400
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x41c]
push eax
push 0
push 0
push edi
call ebx
test eax, eax
jne 0x4b3b75
mov eax, dword [ebp - 0x41c]
cmp eax, 1
je 0x4b3b06
cmp eax, 2
jne 0x4b3b75
mov eax, dword [ebp - 0x414]
test eax, eax
je 0x4b3b6c
test al, 1
jne 0x4b3b75
shr eax, 1
cmp word [ebp + eax*2 - 0x412], 0
jne 0x4b3b75
xor eax, eax
cmp ax, word [ebp - 0x410]
je 0x4b3b75
push 1
push 0x551b6c
lea ecx, [ebp + 8]
call fcn.0040c270
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b3b44
sub ecx, edx
lea eax, [ebp - 0x410]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp + 8]
call fcn.0040c270
push 8
push str.command
jmp 0x4b3b7c
xor eax, eax
mov word [ebp - 0x410], ax
push 0xd
push str.opencommand
lea ecx, [ebp + 8]
call fcn.0040c270
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0
mov byte [ebp - 4], 2
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
push ecx
cmovae eax, dword [ebp + 8]
lea ecx, [ebp - 0x438]
push eax
push dword [ebp - 0x418]
call fcn.004b3500
test eax, eax
jne 0x4b3c79
push 0x400
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.004e5200
mov edi, dword [ebp - 0x438]
lea eax, [ebp - 0x414]
add esp, 0xc
mov dword [ebp - 0x414], 0x400
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x418]
push eax
push 0
push 0
push edi
call ebx
test eax, eax
jne 0x4b3c33
mov eax, dword [ebp - 0x418]
cmp eax, 1
je 0x4b3c21
cmp eax, 2
jne 0x4b3c33
cmp dword [ebp - 0x414], 0
jne 0x4b3c33
xor eax, eax
mov word [ebp - 0x410], ax
lea edx, [ebp - 0x410]
lea esi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4b3c40
mov ecx, dword [ebp - 0x420]
lea eax, [ebp - 0x410]
sub edx, esi
sar edx, 1
push edx
push eax
call fcn.0040b450
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x4b3c6f
push edi
call esi
mov edi, dword [ebp - 0x42c]
mov bl, 1
jmp 0x4b3c88
mov eax, dword [ebp - 0x438]
test eax, eax
je 0x4b3c86
push eax
call esi
xor bl, bl
test edi, edi
je 0x4b3c8f
push edi
call esi
lea ecx, [ebp + 8]
call fcn.0040b3f0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e24d7
mov esp, ebp
pop ebp
ret