Function at 0x1098a0f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x4038
call fcn.01077a20
mov eax, dword [0x10de03c]
and dword [ebp - 0x4024], 0
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4034], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x401c], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov dword [ebp - 0x4028], eax
xor eax, eax
mov esi, ecx
push edi
inc eax
cmp dword [esi], 0
mov edi, edx
mov dword [ebp - 0x4030], esi
mov dword [ebp - 0x4038], edi
mov dword [ebp - 0x402c], eax
jne 0x1098a83
push eax
mov ebx, 0x400
push ebx
call dword [sym.imp.msvcrt.dll_calloc]
and dword [ebp - 0x402c], 0
pop ecx
mov dword [esi], eax
pop ecx
mov dword [edi], ebx
mov eax, dword [edi]
mov ebx, dword [esi]
mov dword [ebp - 0x4010], eax
jmp 0x1098abf
cmp word [ebx], 0
je 0x1098ac3
push ebx
call dword [sym.imp.msvcrt.dll_wcslen]
mov ecx, WaitForSingleObject
sub ecx, eax
mov eax, dword [ebp - 0x4010]
lea eax, [eax + ecx*2]
push ebx
mov dword [ebp - 0x4010], eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
pop ecx
lea ebx, [ebx + eax*2 + 2]
test ebx, ebx
jne 0x1098a8f
mov eax, dword [ebp - 0x401c]
cmp dword [eax], 0
jne 0x1098af1
push 1
push 0x400
call dword [sym.imp.msvcrt.dll_calloc]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x401c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x4028]
mov dword [eax], 0x400
mov eax, dword [ebp - 0x401c]
mov eax, dword [eax]
test eax, eax
mov ecx, dword [ebp - 0x4028]
mov ecx, dword [ecx]
mov dword [ebp - 0x4008], eax
mov dword [ebp - 0x400c], ecx
je 0x1098b5e
jmp 0x1098b19
mov eax, dword [ebp - 0x4008]
cmp word [eax], 0
je 0x1098b5e
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
push dword [ebp - 0x4008]
mov ecx, WaitForSingleObject
sub ecx, eax
mov eax, dword [ebp - 0x400c]
lea eax, [eax + ecx*2]
mov dword [ebp - 0x400c], eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x4008]
lea eax, [ecx + eax*2 + 2]
test eax, eax
mov dword [ebp - 0x4008], eax
jne 0x1098b13
mov eax, reloc.KERNEL32.dll_GetVolumeNameForVolumeMountPointW
mov dword [ebp - 0x4020], eax
mov dword [ebp - 0x4014], eax
lea eax, [ebp - 0x4014]
push eax
lea eax, [ebp - 0x4004]
push eax
push 0
push 0
lea eax, [ebp - 0x4020]
push eax
lea eax, [ebp - 0x2004]
push eax
push dword [ebp - 0x4024]
push dword [ebp - 0x4034]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
inc dword [ebp - 0x4024]
test eax, eax
jne 0x1098d9f
cmp word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], ax
je 0x1098c18
mov eax, dword [esi]
test eax, eax
mov dword [ebp - 0x4018], eax
je 0x1098cc0
jmp 0x1098bd0
mov eax, dword [ebp - 0x4018]
cmp word [eax], 0
je 0x1098cc0
lea ecx, [ebp - 0x2004]
push ecx
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x1098b5e
push dword [ebp - 0x4018]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
mov ecx, dword [ebp - 0x4018]
lea eax, [ecx + eax*2 + 2]
test eax, eax
mov dword [ebp - 0x4018], eax
jne 0x1098bca
jmp 0x1098cc0
mov eax, dword [ebp - 0x4020]
add eax, eax
cmp eax, dword [ebp - 0x4010]
jb 0x1098c80
add dword [edi], 0x400
push dword [edi]
push dword [esi]
call dword [sym.imp.msvcrt.dll_realloc]
test eax, eax
pop ecx
pop ecx
mov dword [esi], eax
je 0x1098d9f
mov ebx, eax
mov eax, dword [edi]
mov dword [ebp - 0x4010], eax
cmp word [ebx], 0
je 0x1098c80
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
push ebx
call esi
mov ecx, WaitForSingleObject
sub ecx, eax
mov eax, dword [ebp - 0x4010]
lea eax, [eax + ecx*2]
push ebx
mov dword [ebp - 0x4010], eax
call esi
lea ebx, [ebx + eax*2 + 2]
test ebx, ebx
pop ecx
pop ecx
jne 0x1098c4e
lea eax, [ebp - 0x2004]
push eax
push ebx
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
mov ecx, dword [ebp - 0x4010]
lea ebx, [ebx + eax*2 + 2]
and word [ebx], 0
mov eax, WaitForSingleObject
add esp, 0xc
sub eax, dword [ebp - 0x4020]
lea eax, [ecx + eax*2]
mov dword [ebp - 0x4010], eax
mov eax, dword [ebp - 0x4014]
cmp eax, dword [ebp - 0x400c]
jb 0x1098d46
mov esi, dword [ebp - 0x4028]
add dword [esi], 0x400
push dword [esi]
mov edi, dword [ebp - 0x401c]
push dword [edi]
call dword [sym.imp.msvcrt.dll_realloc]
test eax, eax
pop ecx
pop ecx
mov dword [edi], eax
je 0x1098d9f
mov edi, eax
mov eax, dword [esi]
mov dword [ebp - 0x4008], edi
mov dword [ebp - 0x400c], eax
jmp 0x1098d0e
mov edi, dword [ebp - 0x4008]
cmp word [edi], 0
je 0x1098d46
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
push edi
call esi
mov ecx, WaitForSingleObject
sub ecx, eax
mov eax, dword [ebp - 0x400c]
lea eax, [eax + ecx*2]
push edi
mov dword [ebp - 0x400c], eax
call esi
lea edi, [edi + eax*2 + 2]
test edi, edi
pop ecx
pop ecx
mov dword [ebp - 0x4008], edi
jne 0x1098d08
mov ecx, dword [ebp - 0x4014]
mov edi, dword [ebp - 0x4008]
mov eax, ecx
shr ecx, 2
lea esi, [ebp - 0x4004]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x4014]
mov ecx, dword [ebp - 0x4008]
mov esi, dword [ebp - 0x4030]
mov edi, dword [ebp - 0x4038]
shr eax, 1
lea eax, [ecx + eax*2 - 2]
and word [eax], 0
mov dword [ebp - 0x4008], eax
mov eax, dword [ebp - 0x4014]
sub dword [ebp - 0x400c], eax
jmp 0x1098b5e
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075bbb
leave
ret 0xc