Function at 0x10009220
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1001a446
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x10020040]
xor eax, esp
mov dword [esp + 0x288], eax
push ebx
push esi
push edi
mov eax, dword [0x10020040]
xor eax, esp
push eax
lea eax, [esp + 0x2a0]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x34], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 0x44], edx
mov edx, dword [0x100212ec]
mov dword [esp + 0x38], eax
mov eax, dword [edx + 0xc]
mov dword [esp + 0x3c], ecx
mov ecx, 0x100212ec
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
xor ebx, ebx
lea esi, [esp + 0x14]
mov dword [esp + 0x2a8], ebx
call fcn.10009750
mov byte [esp + 0x2a8], 1
mov ecx, dword [eax]
push ecx
push str._sParametersRamDisk
lea edi, [esp + 0x20]
call fcn.10003c80
mov byte [esp + 0x2b0], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100092ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push ebx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x100094b4
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x24]
push eax
push 0
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x24]
push str.Enable
push ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0x40
lea ecx, [esp + 0x50]
push 0
push ecx
call fcn.1000f780
add esp, 0xc
push str.DriveLetter
lea edx, [esp + 0x30]
push edx
lea edi, [esp + 0x1c]
lea esi, [esp + 0x54]
mov dword [esp + 0x1c], 0x20
call fcn.10008df0
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push str.Size
mov edi, 4
push ebx
mov dword [esp + 0x38], 0
mov dword [esp + 0x2c], edi
call esi
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x50]
push edx
push 0
push str.WriteBack
push ebx
mov dword [esp + 0x40], 0
mov dword [esp + 0x34], edi
call esi
push 0x208
lea eax, [esp + 0x90]
push 0
push eax
call fcn.1000f780
add esp, 0xc
push str.FilePath
lea ecx, [esp + 0x30]
push ecx
lea edi, [esp + 0x1c]
lea esi, [esp + 0x94]
mov dword [esp + 0x1c], 0x104
call fcn.10008df0
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x20]
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [eax], edx
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x4c]
push eax
mov dword [edx], ecx
call esi
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x28]
mov dword [ecx], eax
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x8c]
push ecx
mov dword [eax], edx
call esi
mov edx, dword [esp + 0x3c]
mov dword [edx], eax
test ebx, ebx
je 0x10009461
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x2a8], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000948c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x2a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x288]
xor ecx, esp
call fcn.1000e9b7
mov esp, ebp
pop ebp
ret 0x18
jle 0x100094c0
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
lea eax, [esi - 0x10]
mov dword [esp + 0x2a8], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100094e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
jmp 0x1000948e