Function at 0x410100
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50cfec
mov eax, dword fs:[0]
push eax
sub esp, 0x820
mov eax, dword [0x55b1c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp word [0x560f40], 0
jne 0x4103ab
mov dword [ebp - 0x82c], 0
mov dword [ebp - 0x828], 0
mov dword [ebp - 0x824], 0
push 0x20219
lea ecx, [ebp - 0x811]
mov dword [ebp - 4], 0
call fcn.0040f8f0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x82c]
call fcn.00410610
mov edi, dword [ebp - 0x82c]
test eax, eax
jne 0x4103a0
lea ecx, [ebp - 0x811]
call fcn.0040f570
lea ecx, [ebp - 0x81c]
mov dword [ebp - 0x81c], 0x800
push ecx
lea ecx, [ebp - 0x810]
push ecx
lea ecx, [ebp - 0x818]
push ecx
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4103a0
mov eax, dword [ebp - 0x818]
cmp eax, 1
je 0x4101df
cmp eax, 2
jne 0x4103a0
mov eax, dword [ebp - 0x81c]
test eax, eax
je 0x410203
test al, 1
jne 0x4103a0
shr eax, 1
cmp word [ebp + eax*2 - 0x812], 0
je 0x41020c
jmp 0x4103a0
xor eax, eax
mov word [ebp - 0x810], ax
mov ecx, 0x560f40
lea esi, [ebp - 0x810]
mov edx, 0x3ff
sub esi, ecx
nop
lea eax, [edx + 0x7ffffbff]
test eax, eax
je 0x41023e
movzx eax, word [esi + ecx]
test ax, ax
je 0x41023e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x410220
lea eax, [ecx - 2]
test edx, edx
push 0x560f40
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x818]
call fcn.004077f0
mov byte [ebp - 4], 1
call fcn.00408de0
mov ecx, eax
test ecx, ecx
je 0x4103c8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x81c], eax
mov eax, dword [ebp - 0x818]
or esi, 0xffffffff
mov byte [ebp - 4], 2
cmp dword [eax - 0xc], 0
jl 0x4102f3
push 0x51cb64
push eax
call fcn.00481224
add esp, 8
test eax, eax
je 0x4102f3
sub eax, dword [ebp - 0x818]
sar eax, 1
test eax, eax
jle 0x4102f3
push eax
lea eax, [ebp - 0x820]
push eax
lea ecx, [ebp - 0x818]
call fcn.004105a0
push eax
lea ecx, [ebp - 0x81c]
mov byte [ebp - 4], 3
call fcn.00407aa0
mov edx, dword [ebp - 0x820]
mov eax, esi
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410305
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x410305
lea eax, [ebp - 0x818]
push eax
lea ecx, [ebp - 0x81c]
call fcn.00407aa0
lea ecx, [ebp - 0x811]
call fcn.0040f650
push eax
lea ecx, [ebp - 0x81c]
call fcn.0040fca0
mov edx, dword [ebp - 0x81c]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
test eax, eax
mov eax, esi
jne 0x41036f
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410341
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x818]
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x410360
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x41036b
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x4103ad
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410381
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x818]
mov byte [ebp - 4], 0
lea edx, [eax - 0x10]
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4103a0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x4103ab
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00455dea
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403cd0
int3