Function at 0x40bf10
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41ff06
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x427040]
xor eax, esp
mov dword [esp + 0x448], eax
push ebx
push esi
push edi
mov eax, dword [0x427040]
xor eax, esp
push eax
lea eax, [esp + 0x460]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x4c]
push edx
push ebx
push ebx
mov dword [esp + 0x490], ebx
mov eax, dword [esi + 4]
push ebx
push eax
mov dword [esp + 0x60], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, ebx
je 0x40bfce
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x40bfc7
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x20]
push ecx
call fcn.00406eb0
mov edx, dword [esp + 0x20]
add esp, 4
push edx
call fcn.004127aa
add esp, 4
xor al, al
jmp 0x40c2d9
xor edi, edi
cmp dword [esp + 0x30], ebx
jbe 0x40c09b
jmp 0x40bfe4
mov esi, dword [esp + 0x10]
push 0x3fe
lea eax, [esp + 0x5a]
push ebx
push eax
mov word [esp + 0x60], bx
call fcn.00413e90
mov eax, dword [esi + 4]
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x68]
push edx
push edi
push eax
mov dword [esp + 0x34], 0x400
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40c08e
lea eax, [esp + 0x54]
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], bx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40c040
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x58]
push ecx
lea esi, [esp + 0x40]
call fcn.004053a0
mov edx, esi
push edx
lea esi, [esp + 0x1c]
mov byte [esp + 0x46c], 1
call fcn.00406080
mov byte [esp + 0x468], 0
cmp dword [esp + 0x50], 8
jb 0x40c08e
mov eax, dword [esp + 0x3c]
push eax
call fcn.004127aa
add esp, 4
add edi, 1
cmp edi, dword [esp + 0x30]
jb 0x40bfe0
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebx
call fcn.004019a0
test eax, eax
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
jbe 0x40c10f
mov dword [esp + 0x10], ebx
test esi, esi
je 0x40c0d7
mov ecx, edi
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x40c0e4
call fcn.00412b4f
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + esi + 0x14]
mov edx, dword [esp + 0x28]
lea ecx, [edx + ecx*2 + 2]
mov dword [esp + 0x28], ecx
add eax, 0x1c
lea ecx, [esp + 0x18]
add ebx, 1
mov dword [esp + 0x10], eax
call fcn.004019a0
cmp ebx, eax
jb 0x40c0b8
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
mov eax, dword [edx]
add ecx, 2
cmp eax, ecx
mov dword [esp + 0x28], ecx
jae 0x40c173
xor ebx, ebx
cmp esi, ebx
mov dword [edx], ecx
je 0x40bfc7
cmp esi, edi
je 0x40c163
add esi, 0x18
cmp dword [esi], 8
jb 0x40c148
mov edx, dword [esi - 0x14]
push edx
call fcn.004127aa
add esp, 4
mov dword [esi], 7
mov dword [esi - 4], ebx
mov word [esi - 0x14], bx
add esi, 0x1c
lea eax, [esi - 0x18]
cmp eax, edi
jne 0x40c137
mov esi, dword [esp + 0x1c]
push esi
call fcn.004127aa
add esp, 4
xor al, al
jmp 0x40c2d9
mov ebx, dword [esp + 0x2c]
push eax
push 0
push ebx
call fcn.00413e90
add esp, 0xc
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x18]
xor ebx, ebx
call fcn.004019a0
test eax, eax
jbe 0x40c28b
mov dword [esp + 0x14], ebx
test esi, esi
je 0x40c1bd
mov ecx, edi
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x40c1ca
call fcn.00412b4f
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
test esi, esi
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + esi + 0x14]
mov dword [esp + 0x2c], edx
je 0x40c1f3
sub edi, esi
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x40c200
call fcn.00412b4f
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
cmp dword [ecx + esi + 0x18], 8
jb 0x40c20d
mov esi, dword [ecx + esi + 4]
jmp 0x40c211
lea esi, [ecx + esi + 4]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
lea ecx, [eax + eax + 2]
push ecx
push esi
push edx
call fcn.00414cc0
mov esi, dword [esp + 0x28]
add esp, 0xc
test esi, esi
je 0x40c24f
mov edi, dword [esp + 0x20]
mov ecx, edi
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x40c25c
call fcn.00412b4f
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + esi + 0x14]
mov edx, dword [esp + 0x10]
lea ecx, [edx + ecx*2 + 2]
mov dword [esp + 0x10], ecx
add eax, 0x1c
lea ecx, [esp + 0x18]
add ebx, 1
mov dword [esp + 0x14], eax
call fcn.004019a0
cmp ebx, eax
jb 0x40c19e
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
xor ebx, ebx
cmp esi, ebx
mov dword [eax], edx
je 0x40c2d7
cmp esi, edi
je 0x40c2ce
add esi, 0x18
cmp dword [esi], 8
jb 0x40c2b3
mov ecx, dword [esi - 0x14]
push ecx
call fcn.004127aa
add esp, 4
mov dword [esi], 7
mov dword [esi - 4], ebx
mov word [esi - 0x14], bx
add esi, 0x1c
lea edx, [esi - 0x18]
cmp edx, edi
jne 0x40c2a2
mov esi, dword [esp + 0x1c]
push esi
call fcn.004127aa
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x460]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x448]
xor ecx, esp
call fcn.0041288d
mov esp, ebp
pop ebp
ret 8