Function at 0x41fbc0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4a0fd1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, ecx
push esi
mov dword [esp + 0x10], 0
cmp dword [ebp + 4], 2
push edi
mov dword [esp + 0x20], ebp
jne 0x41fc10
push 0
push 0x13c
add byte [eax], al
push str.d:_build10_fineobjects_src_registrykey.cpp
push 0x4b84f0
push 0x4b84f0
push 0
call fcn.0041d410
add esp, 0x18
cmp dword [esp + 0x38], 0
mov ebx, dword [esp + 0x3c]
je 0x41fc1f
test ebx, ebx
jne 0x41fc3f
push 0
push 0x13d
push str.d:_build10_fineobjects_src_registrykey.cpp
push 0x4b84f0
push 0x4b84f0
push 0
call fcn.0041d410
add esp, 0x18
cmp dword [ebp], 0
jne 0x41fc83
mov eax, ebx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41fc50
mov edi, dword [esp + 0x34]
sub eax, edx
sar eax, 1
push ebx
push edi
mov esi, eax
call fcn.00419c10
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
push 0x4d9f40
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edi, 0x4d9f40
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 1
mov esi, 0x3f
lea eax, [esi + esi + 0xe]
cmp dword [edi + 8], eax
jge 0x41fcd8
cmp eax, 0x80
jle 0x41fcdf
mov edi, dword [edi + 4]
mov eax, 0x66666667
imul edi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, edi
cmp esi, eax
jle 0x41fccf
mov eax, esi
lea ecx, [esp + 0x10]
push ecx
mov ecx, eax
jmp 0x41fce6
mov edx, dword [edi]
cmp edx, 1
je 0x41fceb
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00419f20
mov edi, dword [esp + 0x10]
xor ecx, ecx
mov word [edi + esi*2 + 0xc], cx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [ebp]
lea edx, [esi + esi]
lea eax, [edi + 0xc]
push eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x24], edx
lea edx, [esp + 0x20]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebp, eax
test ebp, ebp
je 0x41fd51
cmp ebp, 0xea
je 0x41fd51
cmp ebp, 2
jb 0x41fd40
cmp ebp, 3
jbe 0x41fd82
cmp ebp, 0x3fa
je 0x41fd82
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
call fcn.00401790
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x41fd5f
cmp eax, 2
jne 0x41fd82
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41fddb
test al, 1
jne 0x41fddb
shr eax, 1
mov ebx, eax
cmp ebx, esi
jle 0x41fd90
mov ebp, dword [esp + 0x20]
mov esi, ebx
mov ebx, dword [esp + 0x3c]
jmp 0x41fca4
mov ebp, dword [esp + 0x34]
push ebx
mov ecx, ebp
call fcn.00419be0
jmp 0x41fdfc
test ebp, ebp
je 0x41fdb4
push 0
push 0x160
push str.d:_build10_fineobjects_src_registrykey.cpp
push 0x4b84f0
push 0x4b84f0
push 0
call fcn.0041d410
add esp, 0x18
lea eax, [edi + 0xc]
push ebx
push eax
call fcn.004463b5
mov ebp, dword [esp + 0x3c]
add esp, 8
mov dword [edi + 4], eax
xor edx, edx
mov word [edi + eax*2 + 0xc], dx
push edi
mov dword [ebp], edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x41fdfc
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41fde0
mov ebp, dword [esp + 0x34]
sub eax, edx
sar eax, 1
push ebx
push ebp
mov esi, eax
call fcn.00419c10
push edi
mov dword [esp + 0x18], 1
mov byte [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41fe21
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc