Function at 0x102ed60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10582e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov dword [ebp - 0x50], ecx
cmp dword [ebp + 0xc], 0
jne 0x102ed95
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x102f06e
cmp dword [ebp + 8], 1
je 0x102eda5
cmp dword [ebp + 8], 2
jne 0x102eee8
mov ecx, dword [ebp - 0x50]
call fcn.01030230
test eax, eax
jne 0x102edb8
xor eax, eax
jmp 0x102f06e
lea ecx, [ebp - 0x14]
call fcn.01010c62
mov dword [ebp - 4], 0
push 0x104
lea ecx, [ebp - 0x14]
call fcn.01011310
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x14]
call fcn.01010a68
lea eax, [eax + eax + 2]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x18]
push edx
push 0
push 0
push 0x100419c
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x1c], eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.01010a85
cmp dword [ebp - 0x1c], 0
je 0x102ee35
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.01010c92
mov eax, dword [ebp - 0x34]
jmp 0x102f06e
lea ecx, [ebp - 0x14]
call fcn.01010a73
movzx edx, al
test edx, edx
je 0x102ee62
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.01010c92
mov eax, dword [ebp - 0x38]
jmp 0x102f06e
cmp dword [ebp + 8], 1
jne 0x102ee92
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.010115e7
mov dword [ebp - 0x3c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.01010c92
mov eax, dword [ebp - 0x3c]
jmp 0x102f06e
lea ecx, [ebp - 0x20]
call fcn.01010c62
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x50]
add eax, 8
push eax
call fcn.01025680
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.010115e7
mov dword [ebp - 0x40], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.01010c92
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.01010c92
mov eax, dword [ebp - 0x40]
jmp 0x102f06e
cmp dword [ebp + 8], 3
jne 0x102ef07
mov edx, dword [ebp - 0x50]
add edx, 4
push edx
mov ecx, dword [ebp + 0xc]
call fcn.010115e7
mov eax, 1
jmp 0x102f06e
cmp dword [ebp + 8], 0xe
jne 0x102ef36
mov eax, dword [ebp - 0x50]
cmp dword [eax + 0x14], 0
je 0x102ef2f
mov ecx, dword [ebp - 0x50]
add ecx, 8
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.010115e7
mov eax, 1
jmp 0x102f06e
xor eax, eax
jmp 0x102f06e
mov ecx, dword [ebp - 0x50]
call fcn.01030230
test eax, eax
jne 0x102ef49
xor eax, eax
jmp 0x102f06e
cmp dword [ebp + 8], 0xb
jne 0x102ef58
mov dword [ebp - 0x2c], 0x1008d30
jmp 0x102ef94
cmp dword [ebp + 8], 0xc
jne 0x102ef67
mov dword [ebp - 0x2c], 0x1008d0c
jmp 0x102ef94
cmp dword [ebp + 8], 0xd
jne 0x102ef76
mov dword [ebp - 0x2c], 0x1006d40
jmp 0x102ef94
cmp dword [ebp + 8], 7
jne 0x102ef85
mov dword [ebp - 0x2c], 0x1008ce8
jmp 0x102ef94
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x102f06e
mov dword [ebp - 0x24], 0
lea edx, [ebp - 0x24]
push edx
push 0
push 0
push 0
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x102efc5
cmp dword [ebp - 0x24], 1
ja 0x102efd6
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x102f06e
mov ecx, dword [ebp - 0x24]
add ecx, 4
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.0101e5e0
add esp, 4
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x102effe
xor eax, eax
jmp 0x102f06e
mov ecx, dword [ebp - 0x24]
push ecx
push 0
mov edx, dword [ebp - 0x30]
push edx
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x102f047
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
push eax
call fcn.0101da1e
add esp, 4
xor eax, eax
jmp 0x102f06e
mov ecx, dword [ebp - 0x30]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.01011a82
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
push eax
call fcn.0101da1e
add esp, 4
xor ecx, ecx
cmp ecx, dword [ebp - 0x24]
sbb eax, eax
neg eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8