Function at 0x410f00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x461fe9
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x49106c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
call fcn.00401640
mov ecx, eax
test ecx, ecx
jne 0x410f50
push 0x80004005
call fcn.004012a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push 0x476b5c
mov ecx, ebx
mov dword [ebp - 4], 1
call fcn.00407020
test al, al
jne 0x410f7f
push 0
push 0x476b5c
mov ecx, ebx
call fcn.004076f0
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
push 0x20219
push 0x476b60
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 2
xor esi, esi
call fcn.0040e570
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41106a
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push esi
push 0x476ba0
push dword [ebp - 0x2c]
call edi
test eax, eax
jne 0x41106a
mov eax, dword [ebp - 0x18]
cmp eax, 1
je 0x410ff5
cmp eax, 2
jne 0x41106a
mov esi, dword [ebp - 0x10]
shr esi, 1
mov dword [ebp - 0x10], esi
lea eax, [esi*2 + 2]
push eax
mov dword [ebp - 0x18], eax
call fcn.00445a72
mov edi, eax
add esp, 4
test edi, edi
je 0x411064
push dword [ebp - 0x18]
push 0
push edi
call fcn.0043e860
add esp, 0xc
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x2c]
push eax
push edi
push 0x476bb8
call fcn.0040e620
test eax, eax
jne 0x411058
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411040
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, ebx
call fcn.004076f0
push edi
call fcn.00445a6d
mov esi, dword [ebp - 0x10]
add esp, 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
jne 0x411128
push 0x20119
push str.SOFTWAREMicrosoftCryptography
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x2c]
call fcn.0040e570
test eax, eax
jne 0x411128
lea eax, [esi + esi]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0x476c10
push dword [ebp - 0x2c]
call edi
test eax, eax
jne 0x411128
mov eax, dword [ebp - 0x18]
cmp eax, 1
je 0x4110c2
cmp eax, 2
jne 0x411128
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x10], eax
lea edi, [eax*2 + 2]
push edi
call fcn.00445a72
mov esi, eax
add esp, 4
test esi, esi
je 0x411128
push edi
push 0
push esi
call fcn.0043e860
add esp, 0xc
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x2c]
push eax
push esi
push str.MachineGuid
call fcn.0040e620
test eax, eax
jne 0x41111f
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411107
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, ebx
call fcn.004076f0
push esi
call fcn.00445a6d
add esp, 4
mov eax, dword [ebx]
mov esi, dword [eax - 0xc]
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x4111d4
jns 0x411144
push 0x80070057
call fcn.004012a0
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or ecx, eax
jge 0x41115d
push esi
mov ecx, ebx
call fcn.00407690
mov ecx, dword [ebx]
mov edx, ecx
lea eax, [ecx + esi*2]
mov dword [ebp - 0x10], eax
cmp ecx, eax
jae 0x4111aa
mov esi, eax
nop dword [eax]
cmp word [ecx], 0x2d
lea eax, [ecx + 2]
mov dword [ebp - 0x18], eax
je 0x4111a1
lea edi, [edx + 2]
xor esi, esi
cmp edx, edi
je 0x41119e
cmp esi, 1
jae 0x41119b
mov ax, word [ecx]
inc esi
mov word [edx], ax
add ecx, 2
add edx, 2
cmp edx, edi
jne 0x411185
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov ecx, eax
cmp eax, esi
jb 0x411170
mov esi, dword [ebp - 0x1c]
sub ecx, edx
xor eax, eax
sar ecx, 1
sub esi, ecx
mov word [edx], ax
js 0x41113a
mov eax, dword [ebx]
cmp esi, dword [eax - 8]
jg 0x41113a
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebx]
mov word [eax + esi*2], cx
mov ecx, ebx
call fcn.004124a0
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4111e2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret