Function at 0x100094f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1001a408
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x10020040]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
cmp dword [ebp + 0x18], 1
jne 0x1000953c
mov eax, 0x80070057
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
xor ebx, ebx
cmp dword [ebp + 0x1c], ebx
jne 0x10009522
mov eax, dword [0x100212ec]
mov edx, dword [eax + 0xc]
mov ecx, 0x100212ec
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
lea esi, [esp + 0x18]
mov dword [esp + 0x30], ebx
call fcn.10009750
mov byte [esp + 0x30], 1
mov eax, dword [eax]
push eax
push str._sParametersRamDisk
lea edi, [esp + 0x1c]
call fcn.10003c80
mov byte [esp + 0x38], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100095a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x30], 2
mov edi, dword [esp + 0x14]
mov ecx, edi
lea esi, [esp + 0x1c]
call fcn.10008da0
cmp eax, 2
jne 0x10009627
mov edx, edi
call fcn.10008d40
cmp eax, ebx
je 0x1000962b
jle 0x100095db
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x100095ec
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10009610
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, ebx
jne 0x100095cf
mov ecx, dword [ebp + 0xc]
push 4
lea edx, [esp + 0x1c]
push edx
push 4
push ebx
mov ebx, dword [esp + 0x2c]
push str.Enable
push ebx
mov dword [esp + 0x30], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x10009665
jle 0x1000965c
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test ebx, ebx
je 0x100095ec
push ebx
jmp 0x100095e6
push 1
lea ecx, [ebp + 0x14]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov esi, eax
test esi, esi
jne 0x10009681
push 0x8007000e
call fcn.10001000
push str.DriveLetter
lea edx, [esp + 0x20]
push edx
call fcn.10008e70
push esi
mov edi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
je 0x100096d4
jle 0x100096ab
and edi, 0xffff
or edi, 0x80070000
lea esi, [esp + 0x1c]
call fcn.10008d20
lea eax, [esp + 0x14]
call fcn.100022a0
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea ecx, [esp + 0x1c]
push ecx
push 4
push 0
push str.Size
push ebx
mov dword [esp + 0x30], eax
call esi
test eax, eax
je 0x10009708
jle 0x10009704
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x100096ab
mov edx, dword [ebp + 0x18]
push 4
lea eax, [esp + 0x1c]
push eax
push 4
push 0
push str.WriteBack
push ebx
mov dword [esp + 0x30], edx
call esi
test eax, eax
jne 0x100096f8
lea esi, [esp + 0x1c]
call fcn.10008d20
lea eax, [esp + 0x14]
call fcn.100022a0
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18