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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c3c97
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x100e716c]
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 edi, ecx
mov edx, dword [edi + 4]
cmp dword [edx - 0xc], 0
jne 0x1006b455
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x1006b3f1
push 0x104
lea ecx, [edi + 4]
call fcn.1000d8d0
mov edx, dword [edi + 4]
cmp dword [edx - 8], 0x104
jl 0x1006b7c5
mov dword [edx - 0xc], 0x104
xor ecx, ecx
mov eax, dword [edi + 4]
push 0x104
push edx
mov word [eax + 0x208], cx
call fcn.10092dc0
mov eax, dword [edi + 4]
test eax, eax
jne 0x1006b427
xor ecx, ecx
jmp 0x1006b43d
push dword [eax - 8]
push eax
call fcn.100a011c
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x1006b7c5
mov eax, dword [edi + 4]
cmp ecx, dword [eax - 8]
jg 0x1006b7c5
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [edi + 4]
mov word [eax + ecx*2], dx
mov eax, dword [edi + 8]
lea esi, [edi + 8]
or ebx, 0xffffffff
cmp dword [eax - 0xc], 0
jne 0x1006b5ae
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1009cb00
add esp, 0xc
mov dword [ebp - 0x430], 1
lea eax, [ebp - 0x424]
mov dword [ebp - 0x42c], 0x208
lea ecx, [ebp - 0x425]
push eax
call fcn.100673c0
lea ecx, [ebp - 0x42c]
push ecx
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x430]
push ecx
push str.m2_origin
push dword [eax]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov edx, dword [ebp - 0x424]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1006b4e8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1006b4f1
sub ecx, edx
sar ecx, 1
jne 0x1006b581
push 0x104
lea eax, [ebp - 0x218]
push eax
call fcn.1008c9e0
lea esi, [ebp - 0x218]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1006b520
sub esi, ecx
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x425]
sar esi, 1
call fcn.100673c0
mov ecx, dword [eax]
lea eax, [esi + esi]
push eax
lea eax, [ebp - 0x218]
push eax
push 1
push str.m2_origin
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov edx, dword [ebp - 0x424]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1006b57e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea esi, [edi + 8]
lea edx, [ebp - 0x218]
lea ecx, [edx + 2]
nop word [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1006b590
sub edx, ecx
lea eax, [ebp - 0x218]
sar edx, 1
mov ecx, esi
push edx
push eax
call fcn.1000dd30
mov eax, dword [edi + 0x14]
cmp dword [eax - 0xc], 0
jne 0x1006b5fd
push dword [edi + 0x24]
lea eax, [ebp - 0x424]
push eax
call fcn.10065030
add esp, 8
push eax
lea ecx, [edi + 0x14]
mov dword [ebp - 4], 0
call fcn.10009760
mov edx, dword [ebp - 0x424]
mov eax, ebx
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1006b5fd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi + 0x18]
cmp dword [eax - 0xc], 0
jne 0x1006b64c
push dword [edi + 0x24]
lea eax, [ebp - 0x424]
push eax
call fcn.10064890
add esp, 8
push eax
lea ecx, [edi + 0x18]
mov dword [ebp - 4], 1
call fcn.10009760
mov edx, dword [ebp - 0x424]
mov eax, ebx
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1006b64c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi + 0xc]
cmp dword [eax - 0xc], 0
jne 0x1006b69b
push dword [edi + 0x24]
lea eax, [ebp - 0x424]
push eax
call fcn.10064c60
add esp, 8
push eax
lea ecx, [edi + 0xc]
mov dword [ebp - 4], 2
call fcn.10009760
mov edx, dword [ebp - 0x424]
mov eax, ebx
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1006b69b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi + 0x10]
add edi, 0x10
cmp dword [eax - 0xc], 0
jne 0x1006b7a9
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.1009cb00
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.1000d330
mov ecx, eax
test ecx, ecx
je 0x1006b7cf
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 3
push eax
lea ecx, [ebp - 0x42c]
call fcn.1000ca30
test al, al
jne 0x1006b742
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1006b720
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x42c]
call fcn.1000dd30
lea eax, [ebp - 0x42c]
mov dword [ebp - 4], 4
push edi
push eax
call fcn.10064070
mov edx, dword [ebp - 0x42c]
add esp, 8
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1006b77b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi]
test eax, eax
jne 0x1006b785
xor ecx, ecx
jmp 0x1006b797
push dword [eax - 8]
push eax
call fcn.100a011c
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x1006b7c5
mov eax, dword [edi]
cmp ecx, dword [eax - 8]
jg 0x1006b7c5
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [edi]
mov word [eax + ecx*2], dx
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.1007a7c6
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.1000ca10
push 0x80004005
call fcn.1000ca10
int3