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

Disassembly:
sub esp, 0x554
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0x550], eax
mov ecx, dword [esp + 0x564]
mov eax, dword [esp + 0x558]
mov edx, dword [esp + 0x56c]
push ebx
push ebp
mov ebp, dword [esp + 0x580]
push esi
mov esi, dword [esp + 0x56c]
push edi
mov edi, dword [esp + 0x56c]
xor ebx, ebx
push 0x103
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x584]
lea ecx, [esp + 0x155]
push ebx
push ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x38], ebp
mov dword [esp + 0x30], ebx
mov byte [esp + 0x15c], bl
call fcn.005dfd60
push 0x103
lea edx, [esp + 0x5d]
push ebx
push edx
mov byte [esp + 0x64], bl
call fcn.005dfd60
push 0x103
lea eax, [esp + 0x375]
push ebx
push eax
mov byte [esp + 0x37c], bl
call fcn.005dfd60
add esp, 0x24
mov dword [esp + 0x34], 4
cmp esi, ebx
je 0x50f54c
mov dword [esi], ebx
cmp ebp, ebx
je 0x50f553
mov byte [ebp], bl
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x35c]
push 0x64d400
push edx
call fcn.005dfb23
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push 9
push ebx
lea ecx, [esp + 0x364]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp ebp, ebx
jne 0x50f5e8
mov ecx, dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x38]
push edx
push esi
lea eax, [esp + 0x3c]
push eax
push ebx
push 0x6111d8
push ecx
mov dword [esp + 0x50], 4
mov dword [esp + 0x5c], 0x104
call ebp
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x44]
push edx
push edi
push ebx
push ebx
push 0x648d70
push eax
mov byte [edi], bl
call ebp
test eax, eax
je 0x50f605
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x560]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005dfbbe
add esp, 0x554
ret 0x24
push ebx
push edi
call fcn.004e8c10
add esp, 8
test eax, eax
jne 0x50f61a
mov edx, dword [esp + 0x18]
push edx
jmp 0x50f5e2
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push 9
push ebx
push 0x64d3f4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, ebx
jne 0x50f613
mov eax, dword [esp + 0x14]
push 0x64d3e8
push eax
call fcn.004dd620
add esp, 8
test eax, eax
jne 0x50f6ff
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push ecx
push 9
push ebx
push 0x64d3e0
push edx
call fcn.004dc0a0
add esp, 0x14
test eax, eax
jne 0x50f6ff
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x3c]
push edx
push ebx
push 0x61726c
push eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], 4
call ebp
test eax, eax
jne 0x50f6f0
mov esi, 1
cmp dword [esp + 0x20], esi
jne 0x50f6f0
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x50]
push edx
push ebx
push ebx
push 0x6486bc
push eax
mov byte [esp + 0x64], bl
mov dword [esp + 0x48], 0x104
call ebp
test eax, eax
jne 0x50f6f0
lea ecx, [esp + 0x4c]
push ebx
push ecx
call fcn.004e8c10
add esp, 8
cmp eax, esi
jne 0x50f6f0
mov dword [esp + 0x24], esi
mov edx, dword [esp + 0x10]
push edx
mov byte [esp + 0x50], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
push 0x104
lea eax, [esp + 0x154]
push eax
push ebx
push ecx
xor edi, edi
mov byte [esp + 0x160], bl
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x50f81e
lea esp, [esp]
cmp dword [esp + 0x24], ebx
je 0x50f753
lea edx, [esp + 0x150]
push 0x64d3d8
push edx
call fcn.004dd620
add esp, 8
test eax, eax
jne 0x50f7f5
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
push 9
push ebx
lea ecx, [esp + 0x15c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, ebx
jne 0x50f7f5
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x3c]
push edx
push ebx
push 0x61726c
push eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], 4
call ebp
test eax, eax
jne 0x50f7ea
cmp dword [esp + 0x20], 1
jne 0x50f7ea
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x50]
push edx
push ebx
push ebx
push 0x6486bc
mov esi, 0x104
push eax
mov byte [esp + 0x64], bl
mov dword [esp + 0x48], esi
call ebp
test eax, eax
jne 0x50f7ea
lea ecx, [esp + 0x4c]
push ebx
push ecx
call fcn.004e8c10
add esp, 8
cmp eax, 1
je 0x50f837
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
push 0x104
lea eax, [esp + 0x154]
push eax
inc edi
push edi
push ecx
mov byte [esp + 0x160], bl
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x50f730
mov edx, dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
mov eax, dword [esp + 0x18]
push eax
call esi
jmp 0x50f5e8
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x50f84b
lea ecx, [esp + 0x4c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [esp + 0x584], ebx
je 0x50f931
push 0x103
lea edx, [esp + 0x259]
push ebx
push edx
call fcn.005dfd60
push 0x103
lea eax, [esp + 0x46d]
push ebx
push eax
call fcn.005dfd60
mov eax, dword [esp + 0x28]
add esp, 0x18
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x258]
push edx
push ebx
push ebx
push str.SchedulerExe
push eax
mov dword [esp + 0x44], esi
mov dword [esp + 0x3c], esi
mov byte [esp + 0x474], bl
mov byte [esp + 0x26c], bl
mov dword [esp + 0x2c], ebx
call ebp
test eax, eax
jne 0x50f931
push 1
push ebx
push ebx
push ebx
lea ecx, [esp + 0x264]
push ebx
push ecx
call fcn.004e8950
add esp, 0x18
test eax, eax
jne 0x50f931
push str.SchedulerMutex
lea edx, [esp + 0x18]
push ebx
push edx
call fcn.00508ad0
add esp, 0xc
test eax, eax
jne 0x50f931
cmp dword [esp + 0x14], ebx
je 0x50f931
lea eax, [esp + 0x14]
push eax
call fcn.004da170
lea ecx, [esp + 0x258]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x468]
push eax
push ecx
call fcn.00509a70
lea edx, [esp + 0x28]
push edx
call fcn.004da190
lea eax, [esp + 0x2c]
push eax
call fcn.004e2bb0
add esp, 0x1c
mov edx, dword [esp + 0x3c]
cmp edx, ebx
je 0x50f94e
lea eax, [esp + 0x150]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x50f944
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x48]
push edx
push esi
push eax
call fcn.004dac20
add esp, 0xc
cmp eax, 1
je 0x50f977
cmp esi, ebx
je 0x50f977
mov ecx, dword [esp + 0x578]
mov dword [esi], ecx
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
mov eax, dword [esp + 0x1c]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
call esi
mov eax, 1
jmp 0x50f5ea