Function at 0x40c300
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41feb6
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x3054
call fcn.0041e6e0
mov eax, dword [0x427040]
xor eax, esp
mov dword [esp + 0x3050], eax
push ebx
push esi
push edi
mov eax, dword [0x427040]
xor eax, esp
push eax
lea eax, [esp + 0x3068]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x44]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [esp + 0x3098], ebx
mov eax, dword [esi + 4]
push ebx
push eax
mov dword [esp + 0x64], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, ebx
je 0x40c3c3
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x40c3bc
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x28]
push ecx
call fcn.00406eb0
mov edx, dword [esp + 0x28]
add esp, 4
push edx
call fcn.004127aa
add esp, 4
xor al, al
jmp 0x40c727
xor edi, edi
cmp dword [esp + 0x34], ebx
jbe 0x40c4de
jmp 0x40c3e4
mov esi, dword [esp + 0x14]
push 0x1ffe
lea eax, [esp + 0x1062]
push ebx
push eax
mov word [esp + 0x1068], bx
call fcn.00413e90
add esp, 0xc
push 0xfff
lea ecx, [esp + 0x61]
push ebx
push ecx
mov dword [esp + 0x48], 0x2000
mov dword [esp + 0x24], ebx
mov byte [esp + 0x68], 0
call fcn.00413e90
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esi + 4]
push ebx
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x1070]
push eax
push edi
push ecx
mov dword [esp + 0x3c], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, ebx
je 0x40c463
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40c4d1
lea eax, [esp + 0x105c]
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], bx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40c480
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x1060]
push edx
lea esi, [esp + 0x48]
call fcn.004053a0
mov eax, esi
push eax
lea esi, [esp + 0x24]
mov byte [esp + 0x3074], 1
call fcn.00406080
mov byte [esp + 0x3070], 0
cmp dword [esp + 0x58], 8
jb 0x40c4d1
mov ecx, dword [esp + 0x44]
push ecx
call fcn.004127aa
add esp, 4
add edi, 1
cmp edi, dword [esp + 0x34]
jb 0x40c3e0
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], ebx
call fcn.004019a0
test eax, eax
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
jbe 0x40c552
mov dword [esp + 0x14], ebx
test esi, esi
je 0x40c51a
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 0x40c527
call fcn.00412b4f
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
mov edx, dword [eax + esi + 0x14]
mov ecx, dword [esp + 0x18]
lea edx, [ecx + edx*2 + 2]
add eax, 0x1c
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], edx
add ebx, 1
mov dword [esp + 0x14], eax
call fcn.004019a0
cmp ebx, eax
jb 0x40c4fb
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x38]
mov eax, dword [edx]
add ecx, 2
cmp eax, ecx
mov dword [esp + 0x18], ecx
jae 0x40c5bc
xor ebx, ebx
cmp esi, ebx
mov dword [edx], ecx
je 0x40c3bc
cmp esi, edi
je 0x40c5ac
add esi, 0x18
lea ebx, [ebx]
cmp dword [esi], 8
jb 0x40c591
mov eax, dword [esi - 0x14]
push eax
call fcn.004127aa
add esp, 4
mov dword [esi], 7
mov dword [esi - 4], ebx
mov word [esi - 0x14], bx
add esi, 0x1c
lea ecx, [esi - 0x18]
cmp ecx, edi
jne 0x40c580
mov esi, dword [esp + 0x24]
push esi
call fcn.004127aa
add esp, 4
xor al, al
jmp 0x40c727
mov ebx, dword [esp + 0x30]
push eax
push 0
push ebx
call fcn.00413e90
add esp, 0xc
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x20]
xor ebx, ebx
call fcn.004019a0
test eax, eax
jbe 0x40c6d4
mov dword [esp + 0x1c], ebx
test esi, esi
je 0x40c606
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 0x40c613
call fcn.00412b4f
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
test esi, esi
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + esi + 0x14]
mov dword [esp + 0x30], edx
je 0x40c63c
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 0x40c649
call fcn.00412b4f
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
cmp dword [ecx + esi + 0x18], 8
jb 0x40c656
mov esi, dword [ecx + esi + 4]
jmp 0x40c65a
lea esi, [ecx + esi + 4]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
lea ecx, [eax + eax + 2]
push ecx
push esi
push edx
call fcn.00414cc0
mov esi, dword [esp + 0x30]
add esp, 0xc
test esi, esi
je 0x40c698
mov edi, dword [esp + 0x28]
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 0x40c6a5
call fcn.00412b4f
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + esi + 0x14]
mov edx, dword [esp + 0x14]
lea ecx, [edx + ecx*2 + 2]
mov dword [esp + 0x14], ecx
add eax, 0x1c
lea ecx, [esp + 0x20]
add ebx, 1
mov dword [esp + 0x1c], eax
call fcn.004019a0
cmp ebx, eax
jb 0x40c5e7
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x38]
xor ebx, ebx
cmp esi, ebx
mov dword [eax], edx
je 0x40c725
cmp esi, edi
je 0x40c71c
add esi, 0x18
jmp 0x40c6f0
cmp dword [esi], 8
jb 0x40c701
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 0x40c6f0
mov esi, dword [esp + 0x24]
push esi
call fcn.004127aa
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x3068]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3050]
xor ecx, esp
call fcn.0041288d
mov esp, ebp
pop ebp
ret 8