Function at 0x100a53c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fead8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x1013c014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 4]
cmp eax, 1
je 0x100a5405
cmp eax, 2
jne 0x100a5480
cmp dword [ebx + 0x64], 0xffffffff
je 0x100a54a0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 4
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100a556a
cmp dword [ebp - 0x10], 4
jne 0x100a556a
cmp dword [ebx + 4], 1
jne 0x100a5789
cmp dword [ebp - 0x14], eax
mov ecx, 3
mov word [ebp - 0x28], cx
setne al
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
add ebx, 0x38
lea eax, [ebp - 0x28]
cmp ebx, eax
je 0x100a5614
push eax
push ebx
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
test eax, eax
js 0x100a57a4
jmp 0x100a5614
cmp eax, 3
je 0x100a5405
cmp eax, 4
je 0x100a5405
cmp eax, 5
je 0x100a5405
cmp eax, 2
jne 0x100a5634
cmp dword [ebx + 0x64], 0xffffffff
jne 0x100a556a
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
mov esi, dword [ebp + 8]
mov ecx, esi
push eax
push 0
push edi
call fcn.10068440
test eax, eax
jne 0x100a55de
lea ecx, [ebp - 0x10]
call fcn.1001fb10
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0x14]
test edx, edx
js 0x100a57b5
mov esi, dword [ebp - 0x10]
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x100a5500
push edx
lea ecx, [ebp - 0x10]
call fcn.10021230
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
push esi
push edi
call fcn.10068440
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.10038070
cmp dword [ebx + 0x64], 0xffffffff
lea edi, [ebx + 0x60]
mov dword [ebp + 0xc], 0
jne 0x100a554b
nop dword [eax]
push dword [edi]
push esi
call fcn.100dc721
add esp, 8
test eax, eax
je 0x100a5580
inc dword [ebp + 0xc]
add edi, 0x60
cmp dword [edi + 4], 0xffffffff
je 0x100a5530
add esi, 0xfffffff0
mov dword [ebp - 4], 5
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100a556a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, 3
mov word [ebp - 0x28], ax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebx + 0x38]
call fcn.10049140
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
add esi, 0xfffffff0
mov dword [ebp - 4], 4
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100a561e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp + 0xc]
mov ecx, esi
push eax
push edi
call fcn.100131d0
test eax, eax
jne 0x100a556a
mov eax, 3
mov word [ebp - 0x28], ax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 6
push eax
lea ecx, [ebx + 0x38]
call fcn.10049140
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp eax, 6
jl 0x100a5682
cmp eax, 0xc
je 0x100a568b
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
mov edi, dword [ebp + 8]
mov ecx, edi
push eax
push 0
push esi
call fcn.10068440
test eax, eax
jne 0x100a556a
mov eax, 8
mov word [ebx + 0x38], ax
mov eax, dword [ebp - 0x14]
dec eax
push eax
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
lea ecx, [ebp - 0x14]
mov dword [ebx + 0x40], eax
push ecx
push eax
push esi
mov ecx, edi
call fcn.10068440
jmp 0x100a561e
cmp eax, 0xc
jne 0x100a556a
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp + 8]
add eax, eax
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], 0
push eax
push 0
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100a5729
cmp dword [ebp - 0x18], 7
jne 0x100a5729
mov eax, dword [ebp - 0x14]
mov ecx, 8
shr eax, 1
mov dword [ebp - 0x10], eax
dec eax
push eax
push 0
mov word [ebx + 0x38], cx
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
lea ecx, [ebp - 0x10]
mov dword [ebx + 0x40], eax
push ecx
push eax
push esi
mov ecx, edi
call fcn.100ae700
mov edx, dword [ebp - 0x10]
xor ecx, ecx
dec edx
test edx, edx
jle 0x100a561e
lea esi, [ecx + 0xa]
nop dword [eax + eax]
mov eax, dword [ebx + 0x40]
cmp word [eax + ecx*2], 0
jne 0x100a570e
mov word [eax + ecx*2], si
inc ecx
cmp ecx, edx
jl 0x100a5700
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
push 0
push esi
call fcn.10068440
test eax, eax
jne 0x100a556a
push dword [ebp - 0x10]
mov eax, 8
push 0
mov word [ebx + 0x38], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
lea ecx, [ebp - 0x10]
mov dword [ebx + 0x40], eax
push ecx
push eax
push esi
mov ecx, edi
call fcn.10068440
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x100a561e
mov eax, dword [ebx + 0x40]
mov edx, 0xa
mov word [eax + ecx*2 - 2], dx
xor edx, edx
mov eax, dword [ebx + 0x40]
mov word [eax + ecx*2], dx
jmp 0x100a561e
mov eax, 3
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 1
jmp 0x100a545d
mov ecx, 0xa
mov word [ebx], cx
push eax
mov dword [ebx + 8], eax
call fcn.10013970
push 0x80070057
call fcn.10013970
int3