Function at 0x50bb0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x1f
push 0
push 0
dec ecx
jne 0x50530
push ebx
push esi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x50e00
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x3c]
mov eax, 0x50e10
call fcn.00031d88
lea eax, [ebp - 0x3c]
mov edx, 0x50e34
call fcn.00013ed4
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 4]
call fcn.00019a5c
call fcn.0004fdfc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
jb 0x50d0c
cmp dword [ebp - 0xc], 3
ja 0x50d0c
cmp dword [0x1b3eac], 1
jb 0x50d0c
cmp dword [0x1b3eac], 3
ja 0x50d0c
mov eax, dword [ebp - 0xc]
cmp eax, dword [0x1b3eac]
je 0x50d0c
lea edx, [ebp - 0x44]
mov eax, 0x50e44
call fcn.00031d88
push dword [ebp - 0x44]
push 0x50e34
lea edx, [ebp - 0x48]
mov eax, 0x50e50
call fcn.00031d88
push dword [ebp - 0x48]
mov eax, dword [ebp - 0xc]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x4c]
call fcn.0002b0cc
push dword [ebp - 0x4c]
lea edx, [ebp - 0x50]
mov eax, 0x50e50
call fcn.00031d88
push dword [ebp - 0x50]
mov eax, dword [0x1b3eac]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x54]
call fcn.0002b0cc
push dword [ebp - 0x54]
lea eax, [ebp - 0x40]
mov edx, 6
call fcn.00013f8c
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 4]
call fcn.00019a5c
mov eax, 0x400
call fcn.00019248
mov dword [ebp - 0x14], eax
mov eax, 0x400
call fcn.00019248
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x50d05
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 8]
push eax
mov eax, dword [0x2a9118]
mov eax, dword [eax]
add eax, 0xf003f
push eax
push 0
lea eax, [ebp - 0x58]
call fcn.00025394
mov eax, dword [ebp - 0x58]
call fcn.00014090
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 0x30], eax
cmp dword [ebp - 8], 0
jne 0x506c0
lea edx, [ebp - 0x5c]
mov eax, 0x50e54
call fcn.00031d88
lea eax, [ebp - 0x5c]
push eax
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 0x30]
call fcn.0002b100
mov edx, dword [ebp - 0x60]
pop eax
call fcn.00013ed4
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 4]
call fcn.00019bc4
jmp 0x50cd3
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
call fcn.00018abc
mov eax, dword [ebp - 0x14]
call fcn.00018ad4
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00018af0
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x50741
cmp dword [ebp - 0x30], 0x103
je 0x50741
lea edx, [ebp - 0x64]
mov eax, 0x50e5c
call fcn.00031d88
lea eax, [ebp - 0x64]
push eax
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 0x30]
call fcn.0002b100
mov edx, dword [ebp - 0x68]
pop eax
call fcn.00013ed4
mov eax, dword [ebp - 0x64]
mov edx, dword [ebp - 4]
call fcn.00019bc4
jmp 0x50bb0
lea edx, [ebp - 0x6c]
mov eax, dword [ebp - 0x14]
call fcn.00018adc
mov edx, dword [ebp - 0x6c]
mov eax, 0x50e68
call fcn.00014874
dec eax
jne 0x50bb0
lea edx, [ebp - 0x70]
mov eax, dword [ebp - 0x14]
call fcn.00018adc
mov eax, dword [ebp - 0x70]
push eax
lea eax, [ebp - 0x7c]
call fcn.00025394
mov edx, dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
call fcn.000144c4
mov eax, dword [ebp - 0x78]
lea edx, [ebp - 0x74]
call fcn.0001d8bc
mov edx, dword [ebp - 0x74]
lea eax, [ebp - 0x38]
pop ecx
call fcn.000145b4
xor eax, eax
mov dword [ebp - 0x34], eax
xor edx, edx
push ebp
push 0x50ba9
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x34]
push eax
mov eax, dword [0x2a9118]
mov eax, dword [eax]
add eax, 0xf003f
push eax
push 0
mov eax, dword [ebp - 0x38]
call fcn.00014538
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x507dc
cmp dword [ebp - 0x34], 0
jne 0x50817
lea edx, [ebp - 0x80]
mov eax, 0x50e70
call fcn.00031d88
lea eax, [ebp - 0x80]
push eax
lea edx, [ebp - 0x84]
mov eax, dword [ebp - 0x30]
call fcn.0002b100
mov edx, dword [ebp - 0x84]
pop eax
call fcn.00013ed4
mov eax, dword [ebp - 0x80]
mov edx, dword [ebp - 4]
call fcn.00019bc4
jmp 0x50b87
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
call fcn.00018abc
lea eax, [ebp - 0x2c]
call fcn.00014314
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x50e78
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x1c]
call fcn.00018af4
test eax, eax
jne 0x50853
cmp dword [ebp - 0x20], 1
je 0x508d2
lea edx, [ebp - 0x90]
mov eax, 0x50e8c
call fcn.00031d88
push dword [ebp - 0x90]
lea edx, [ebp - 0x94]
mov eax, dword [ebp - 0x30]
call fcn.0002b100
push dword [ebp - 0x94]
lea edx, [ebp - 0x98]
mov eax, 0x50e50
call fcn.00031d88
push dword [ebp - 0x98]
lea eax, [ebp - 0x8c]
mov edx, 3
call fcn.00013f8c
mov edx, dword [ebp - 0x8c]
lea eax, [ebp - 0x88]
call fcn.000144c4
lea eax, [ebp - 0x88]
mov edx, dword [ebp - 0x38]
call fcn.00014554
mov eax, dword [ebp - 0x88]
mov edx, dword [ebp - 4]
call fcn.000199bc
jmp 0x508dd
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
call fcn.00018adc
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
call fcn.00018abc
lea eax, [ebp - 0x18]
call fcn.00014314
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x50e94
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x1c]
call fcn.00018af4
test eax, eax
jne 0x50919
cmp dword [ebp - 0x20], 1
je 0x50998
lea edx, [ebp - 0xa4]
mov eax, 0x50ec4
call fcn.00031d88
push dword [ebp - 0xa4]
lea edx, [ebp - 0xa8]
mov eax, dword [ebp - 0x30]
call fcn.0002b100
push dword [ebp - 0xa8]
lea edx, [ebp - 0xac]
mov eax, 0x50e50
call fcn.00031d88
push dword [ebp - 0xac]
lea eax, [ebp - 0xa0]
mov edx, 3
call fcn.00013f8c
mov edx, dword [ebp - 0xa0]
lea eax, [ebp - 0x9c]
call fcn.000144c4
lea eax, [ebp - 0x9c]
mov edx, dword [ebp - 0x38]
call fcn.00014554
mov eax, dword [ebp - 0x9c]
mov edx, dword [ebp - 4]
call fcn.000199bc
jmp 0x509a3
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.00018adc
lea edx, [ebp - 0xb0]
mov eax, dword [ebp - 0x2c]
call fcn.0001e660
mov eax, dword [ebp - 0xb0]
push eax
lea edx, [ebp - 0xb4]
mov eax, 0x50ed0
call fcn.0001e660
mov edx, dword [ebp - 0xb4]
pop eax
call fcn.00014660
jne 0x50b87
mov eax, dword [ebp - 0x18]
mov edx, 0x50ef0
call fcn.00014660
je 0x50b87
mov ebx, 3
jmp 0x509f5
inc ebx
cmp ebx, 0xd
jg 0x50a43
lea eax, [ebx + ebx*4]
mov edx, dword [ebp - 0xc]
mov ecx, edx
shl edx, 6
add edx, ecx
lea edx, [edx*4 + 0x1b3ebc]
mov eax, dword [edx + eax*4 - 0x114]
lea edx, [ebp - 0xb8]
call fcn.0001e660
mov eax, dword [ebp - 0xb8]
push eax
lea edx, [ebp - 0xbc]
mov eax, dword [ebp - 0x18]
call fcn.0001e660
mov edx, dword [ebp - 0xbc]
pop eax
call fcn.00014660
jne 0x509f4
cmp ebx, 3
jl 0x50b4a
cmp ebx, 0xd
jg 0x50b4a
lea eax, [ebp - 0xc0]
mov ecx, dword [ebp - 0x18]
mov edx, 0x50ef8
call fcn.000145b4
mov eax, dword [ebp - 0xc0]
mov edx, dword [ebp - 4]
call fcn.0001987c
lea esi, [ebx + ebx*4]
mov eax, dword [0x1b3eac]
mov edx, eax
shl eax, 6
add eax, edx
lea eax, [eax*4 + 0x1b3ebc]
mov ecx, dword [eax + esi*4 - 0x114]
lea eax, [ebp - 0xc4]
mov edx, 0x50f14
call fcn.000145b4
mov eax, dword [ebp - 0xc4]
mov edx, dword [ebp - 4]
call fcn.0001987c
mov eax, dword [0x1b3eac]
mov edx, eax
shl eax, 6
add eax, edx
lea eax, [eax*4 + 0x1b3ebc]
mov edx, dword [eax + esi*4 - 0x114]
lea eax, [ebp - 0x28]
mov ecx, 0x50f30
call fcn.000145b4
mov eax, dword [ebp - 0x28]
call fcn.00014548
inc eax
add eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x28]
call fcn.00014538
push eax
push 1
push 0
push 0x50e94
mov eax, dword [ebp - 0x34]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
je 0x50b87
lea edx, [ebp - 0xc8]
mov eax, 0x50f34
call fcn.00031d88
lea eax, [ebp - 0xc8]
push eax
lea edx, [ebp - 0xcc]
mov eax, dword [ebp - 0x30]
call fcn.0002b100
mov edx, dword [ebp - 0xcc]
pop eax
call fcn.00013ed4
mov eax, dword [ebp - 0xc8]
mov edx, dword [ebp - 4]
call fcn.00019bc4
jmp 0x50b87
lea edx, [ebp - 0xd4]
mov eax, 0x50f3c
call fcn.00031d88
mov edx, dword [ebp - 0xd4]
lea eax, [ebp - 0xd0]
call fcn.000144c4
lea eax, [ebp - 0xd0]
mov edx, dword [ebp - 0x18]
call fcn.00014554
mov eax, dword [ebp - 0xd0]
mov edx, dword [ebp - 4]
call fcn.0001991c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50bb0
cmp dword [ebp - 0x34], 0
je 0x50ba3
mov eax, dword [ebp - 0x34]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x34], eax
ret
inc dword [ebp - 0x24]
cmp dword [ebp - 0x30], 0
jne 0x50bee
mov eax, dword [0x2a91f4]
mov eax, dword [eax]
mov edx, dword [0x2a938c]
add eax, dword [edx]
add eax, 0x64
cdq
push edx
push eax
mov eax, dword [ebp - 0x24]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x50be6
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x506c5
jmp 0x50bee
pop edx
pop eax
jle 0x506c5
mov eax, dword [0x1b3eac]
call fcn.0004ff1c
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x50c56
push 0x50f54
lea edx, [ebp - 0xdc]
mov eax, 0x50f78
call fcn.00031d88
push dword [ebp - 0xdc]
mov eax, dword [0x1b3eac]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xe0]
call fcn.0002b0cc
push dword [ebp - 0xe0]
lea eax, [ebp - 0xd8]
mov edx, 3
call fcn.00013f8c
mov eax, dword [ebp - 0xd8]
mov edx, dword [ebp - 4]
call fcn.00019a5c
jmp 0x50cd3
push 0x50f54
lea edx, [ebp - 0xe8]
mov eax, 0x50f78
call fcn.00031d88
push dword [ebp - 0xe8]
mov eax, dword [0x1b3eac]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xec]
call fcn.0002b0cc
push dword [ebp - 0xec]
lea edx, [ebp - 0xf0]
mov eax, 0x50f78
call fcn.00031d88
push dword [ebp - 0xf0]
lea edx, [ebp - 0xf4]
mov eax, dword [ebp - 0x30]
call fcn.0002b100
push dword [ebp - 0xf4]
lea eax, [ebp - 0xe4]
mov edx, 5
call fcn.00013f8c
mov eax, dword [ebp - 0xe4]
mov edx, dword [ebp - 4]
call fcn.00019bc4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50d0c
cmp dword [ebp - 8], 0
je 0x50cef
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1c]
call fcn.00019258
lea eax, [ebp - 0x14]
call fcn.00019258
ret
lea edx, [ebp - 0xf8]
mov eax, 0x50f7c
call fcn.00031d88
lea eax, [ebp - 0xf8]
mov edx, 0x50e34
call fcn.00013ed4
mov eax, dword [ebp - 0xf8]
mov edx, dword [ebp - 4]
call fcn.00019a5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50e0a
lea eax, [ebp - 0xf8]
mov edx, 0xa
call fcn.00013c60
lea eax, [ebp - 0xd0]
call fcn.00014314
lea eax, [ebp - 0xcc]
mov edx, 2
call fcn.00013c60
lea eax, [ebp - 0xc4]
mov edx, 6
call fcn.0001432c
lea eax, [ebp - 0xac]
mov edx, 4
call fcn.00013c60
lea eax, [ebp - 0x9c]
call fcn.00014314
lea eax, [ebp - 0x98]
mov edx, 4
call fcn.00013c60
lea eax, [ebp - 0x88]
call fcn.00014314
lea eax, [ebp - 0x84]
mov edx, 3
call fcn.00013c60
lea eax, [ebp - 0x78]
mov edx, 4
call fcn.0001432c
lea eax, [ebp - 0x68]
mov edx, 0xc
call fcn.00013c60
lea eax, [ebp - 0x38]
call fcn.00014314
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.0001432c
lea eax, [ebp - 0x18]
call fcn.00014314
ret