Function at 0x1098881
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x4038
call fcn.01077950
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 0x10988f5
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 0x1098931
cmp word [ebx], 0
je 0x1098935
push ebx
call dword [sym.imp.msvcrt.dll_wcslen]
mov ecx, 0x7fffffff
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 0x1098901
mov eax, dword [ebp - 0x401c]
cmp dword [eax], 0
jne 0x1098963
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 0x10989d0
jmp 0x109898b
mov eax, dword [ebp - 0x4008]
cmp word [eax], 0
je 0x10989d0
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
push dword [ebp - 0x4008]
mov ecx, 0x7fffffff
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 0x1098985
mov eax, 0x1000
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 0x1098c11
cmp word [ebp - 0x402c], ax
je 0x1098a8a
mov eax, dword [esi]
test eax, eax
mov dword [ebp - 0x4018], eax
je 0x1098b32
jmp 0x1098a42
mov eax, dword [ebp - 0x4018]
cmp word [eax], 0
je 0x1098b32
lea ecx, [ebp - 0x2004]
push ecx
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x10989d0
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 0x1098a3c
jmp 0x1098b32
mov eax, dword [ebp - 0x4020]
add eax, eax
cmp eax, dword [ebp - 0x4010]
jb 0x1098af2
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 0x1098c11
mov ebx, eax
mov eax, dword [edi]
mov dword [ebp - 0x4010], eax
cmp word [ebx], 0
je 0x1098af2
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
push ebx
call esi
mov ecx, 0x7fffffff
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 0x1098ac0
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, 0x7fffffff
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 0x1098bb8
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 0x1098c11
mov edi, eax
mov eax, dword [esi]
mov dword [ebp - 0x4008], edi
mov dword [ebp - 0x400c], eax
jmp 0x1098b80
mov edi, dword [ebp - 0x4008]
cmp word [edi], 0
je 0x1098bb8
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
push edi
call esi
mov ecx, 0x7fffffff
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 0x1098b7a
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 0x10989d0
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075aef
leave
ret 0xc