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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a3578
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push esi
mov dword [ebp - 0x84], ecx
push 0
push 0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x24]
push edx
push 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x50db47
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x50de25
mov ecx, dword [ebp + 0x10]
and ecx, 1
test ecx, ecx
je 0x50dc69
lea ecx, [ebp - 0x4c]
call fcn.0050e1f7
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp - 0x4c]
call fcn.0050e64f
mov eax, dword [ebp - 0x2c]
add eax, 1
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], 0
jmp 0x50db9a
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x48]
push edx
lea eax, [ebp - 0x40]
push eax
push 0
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x50dc32
mov dx, word [ebp + 0x14]
push edx
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x84]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x84]
call dword [edx + 4]
test eax, eax
jne 0x50dc30
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x5c]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebp - 0x60], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.0050e31b
mov eax, dword [ebp - 0x60]
jmp 0x50de25
jmp 0x50dc3d
cmp dword [ebp - 0x10], 0x103
jne 0x50dc3d
jmp 0x50dc48
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x44], eax
jmp 0x50db91
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x64]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.0050e31b
mov eax, dword [ebp - 0x20]
add eax, 1
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x28], 0
jmp 0x50dc99
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x1c]
add ecx, 1
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x50ddf4
mov edx, dword [ebp + 0x10]
and edx, 2
test edx, edx
je 0x50dd00
mov ax, word [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x84]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x84]
call dword [eax + 8]
test eax, eax
jne 0x50dd00
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x6c], ecx
mov edx, dword [ebp - 0x6c]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
jmp 0x50de25
lea eax, [ebp - 0x50]
push eax
push 0x20019
push 0
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x50ddf2
mov eax, dword [ebp + 8]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
mov esi, eax
mov ecx, dword [ebp - 0x30]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
lea edx, [esi + eax + 2]
push edx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x54]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
push 0x5f96a0
mov eax, dword [ebp - 0x54]
push eax
call sub.MSVCRT.dll_strcat
add esp, 8
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x54]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
mov eax, dword [ebp + 0x14]
and eax, 0xffff
add eax, 1
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x84]
call fcn.0050dae1
test eax, eax
jne 0x50dde0
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x74]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x78], ecx
mov edx, dword [ebp - 0x78]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
jmp 0x50de25
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x50ddff
cmp dword [ebp - 0x10], 0x103
jne 0x50ddff
jmp 0x50de04
jmp 0x50dc90
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x80], edx
mov eax, dword [ebp - 0x80]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10