Function at 0x1001e904
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24c
mov eax, dword [0x1008a418]
xor eax, esp
mov dword [esp + 0x248], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x34], eax
xor eax, eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x18], eax
mov ebx, eax
mov dword [esp + 0x14], eax
lea esi, [edi + 4]
mov dword [esp + 0x20], eax
test esi, esi
je 0x1001e956
push eax
push 0x1001ec50
push dword [esi]
call fcn.100850d0
and dword [esi], ebx
cmp dword [edi + 8], ebx
je 0x1001e963
lea ecx, [edi + 8]
call fcn.1001ee8f
push 5
call fcn.10084e59
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
jne 0x1001e981
mov dword [esp + 0x1c], 0x8007000e
jmp 0x1001eb77
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
push 0x100041f0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001eb6b
push 0x208
push eax
lea eax, [esp + 0x50]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [esp + 0x24], 0x104
xor ecx, ecx
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], ecx
push ecx
push ecx
push eax
push ecx
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x5c]
push eax
push ecx
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1001eb6b
mov esi, 0x10003e3c
mov dword [esp + 0x24], 0x104
lea edi, [esp + 0x38]
inc ebx
lea eax, [esp + 0x38]
mov dword [esp + 0x28], ebx
push eax
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x4c]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
js 0x1001ea32
lea edx, [esp + 0x38]
mov esi, 0x1008a464
xor ecx, ecx
mov eax, dword [edx + ecx*4]
cmp eax, dword [esi + ecx*4]
jne 0x1001ea3b
inc ecx
cmp ecx, 4
jne 0x1001ea24
mov esi, dword [esp + 0x10]
jmp 0x1001eb3f
lea ecx, [esp + 0x14]
call fcn.1000b34b
lea eax, [esp + 0x14]
push eax
push 0x1000946c
push 1
push 0
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1001ea32
lea ecx, [esp + 0x20]
call fcn.1000b34b
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
mov edi, esp
push ecx
push 0x10008284
mov esi, dword [eax]
push eax
mov ecx, dword [esi]
call dword [0x1008c6d4]
call dword [esi]
cmp edi, esp
je 0x1001ea92
mov ecx, 4
int 0x29
test eax, eax
js 0x1001ea32
mov eax, dword [esp + 0x30]
lea ebx, [eax + 8]
cmp dword [ebx], 0
jne 0x1001eabf
push ebx
push dword [ebp + 0xc]
mov ecx, eax
push dword [esp + 0x3c]
call fcn.1001ec88
mov esi, eax
mov dword [esp + 0x1c], esi
test esi, esi
js 0x1001ebea
mov eax, dword [esp + 0x20]
mov edi, esp
push dword [ebx]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x1008c6d4]
call esi
cmp edi, esp
je 0x1001eae2
mov ecx, 4
int 0x29
test eax, eax
js 0x1001eb37
push 0x10
call fcn.1008737f
mov ebx, eax
pop ecx
test ebx, ebx
je 0x1001eb0e
mov eax, dword [esp + 0x14]
mov dword [ebx + 4], eax
mov eax, 0xffff
mov dword [ebx], 0x1000184c
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
jmp 0x1001eb10
xor ebx, ebx
mov esi, dword [esp + 0x10]
test ebx, ebx
je 0x1001e974
and dword [esp + 0x14], 0
push ebx
push SysReAllocString
push esi
call fcn.10084ffa
cmp eax, 0xffffffff
jne 0x1001eb3b
jmp 0x1001e974
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x28]
push 0
push 0
lea eax, [esp + 0x34]
push eax
push 0
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x5c]
push eax
push ebx
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x1001e9eb
mov edi, dword [esp + 0x30]
and dword [esp + 0x1c], 0
mov dword [edi + 4], esi
xor esi, esi
xor ebx, ebx
lea ecx, [esp + 0x14]
call fcn.1000b34b
lea ecx, [esp + 0x20]
call fcn.1000b34b
cmp dword [esp + 0x18], 0
je 0x1001eb9f
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [esp + 0x18], 0
push 0
push 0x1001ec50
push esi
call fcn.100850d0
test ebx, ebx
je 0x1001ebcf
mov eax, dword [ebx]
mov edi, esp
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x1008c6d4]
mov ecx, ebx
call esi
cmp edi, esp
je 0x1001ebcf
mov ecx, 4
int 0x29
mov ecx, dword [esp + 0x254]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10087900
mov esp, ebp
pop ebp
ret 8
mov esi, dword [esp + 0x10]
jmp 0x1001eb75