Function at 0x1003def
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [ebp + 8], ebx
je 0x10046e5
cmp dword [ebp + 0xc], ebx
je 0x10046e5
cmp dword [ebp + 0x10], ebx
je 0x10046e5
cmp dword [ebp + 0x14], ebx
je 0x10046e5
cmp dword [ebp + 0x18], ebx
je 0x10046e5
mov esi, dword [sym.imp.ADVAPI32.dll_RegGetValueW]
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push pe_overlay
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call esi
mov edi, eax
cmp edi, ebx
jne 0x1006d04
mov eax, dword [ebp - 4]
mov ecx, eax
and ecx, 1
add eax, ecx
mov dword [ebp - 4], eax
add eax, 2
push eax
call fcn.010026af
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x1006d35
push eax
call fcn.01002085
mov ecx, dword [ebp - 8]
cmp eax, ebx
je 0x1003e8a
mov byte [ecx], bl
inc ecx
dec eax
jne 0x1003e84
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
push 0x1000ffff
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call esi
mov edi, eax
cmp edi, ebx
jne 0x1006d39
mov edi, dword [ebp + 0x18]
mov esi, dword [ebp + 0x14]
cmp dword [edi + 8], ebx
jne 0x1003ef9
test byte [esi + 0x4c], 4
je 0x1003ef9
push esi
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp - 8]
call fcn.0100569b
cmp eax, 1
je 0x1006d71
cmp eax, ebx
jne 0x1003ef9
push 0x490
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
lea eax, [ebp - 8]
push eax
call fcn.01002024
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x14
xor eax, eax
inc eax
cmp dword [edi + 0xc], eax
je 0x1006d79
cmp dword [edi], eax
jne 0x1003f27
push dword [ebp + 0xc]
push 0x1003c64
push eax
push eax
call dword [sym.imp.msvcrt.dll___iob_func]
add eax, 0x20
push eax
call fcn.01004105
add esp, 0x14
mov dword [edi], ebx
cmp dword [esi + 0x44], ebx
jne 0x10046dd
cmp dword [esi + 0x54], ebx
jne 0x10046dd
xor eax, eax
cmp dword [esi + 0x24], 1
push 9
pop ecx
lea edi, [ebp - 0x30]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x2c], eax
lea eax, [esi + 0x30]
mov dword [ebp - 0x14], 0x1003f8c
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], 4
mov dword [ebp - 0x10], eax
je 0x1006d8e
lea eax, [ebp - 0x30]
push eax
call fcn.01003f9b
jmp 0x1003ee5
inc dword [edi + 0x10]
jmp 0x1003f39
push 0x57
jmp 0x1006d97
cmp edi, 2
jne 0x1006d98
push ebx
push dword [ebp + 0x10]
call fcn.0100243e
test eax, eax
jne 0x1006d98
push ebx
push ebx
push 0x1f6
call fcn.0100339e
push eax
call fcn.0100243e
lea eax, [eax + eax + 2]
jmp 0x1003e59
push 0xe
jmp 0x1006d97
cmp edi, 2
jne 0x1006d98
push ebx
push dword [ebp + 0x10]
call fcn.0100243e
test eax, eax
jne 0x1006d98
mov eax, dword [ebp - 4]
shr eax, 1
push eax
push ebx
push 0x1f6
mov dword [ebp - 0xc], 1
call fcn.0100339e
push eax
push dword [ebp - 8]
call fcn.010022bd
jmp 0x1003ead
inc dword [edi + 0x10]
jmp 0x1003ed6
cmp dword [esi + 0x44], ebx
jne 0x1006d86
cmp dword [esi + 0x54], ebx
jne 0x1006d86
inc dword [edi + 0x10]
mov dword [edi + 0xc], ebx
jmp 0x1003f05
or dword [ebp - 0x1c], 0x20
jmp 0x1003f7c
pop edi
push edi
call fcn.01003151
jmp 0x1003ee7