Function at 0x1009d3a0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1022b6b0
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x102db080]
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 ebx, ecx
mov edi, dword [ebx + 4]
mov eax, dword [ebp + 8]
or edi, 0x2001f
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 0
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x228], 0
push ecx
push edi
push 0
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [ebp - 0x220]
test esi, esi
jne 0x1009d458
xor esi, esi
test eax, eax
je 0x1009d440
push eax
call ecx
mov ecx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [ebp - 0x228]
and edi, 0x300
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], edi
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x1009d473
test eax, eax
je 0x1009d612
push eax
call ecx
jmp 0x1009d612
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [ebp - 0x230]
push ecx
push 0
push 0
push 0
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x224], 0x100
push ecx
lea ecx, [ebp - 0x210]
push ecx
push 0
push eax
call edi
test eax, eax
jne 0x1009d4fb
nop word [eax + eax]
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x220]
call fcn.1009d3a0
mov esi, eax
test esi, esi
jne 0x1009d550
lea eax, [ebp - 0x230]
mov dword [ebp - 0x224], 0x100
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 0x220]
call edi
test eax, eax
je 0x1009d4b0
mov eax, dword [ebp - 0x220]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x1009d518
push eax
call edi
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov esi, dword [ebx + 8]
mov dword [ebp - 4], 1
test esi, esi
je 0x1009d59b
cmp dword [esi], 0
mov ebx, dword [ebx]
je 0x1009d58c
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x1009d569
mov esi, 1
jmp 0x1009d605
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x1009d612
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1009d60f
push str.RegDeleteKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1009d546
push 0
push dword [esi]
push 0
push 0
push dword [ebp - 0x214]
push ebx
call eax
jmp 0x1009d603
cmp dword [esi + 4], 0
je 0x1009d546
push dword [ebp - 0x214]
push ebx
jmp 0x1009d5fd
cmp byte [0x102e8218], 0
jne 0x1009d5db
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1009d5cd
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x102e8214], eax
mov byte [0x102e8218], 1
jmp 0x1009d5e0
mov eax, dword [0x102e8214]
mov byte [0x102e8218], 1
jmp 0x1009d5e0
mov eax, dword [0x102e8214]
test eax, eax
je 0x1009d5f5
push 0
push dword [ebx + 4]
push dword [ebp - 0x214]
push dword [ebx]
call eax
jmp 0x1009d603
push dword [ebp - 0x214]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x1009d612
push eax
call edi
mov eax, esi
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.100b9f43
mov esp, ebp
pop ebp
ret 4