Function at 0x10008f70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003ba91
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x1004f0a8]
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 eax, dword [0x10050de8]
mov dword [ebp - 0x13c], ecx
mov dword [ebp - 0x138], eax
lea ecx, [ebp - 0x138]
push ecx
mov dword [ebp - 4], 0
call fcn.10001580
add esp, 4
test eax, eax
je 0x1000915f
mov edx, dword [ebp - 0x138]
cmp dword [edx - 8], 0
je 0x1000915f
push 0
lea ecx, [ebp - 0x138]
call fcn.100020c0
mov ebx, eax
test ebx, ebx
jne 0x10008ff4
xor ecx, ecx
jmp 0x10009035
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x10009031
lea edi, [eax + eax]
mov eax, edi
call fcn.1000c680
mov esi, esp
test esi, esi
je 0x10009031
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x10009033
xor eax, eax
mov ecx, eax
mov eax, ecx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
lea esi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10009050
sub eax, esi
push eax
push ecx
lea ecx, [ebp - 0x2c]
call fcn.10001ad0
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 1
call fcn.10002010
mov eax, dword [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x138]
mov dword [ecx - 8], eax
mov ecx, dword [ebp - 0x138]
xor edx, edx
mov word [ecx + eax*2], dx
lea edx, [ebp - 0x2c]
push edx
call fcn.100207c0
add esp, 4
mov ecx, 0x100510c4
call fcn.1001b4a0
lea ecx, [ebp - 0xac]
push 3
mov dword [ebp - 0xb0], ecx
push eax
lea ecx, [ebp - 0xb0]
call fcn.100061d0
mov ecx, 0x10051094
mov byte [ebp - 4], 2
call fcn.1001b4a0
push 3
lea edx, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x134], edx
call fcn.100061d0
mov eax, dword [ebp - 0x2c]
mov esi, 0x10
cmp dword [ebp - 0x18], esi
jae 0x100090fc
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0xb0]
push ecx
push eax
mov eax, dword [ebp - 0x134]
push 1
push edx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov eax, dword [ebp - 0x134]
lea ecx, [ebp - 0x130]
cmp eax, ecx
je 0x10009135
push eax
call fcn.1000c71e
add esp, 4
mov eax, dword [ebp - 0xb0]
lea edx, [ebp - 0xac]
cmp eax, edx
je 0x1000914e
push eax
call fcn.1000c71e
add esp, 4
cmp dword [ebp - 0x18], esi
jb 0x1000915f
mov eax, dword [ebp - 0x2c]
push eax
call fcn.1000ad98
add esp, 4
mov eax, dword [ebp - 0x138]
lea ecx, [eax - 0xc]
mov dword [ebp - 4], 0xffffffff
cmp ecx, dword [0x10050de4]
je 0x10009197
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10009197
mov eax, dword [ebp - 0x138]
add eax, 0xfffffff4
push eax
call fcn.1000b015
add esp, 4
mov edi, dword [ebp - 0x13c]
mov edx, dword [edi + 0x125c]
cmp dword [edx - 8], 0
je 0x100093a8
push 0
lea ecx, [edi + 0x125c]
call fcn.100020c0
mov ebx, eax
test ebx, ebx
jne 0x100091c4
xor ecx, ecx
jmp 0x1000920e
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x1000920a
add eax, eax
mov dword [ebp - 0x13c], eax
call fcn.1000c680
mov esi, esp
test esi, esi
je 0x1000920a
mov eax, dword [ebp - 0x13c]
push 0
push 0
push eax
push esi
push 0xffffffffffffffff
push ebx
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x1000920c
xor eax, eax
mov ecx, eax
mov eax, ecx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10009225
sub eax, esi
push eax
push ecx
lea ecx, [ebp - 0x2c]
call fcn.10001ad0
mov eax, dword [edi + 0x125c]
cmp dword [eax - 0xc], 1
lea esi, [eax - 0xc]
mov dword [ebp - 4], 3
jle 0x100092bb
add eax, 0xfffffff4
cmp eax, dword [0x10050de4]
je 0x10009282
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10009276
mov eax, dword [edi + 0x125c]
sub eax, 0xc
push eax
call fcn.1000b015
add esp, 4
mov ecx, dword [0x10050de8]
mov dword [edi + 0x125c], ecx
mov edx, dword [esi + 4]
push edx
lea ecx, [edi + 0x125c]
call fcn.10002220
test eax, eax
je 0x100092bb
mov ecx, dword [edi + 0x125c]
mov eax, dword [esi + 4]
mov edx, dword [ecx - 4]
lea eax, [eax + eax + 2]
lea edx, [edx + edx + 2]
cmp edx, eax
jb 0x100092bb
push eax
add esi, 0xc
push esi
push ecx
call fcn.1000b030
add esp, 0xc
mov eax, dword [edi + 0x125c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [edi + 0x125c]
mov dword [ecx - 8], eax
mov edx, dword [edi + 0x125c]
xor ecx, ecx
mov word [edx + eax*2], cx
lea edx, [ebp - 0x2c]
push edx
call fcn.100207c0
add esp, 4
mov ecx, 0x100510d4
call fcn.1001b4a0
lea ecx, [ebp - 0x130]
push 3
mov dword [ebp - 0x134], ecx
push eax
lea ecx, [ebp - 0x134]
call fcn.100061d0
mov ecx, 0x10051094
mov byte [ebp - 4], 4
call fcn.1001b4a0
push 3
lea edx, [ebp - 0xac]
push eax
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0xb0], edx
call fcn.100061d0
mov eax, dword [ebp - 0x2c]
mov esi, 0x10
cmp dword [ebp - 0x18], esi
jae 0x10009345
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x134]
push ecx
push eax
mov eax, dword [ebp - 0xb0]
push 1
push edx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov eax, dword [ebp - 0xb0]
lea ecx, [ebp - 0xac]
cmp eax, ecx
je 0x1000937e
push eax
call fcn.1000c71e
add esp, 4
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
cmp eax, edx
je 0x10009397
push eax
call fcn.1000c71e
add esp, 4
cmp dword [ebp - 0x18], esi
jb 0x100093a8
mov eax, dword [ebp - 0x2c]
push eax
call fcn.1000ad98
add esp, 4
mov eax, 1
lea esp, [ebp - 0x14c]
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.1000ae1e
mov esp, ebp
pop ebp
ret