Function at 0xe2168
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0xe24c0
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
call fcn.00013c3c
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax], edx
xor eax, eax
push ebp
push 0xe2467
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x400
call fcn.00019220
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0xe2456
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, dword [0x2a9118]
mov eax, dword [eax]
add eax, 0x20019
push eax
push 0
lea eax, [ebp - 0x28]
call fcn.00025330
mov eax, dword [ebp - 0x28]
call fcn.00014090
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 0x10], eax
test bl, bl
je 0xe223f
lea eax, [ebp - 0x24]
push eax
mov eax, dword [0x2a9118]
mov eax, dword [eax]
add eax, 0x20019
push eax
push 0
push 0xe24d4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0
je 0xe2418
xor eax, eax
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
call fcn.00018980
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, 0xe24ec
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call fcn.000189b4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0xe22a0
cmp dword [ebp - 0x18], 1
jne 0xe22f7
cmp dword [ebp - 0x20], 3
jb 0xe22f7
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
call fcn.0001899c
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.00013c90
jmp 0xe22f7
test bl, bl
je 0xe22f7
cmp dword [ebp - 0x24], 0
je 0xe22f7
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, 0xe24ec
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
call fcn.000189b4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0xe22f7
cmp dword [ebp - 0x18], 1
jne 0xe22f7
cmp dword [ebp - 0x20], 3
jb 0xe22f7
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x14]
call fcn.0001899c
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
call fcn.00013c90
mov dword [ebp - 0x20], 4
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0xe2514
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0xe234c
cmp dword [ebp - 0x18], 4
jne 0xe23a9
cmp dword [ebp - 0x1c], 0
jbe 0xe23a9
cmp dword [ebp - 0x1c], 0xffff
jae 0xe23a9
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
mov dword [eax], edx
jmp 0xe23a9
test bl, bl
je 0xe23a9
cmp dword [ebp - 0x24], 0
je 0xe23a9
mov dword [ebp - 0x20], 4
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0xe2514
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0xe23a9
cmp dword [ebp - 0x18], 4
jne 0xe23a9
cmp dword [ebp - 0x1c], 0
jbe 0xe23a9
cmp dword [ebp - 0x1c], 0xffff
jae 0xe23a9
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
mov dword [eax], edx
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov byte [esi], 1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, 0xe2540
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call fcn.000189b4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0xe2418
cmp dword [ebp - 0x18], 1
jne 0xe2418
cmp dword [ebp - 0x20], 3
jb 0xe2418
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0x14]
call fcn.0001899c
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.0002b058
mov eax, dword [ebp - 0x34]
push eax
lea edx, [ebp - 0x3c]
mov eax, 0xe2564
call fcn.0002b058
mov edx, dword [ebp - 0x3c]
pop eax
call fcn.00013fdc
jne 0xe2418
mov byte [esi], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xe245d
cmp dword [ebp - 0xc], 0
je 0xe2434
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x24], 0
je 0xe2448
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x14]
call fcn.00019230
ret