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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10059d1b
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x1006e1e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x231], 0
lea eax, [ebp - 0x240]
push eax
push 0x20019
push 0
push 0xaddc
mov ecx, dword [0x1007054c]
call fcn.1001bc00
push eax
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10024800
push 0xadf2
mov ecx, dword [0x1007054c]
call fcn.1001bc00
push eax
lea ecx, [ebp - 0x230]
call fcn.1002ae80
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x23c]
push ecx
push 0x2001f
push 0
lea ecx, [ebp - 0x230]
call fcn.1002a360
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100247e1
call fcn.1002dc5b
mov dword [ebp - 0x254], eax
push 0xa
push 0x10070554
mov edx, dword [ebp - 0x254]
push edx
call fcn.1003073c
add esp, 0xc
push 0
lea eax, [ebp - 0x268]
push eax
push 0
push 0x20019
push 0
push 0
push 0
push 0x10070554
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100247d4
mov edx, dword [ebp - 0x268]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x24c], 0x104
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x270], eax
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x24c]
push ecx
lea edx, [ebp - 0x218]
push edx
mov eax, dword [ebp - 0x270]
push eax
mov ecx, dword [ebp - 0x240]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x25c], eax
mov edx, dword [ebp - 0x248]
add edx, 1
mov dword [ebp - 0x248], edx
cmp dword [ebp - 0x25c], 0
jne 0x100247c2
lea eax, [ebp - 0x218]
mov dword [ebp - 0x238], eax
mov ecx, dword [ebp - 0x238]
add ecx, 2
mov dword [ebp - 0x26c], ecx
mov edx, dword [ebp - 0x238]
mov ax, word [edx]
mov word [ebp - 0x242], ax
add dword [ebp - 0x238], 2
cmp word [ebp - 0x242], 0
jne 0x100246c9
mov ecx, dword [ebp - 0x238]
sub ecx, dword [ebp - 0x26c]
sar ecx, 1
mov dword [ebp - 0x264], ecx
push 0x10070554
lea ecx, [ebp - 0x230]
call fcn.1002a360
push eax
push 0xae50
mov ecx, dword [0x1007054c]
call fcn.1001bc00
push eax
mov edx, dword [ebp - 0x264]
lea eax, [ebp + edx*2 - 0x218]
push eax
call fcn.100308d2
add esp, 0x10
lea ecx, [ebp - 0x260]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x218]
push edx
mov eax, dword [ebp - 0x240]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x258], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
cmp dword [ebp - 0x258], 0
jne 0x100247b3
push 0
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
mov ecx, dword [ebp - 0x260]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx edx, byte [ebp - 0x231]
test edx, edx
jne 0x1002479b
mov dword [ebp - 0x250], 1
jmp 0x100247a5
mov dword [ebp - 0x250], 0
mov al, byte [ebp - 0x250]
mov byte [ebp - 0x231], al
jmp 0x100247c2
mov dword [ebp - 0x24c], 0x104
jmp 0x10024656
push 0x10070554
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edx, dword [ebp - 0x23c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x240]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.1002a380
mov al, byte [ebp - 0x231]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002d4ad
mov esp, ebp
pop ebp
ret