Function at 0x100212a6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10070e4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x88
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x1c]
test eax, eax
je 0x100214cd
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x7c], eax
lea eax, [ebp + 8]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x4c]
movzx eax, byte [eax]
test eax, eax
je 0x100214b9
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x38], 0x4933
mov dword [ebp - 0x48], 0x10007dcc
cmp dword [ebp - 0x38], 0x4ab3
jle 0x100213ab
and dword [ebp - 0x18], 0
jmp 0x1002134b
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x2cd5
jge 0x100213ab
and dword [ebp - 0x1c], 0
jmp 0x10021361
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x6faa
jge 0x100213a9
mov eax, dword [ebp - 0x18]
and eax, dword [ebp - 0x1c]
cdq
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], edx
push dword [ebp - 0x74]
push dword [ebp - 0x78]
lea ecx, [ebp - 0x98]
call fcn.1000a9f3
pop ecx
pop ecx
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
call fcn.10017844
push eax
call fcn.1005968a
pop ecx
lea ecx, [ebp - 0x98]
call fcn.10009e72
jmp 0x1002135a
jmp 0x10021344
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x14], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x38], 0x459e
jge 0x100213c7
push dword [ebp - 0x48]
call fcn.1005968a
pop ecx
jmp 0x100213e3
or dword [ebp - 4], 0xffffffff
jmp 0x100213ed
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0
jne 0x10021404
mov dword [ebp - 0x2c], 1
jmp 0x10021408
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0
je 0x10021434
mov eax, dword [ebp - 0x20]
cmp dword [eax], 6
ja 0x10021421
mov dword [ebp - 0x24], 1
jmp 0x10021425
and dword [ebp - 0x24], 0
cmp dword [ebp - 0x24], 0
jl 0x10021434
mov dword [ebp - 0x58], 1
jmp 0x10021438
and dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jne 0x10021455
mov dword [ebp - 0x30], 1
jmp 0x10021459
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
imul eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x20]
cmp eax, dword [ecx]
jne 0x10021472
mov dword [ebp - 0x28], 1
jmp 0x10021476
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x14]
imul eax, dword [eax], 3
sub eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x60]
cmp eax, dword [ecx]
jg 0x1002148f
mov dword [ebp - 0x34], 1
jmp 0x10021493
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x34]
jl 0x100214a4
mov dword [ebp - 0x3c], 1
jmp 0x100214a8
and dword [ebp - 0x3c], 0
push 0
mov ecx, dword [ebp - 0x68]
call fcn.10017dd6
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
jmp 0x100214cb
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jmp 0x100214db
push 1
push 0x3042
call fcn.1001e81e
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret