Function at 0x1000a565
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, 0x104
xor ebx, ebx
push esi
push ebx
push dword [0x1003e140]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x28], ebx
call edi
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x1000a997
push esi
push ebx
push dword [0x1003e140]
call edi
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x1000a954
cmp dword [0x1003e170], ebx
je 0x1000a954
lea eax, [ebp - 0x38]
push eax
push dword [0x1003e224]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x1000a6c2
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x34]
push ebx
push ebx
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0xea
mov dword [ebp - 0x3c], eax
jne 0x1000a666
push dword [ebp - 0x18]
push ebx
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x1c]
push ebx
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
add dword [ebp - 0x24], esi
push dword [ebp - 0x24]
push ebx
push dword [0x1003e140]
call edi
push dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
push ebx
push dword [0x1003e140]
call edi
cmp dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], eax
je 0x1000a6b9
cmp dword [ebp - 0x1c], ebx
jne 0x1000a5ec
cmp dword [ebp - 0x3c], ebx
jne 0x1000a6b9
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.1000a400
test eax, eax
jne 0x1000a6b1
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
je 0x1000a69e
push eax
push ebx
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x20], 1
inc dword [ebp - 0x14]
jmp 0x1000a5ec
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 8]
push eax
call fcn.1000a17c
or dword [ebp - 0x20], eax
jmp 0x1000a7f2
cmp dword [ebp - 4], ebx
mov esi, dword [ebp - 0x10]
je 0x1000a6fc
cmp dword [ebp - 0x2c], esi
jae 0x1000a6f7
push dword [ebp - 4]
push ebx
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], ebx
jne 0x1000a714
push esi
push ebx
push dword [0x1003e140]
mov dword [ebp - 0x2c], esi
call edi
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1000a814
lea eax, [esi - 6]
push eax
mov eax, dword [ebp - 0x14]
add eax, 5
push eax
push dword [ebp - 4]
call sub.ntdll.dll_memcpy
mov eax, dword [ebp - 4]
add esp, 0xc
push ebx
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
mov byte [esi + eax - 6], bl
call fcn.10003a6b
test eax, eax
je 0x1000a746
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp - 0x24]
sub eax, esi
add eax, dword [ebp + 0xc]
push eax
push ebx
push dword [0x1003e140]
mov dword [ebp - 0x28], eax
call edi
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x1000a7d8
mov esi, dword [ebp - 0x14]
sub esi, dword [ebp - 8]
push esi
push dword [ebp - 8]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
cmp dword [ebp - 0x24], ebx
je 0x1000a78e
push dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
push dword [ebp - 0x3c]
add eax, esi
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
sub eax, esi
sub eax, ecx
push eax
mov eax, dword [ebp - 0x14]
add ecx, eax
mov eax, dword [ebp - 0x24]
add eax, esi
mov esi, dword [ebp - 0xc]
push ecx
add eax, esi
push eax
call sub.ntdll.dll_memcpy
mov eax, dword [ebp - 8]
add esp, 0xc
cmp eax, dword [ebp + 8]
je 0x1000a7c8
push eax
push ebx
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 8], esi
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x20], 1
cmp dword [ebp - 0x24], ebx
je 0x1000a7ed
push dword [ebp - 0x3c]
push ebx
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0xc], ebx
je 0x1000a814
lea eax, [ebp - 0x10]
push eax
push 0x1003f3b9
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.10013c11
add esp, 0x10
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x1000a6d7
lea eax, [ebp - 0x10]
push eax
push 0x1003f3c1
push dword [ebp + 0xc]
push dword [ebp - 8]
jmp 0x1000a92c
cmp dword [ebp - 4], ebx
mov esi, dword [ebp - 0x10]
je 0x1000a84d
cmp dword [ebp - 0x2c], esi
jae 0x1000a848
push dword [ebp - 4]
push ebx
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], ebx
jne 0x1000a865
push esi
push ebx
push dword [0x1003e140]
mov dword [ebp - 0x2c], esi
call edi
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1000a954
lea eax, [esi - 9]
push eax
mov eax, dword [ebp - 0x14]
add eax, 8
push eax
push dword [ebp - 4]
call sub.ntdll.dll_memcpy
mov eax, dword [ebp - 4]
add esp, 0xc
push 0x3b
push eax
mov byte [esi + eax - 9], bl
call dword [sym.imp.SHLWAPI.dll_StrChrA]
cmp eax, ebx
je 0x1000a8ad
lea ecx, [ebp - 0x3c]
push ecx
mov byte [eax], bl
push ebx
inc eax
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntExA]
test eax, eax
je 0x1000a8ad
push dword [ebp - 0x3c]
push dword [ebp - 4]
call fcn.1000601b
mov eax, dword [ebp + 0xc]
sub eax, esi
push eax
push ebx
push dword [0x1003e140]
mov dword [ebp - 0x28], eax
call edi
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x1000a93f
mov esi, dword [ebp - 0x14]
sub esi, dword [ebp - 8]
push esi
push dword [ebp - 8]
push eax
call sub.ntdll.dll_memcpy
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
sub eax, esi
sub eax, ecx
add esp, 0xc
push eax
mov eax, dword [ebp - 0x14]
add ecx, eax
mov eax, dword [ebp - 0xc]
push ecx
add esi, eax
push esi
call sub.ntdll.dll_memcpy
mov eax, dword [ebp - 8]
add esp, 0xc
cmp eax, dword [ebp + 8]
je 0x1000a90e
push eax
push ebx
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
push edx
push 0x1003f3c1
push eax
mov dword [ebp - 8], ecx
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x20], 1
push ecx
call fcn.10013c11
add esp, 0x10
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x1000a828
cmp dword [ebp - 4], ebx
je 0x1000a954
push dword [ebp - 4]
push ebx
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x18], ebx
je 0x1000a969
push dword [ebp - 0x18]
push ebx
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x1c], ebx
je 0x1000a97e
push dword [ebp - 0x1c]
push ebx
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x20], ebx
je 0x1000a997
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x1000a997
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 0x20]
pop edi
pop esi
pop ebx
leave
ret 0x10