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

Disassembly:
push 0x2c
push 0x41d368
call fcn.0041d214
mov ebx, edx
mov dword [ebp - 0x2c], ebx
mov edi, ecx
mov dword [ebp - 0x28], edi
push 0x5b
pop ecx
call fcn.0041260e
mov ecx, ebx
call fcn.0041243c
mov ecx, 0x402104
call fcn.0041243c
xor ecx, ecx
mov eax, ecx
xor ebx, ebx
inc ebx
mov dword [ebp - 0x34], 0x400
mov edx, eax
inc eax
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x24]
push eax
push ecx
lea eax, [ebp - 0x20]
push eax
push ecx
lea eax, [ebp - 0x34]
push eax
mov eax, dword [0x45ef80]
add eax, 0x878
push eax
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
test esi, esi
je 0x412324
push 0xa
pop ecx
call fcn.0041260e
cmp esi, 0x103
je 0x41221b
mov dword [0x41edf0], 0x8c
mov esi, dword [ebp - 0x2c]
lea ecx, [esi + 2]
xor edx, edx
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x412223
sub esi, ecx
sar esi, 1
lea ebx, [esi + 0x400]
mov dword [ebp - 4], edx
lea eax, [ebx + ebx]
call fcn.0041d270
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x3c], edi
mov dword [ebp - 4], 0xfffffffe
push dword [ebp - 0x2c]
mov edx, ebx
mov ecx, edi
call fcn.00404f69
lea esi, [edi + esi*2]
push 0x5c
pop eax
mov word [esi], ax
add esi, 2
xor eax, eax
mov word [esi], ax
push 0x3ff
push esi
push eax
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x4122e2
xor ebx, ebx
inc ebx
lea eax, [ebp - 0x30]
push eax
push 9
push 0
push esi
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4122c1
mov edx, edi
mov ecx, dword [ebp - 0x30]
call fcn.00412193
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x41edf0], 0x8d
je 0x412429
jmp 0x4122cb
mov dword [0x41edf0], 0x8b
mov eax, ebx
inc ebx
push 0x3ff
push esi
push eax
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x412286
cmp eax, 0x103
je 0x412429
mov dword [0x41edf0], 0x8c
jmp 0x412429
cmp dword [ebp - 0x20], ebx
je 0x412339
cmp dword [ebp - 0x20], 2
je 0x412339
cmp dword [ebp - 0x20], 7
je 0x412339
xor ecx, ecx
jmp 0x41233c
push 2
pop ecx
mov eax, dword [ebp - 0x24]
add eax, ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x41240e
lea eax, [ebp - 0x24]
push eax
push esi
lea eax, [ebp - 0x20]
push eax
push 0
mov eax, dword [0x45ef80]
add eax, 0x878
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x412386
lea eax, [ebp - 0x24]
push eax
push esi
lea ecx, [ebp - 0x20]
call fcn.0040ecbf
test eax, eax
je 0x412392
mov dword [0x41edf0], 0x8d
jmp 0x412400
cmp dword [ebp - 0x34], 0
je 0x4123ab
mov ecx, dword [0x45ef80]
lea ecx, [ecx + 0x878]
call fcn.0041245f
jmp 0x4123b3
push 0x40
pop ecx
call fcn.0041260e
push 0x3d
pop ecx
call fcn.0041260e
mov edx, dword [ebp - 0x20]
mov eax, edx
sub eax, 1
je 0x4123f1
sub eax, 3
jne 0x4123e5
cmp dword [ebp - 0x24], 4
jne 0x4123e5
mov ecx, 0x402024
call fcn.0041243c
mov edx, ebx
mov ecx, dword [esi]
call fcn.004125ca
jmp 0x4123f8
push dword [ebp - 0x24]
mov ecx, esi
call fcn.004124ee
jmp 0x4123f8
mov ecx, esi
call fcn.0041245f
push 0xa
pop ecx
call fcn.0041260e
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x41edf0]
jmp 0x412418
mov eax, 0x8d
mov dword [0x41edf0], eax
cmp eax, 0x8d
mov eax, dword [ebp - 0x38]
push 0
pop ecx
jne 0x4121c9
lea esp, [ebp - 0x4c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret