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

Disassembly:
push 0x2c
push 0x41d508
call fcn.0041d3b4
mov ebx, edx
mov dword [ebp - 0x2c], ebx
mov edi, ecx
mov dword [ebp - 0x28], edi
push 0x5b
pop ecx
call fcn.0041269e
mov ecx, ebx
call fcn.004124cc
mov ecx, 0x4020d4
call fcn.004124cc
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 [0x45ef88]
add eax, 0x878
push eax
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
test esi, esi
je 0x4123b4
push 0xa
pop ecx
call fcn.0041269e
cmp esi, 0x103
je 0x4122ab
mov dword [0x41edf8], 0x8c
mov esi, dword [ebp - 0x2c]
lea ecx, [esi + 2]
xor edx, edx
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x4122b3
sub esi, ecx
sar esi, 1
lea ebx, [esi + 0x400]
mov dword [ebp - 4], edx
lea eax, [ebx + ebx]
call fcn.0041d410
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.00404fa9
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 0x412372
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 0x412351
mov edx, edi
mov ecx, dword [ebp - 0x30]
call fcn.00412223
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x41edf8], 0x8d
je 0x4124b9
jmp 0x41235b
mov dword [0x41edf8], 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 0x412316
cmp eax, 0x103
je 0x4124b9
mov dword [0x41edf8], 0x8c
jmp 0x4124b9
cmp dword [ebp - 0x20], ebx
je 0x4123c9
cmp dword [ebp - 0x20], 2
je 0x4123c9
cmp dword [ebp - 0x20], 7
je 0x4123c9
xor ecx, ecx
jmp 0x4123cc
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 0x41249e
lea eax, [ebp - 0x24]
push eax
push esi
lea eax, [ebp - 0x20]
push eax
push 0
mov eax, dword [0x45ef88]
add eax, 0x878
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x412416
lea eax, [ebp - 0x24]
push eax
push esi
lea ecx, [ebp - 0x20]
call fcn.0040ed4f
test eax, eax
je 0x412422
mov dword [0x41edf8], 0x8d
jmp 0x412490
cmp dword [ebp - 0x34], 0
je 0x41243b
mov ecx, dword [0x45ef88]
lea ecx, [ecx + 0x878]
call fcn.004124ef
jmp 0x412443
push 0x40
pop ecx
call fcn.0041269e
push 0x3d
pop ecx
call fcn.0041269e
mov edx, dword [ebp - 0x20]
mov eax, edx
sub eax, 1
je 0x412481
sub eax, 3
jne 0x412475
cmp dword [ebp - 0x24], 4
jne 0x412475
mov ecx, 0x401ff4
call fcn.004124cc
mov edx, ebx
mov ecx, dword [esi]
call fcn.0041265a
jmp 0x412488
push dword [ebp - 0x24]
mov ecx, esi
call fcn.0041257e
jmp 0x412488
mov ecx, esi
call fcn.004124ef
push 0xa
pop ecx
call fcn.0041269e
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x41edf8]
jmp 0x4124a8
mov eax, 0x8d
mov dword [0x41edf8], eax
cmp eax, 0x8d
mov eax, dword [ebp - 0x38]
push 0
pop ecx
jne 0x412259
lea esp, [ebp - 0x4c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret