Function at 0x1004fef0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bc592
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x100f51d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x80
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.10097030
add esp, 0xc
lea edx, [ebp - 0x90]
mov ecx, esi
push 0x80
call fcn.1004f160
lea ecx, [ebp - 0x198]
mov edi, esi
mov eax, ecx
add esp, 4
mov edx, 0x104
sub edi, eax
lea esp, [esp]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x1004ff7b
mov al, byte [edi + ecx]
test al, al
je 0x1004ff7b
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x1004ff60
jmp 0x1004ff7f
test edx, edx
jne 0x1004ff80
dec ecx
mov byte [ecx], 0
lea eax, [ebp - 0x198]
mov edx, 0x104
mov edi, edi
cmp byte [eax], 0
je 0x1004ff9b
inc eax
sub edx, 1
jne 0x1004ff90
mov ecx, 0x104
mov edi, edx
mov eax, ecx
sub eax, edx
neg edi
sbb edi, edi
and edi, eax
test edx, edx
je 0x1004ffee
lea eax, [ebp - 0x198]
lea eax, [eax + edi]
sub ecx, edi
je 0x1004ffea
lea edi, [ebp - 0x90]
mov edx, SysReAllocString
sub edi, eax
lea ebx, [ebx]
test edx, edx
je 0x1004ffe6
mov bl, byte [edi + eax]
test bl, bl
je 0x1004ffe6
mov byte [eax], bl
dec edx
inc eax
sub ecx, 1
jne 0x1004ffd0
jmp 0x1004ffea
test ecx, ecx
jne 0x1004ffeb
dec eax
mov byte [eax], 0
push 0x100
lea eax, [ebp - 0x298]
mov dword [ebp - 0x2a4], 1
push 0
push eax
call fcn.10097030
add esp, 0xc
mov dword [ebp - 0x2a0], 0x100
lea ecx, [ebp - 0x29c]
call fcn.1004e5d0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2a0]
push ecx
lea ecx, [ebp - 0x298]
push ecx
lea ecx, [ebp - 0x2a4]
push ecx
push 0x100e6eb4
push dword [eax]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp - 0x29c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
test ecx, ecx
jg 0x10050099
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x100501dd
mov eax, dword [ecx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [eax + 4]
call edi
test ebx, ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_SHSetValueA]
jne 0x1005014f
lea eax, [ebp - 0x298]
lea ecx, [ecx]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x100500d0
test cl, cl
je 0x100500cc
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x100500d0
add eax, 2
add esi, 2
test cl, cl
jne 0x100500b0
xor eax, eax
jmp 0x100500d5
sbb eax, eax
or eax, 1
test eax, eax
je 0x1005014f
lea esi, [ebp - 0x298]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x100500e2
sub esi, ecx
lea ecx, [ebp - 0x29c]
call fcn.1004e5d0
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x298]
push esi
push ecx
push 1
push str.mid_old
push dword [eax]
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x29c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1005014f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x100501ea
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call edi
lea esi, [ebp - 0x198]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10050158
sub esi, ecx
lea ecx, [ebp - 0x29c]
call fcn.1004e5d0
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x198]
push esi
push ecx
push 1
push 0x100e6eb4
push dword [eax]
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x29c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100501c1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x100501f1
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10071699
mov esp, ebp
pop ebp
ret
call edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10050099
call esi
jmp 0x1005014f
call esi
jmp 0x100501c1