Function at 0x1001da2
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x1009030]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov esi, 0x1fc
push esi
lea eax, [ebp - 0x200]
push ebx
push eax
mov dword [ebp - 0x434], edi
mov dword [ebp - 0x418], ebx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x414], ebx
mov dword [ebp - 0x410], ebx
mov dword [ebp - 0x40c], ebx
mov dword [ebp - 0x204], ebx
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x400]
push ebx
push eax
mov dword [ebp - 0x404], ebx
call sub.msvcrt.dll_memset
add esp, 0x18
cmp edi, ebx
jne 0x1001e2e
push 0x42b
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.01002fe3
xor eax, eax
jmp 0x100229b
mov esi, dword [edi + 4]
cmp esi, ebx
je 0x1001e5a
push esi
call fcn.010060a8
test eax, eax
jne 0x1001e5a
push esi
push 0x1001420
push 2
call fcn.01004372
add esp, 0xc
test eax, eax
je 0x1001e22
call fcn.01002f50
mov esi, eax
lea eax, [ebp - 0x414]
push eax
push 0x80000002
push esi
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
cmp eax, ebx
je 0x1001e74
push eax
jmp 0x1001e1c
lea eax, [ebp - 0x410]
push eax
push 0x20019
push ebx
push 0x10013c8
push dword [ebp - 0x414]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x1001ec0
mov ecx, eax
dec ecx
dec ecx
je 0x1001e9f
push eax
jmp 0x1001ea4
push 0x3f7
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.01002fe3
push dword [ebp - 0x414]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1001e27
xor eax, eax
cmp dword [edi + 0x10], ebx
mov dword [ebp - 0x438], ebx
setne al
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x408], ebx
mov dword [ebp - 0x418], 0x100
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x43c], ebx
mov dword [ebp - 0x424], eax
xor eax, eax
cmp dword [edi + 0x14], ebx
mov ecx, 0x200
setne al
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x204]
mov byte [eax], bl
inc eax
dec ecx
jne 0x1001f15
lea eax, [ebp - 0x444]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x204]
push eax
push ebx
push dword [ebp - 0x410]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
xor esi, esi
inc esi
cmp eax, ebx
jne 0x1002169
cmp dword [ebp - 0x424], esi
jne 0x1001f6e
push ebx
push esi
lea eax, [ebp - 0x204]
push eax
push dword [edi + 0x10]
call fcn.01003233
test eax, eax
jne 0x1001f6e
mov dword [ebp - 0x428], esi
cmp dword [ebp - 0x430], esi
jne 0x10020ee
cmp dword [ebp - 0x420], ebx
jne 0x10020ee
lea eax, [ebp - 0x40c]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x410]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x1002169
mov dword [ebp - 0x408], ebx
mov dword [ebp - 0x418], 0x100
mov ecx, 0x200
lea eax, [ebp - 0x404]
mov byte [eax], bl
inc eax
dec ecx
jne 0x1001fc9
lea eax, [ebp - 0x444]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x404]
push eax
push ebx
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebx
jne 0x1002061
push ebx
push esi
lea eax, [ebp - 0x404]
push eax
push dword [edi + 0x14]
call fcn.01003233
test eax, eax
je 0x100206f
inc dword [ebp - 0x408]
mov dword [ebp - 0x418], 0x100
mov ecx, 0x200
lea eax, [ebp - 0x404]
mov byte [eax], bl
inc eax
dec ecx
jne 0x1002028
lea eax, [ebp - 0x444]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x408]
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x1001ff4
jmp 0x1002075
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.01002fe3
jmp 0x1002075
mov dword [ebp - 0x420], esi
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x40c], ebx
mov dword [ebp - 0x408], ebx
cmp dword [ebp - 0x420], esi
jne 0x100210e
cmp dword [ebp - 0x424], ebx
je 0x1002180
cmp dword [ebp - 0x424], esi
jne 0x10020ca
cmp dword [ebp - 0x428], esi
jne 0x10020ca
push ebx
push esi
lea eax, [ebp - 0x204]
push eax
push dword [edi + 0x10]
call fcn.01003233
test eax, eax
je 0x1002180
lea eax, [ebp - 0x204]
push eax
push ebx
push 0xa1
call fcn.01004d9d
push eax
push esi
call fcn.01004372
add esp, 0xc
mov dword [ebp - 0x43c], esi
jmp 0x100210e
cmp dword [ebp - 0x428], esi
jne 0x100210e
cmp dword [ebp - 0x430], ebx
je 0x10022cb
cmp dword [ebp - 0x43c], esi
je 0x10021b7
inc dword [ebp - 0x438]
mov dword [ebp - 0x418], 0x100
mov ecx, 0x200
lea eax, [ebp - 0x204]
mov byte [eax], bl
inc eax
dec ecx
jne 0x1002129
lea eax, [ebp - 0x444]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x438]
push dword [ebp - 0x410]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x1001f43
jmp 0x1002233
push eax
mov dword [ebp - 0x408], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.01002fe3
jmp 0x1002233
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x204]
push eax
push 0x10013c8
push 0x10013b4
push 3
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x42c], ebx
call fcn.01004372
add esp, 0x14
test eax, eax
jne 0x10021bf
call fcn.01002fe3
mov dword [ebp - 0x408], esi
jmp 0x1002233
call fcn.01002f50
lea ecx, [ebp - 0x40c]
push ecx
push esi
push ebx
push eax
push dword [ebp - 0x414]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x10021e7
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10021b2
push ebx
push ebx
push ebx
push ebx
push 0x100121c
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, ebx
je 0x10022ac
cmp edi, 2
je 0x10022ac
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.01002fe3
mov dword [ebp - 0x408], esi
mov edi, dword [ebp - 0x434]
push dword [ebp - 0x410]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x410], ebx
cmp dword [ebp - 0x408], esi
je 0x1001eaf
cmp dword [ebp - 0x41c], ebx
jne 0x10023bd
cmp dword [ebp - 0x424], esi
jne 0x1002388
cmp dword [ebp - 0x428], ebx
jne 0x10022dc
push dword [edi + 0x10]
push ebx
push 0x99
call fcn.01004d9d
push eax
push esi
call fcn.01004372
add esp, 0xc
push dword [ebp - 0x414]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x41c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01002999
leave
ret 4
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
jne 0x100222d
mov dword [ebp - 0x42c], esi
jmp 0x100222d
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x41c], esi
jmp 0x1002233
cmp dword [ebp - 0x430], esi
jne 0x1002289
cmp dword [ebp - 0x428], esi
jne 0x1002289
cmp dword [ebp - 0x420], ebx
jne 0x1002289
push dword [edi + 0x10]
push 0x10013c8
push 0x10013a8
push 2
call fcn.01004372
add esp, 0x10
test eax, eax
je 0x1001e22
call fcn.01002f50
lea ecx, [ebp - 0x410]
push ecx
push 0x20006
push ebx
push eax
push dword [ebp - 0x414]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x1001e96
push dword [edi + 0x14]
push dword [ebp - 0x410]
call fcn.01001635
test eax, eax
jne 0x1002367
push dword [ebp - 0x414]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x410]
call esi
jmp 0x1001e27
push dword [ebp - 0x40c]
mov dword [ebp - 0x41c], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x410]
call esi
jmp 0x1002289
cmp dword [ebp - 0x424], ebx
jne 0x1002289
cmp dword [ebp - 0x430], esi
jne 0x1002289
cmp dword [ebp - 0x420], ebx
jne 0x1002289
push ebx
push 0xa0
call fcn.01004d9d
push eax
call fcn.01002f7c
cmp dword [ebp - 0x41c], esi
jne 0x1002289
cmp dword [ebp - 0x42c], ebx
jne 0x1002289
push ebx
push 0xa6
call fcn.01004d9d
push eax
call fcn.01002f7c
jmp 0x1001e27