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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b526b
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x100e01f0]
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 0x9c89
mov ecx, dword [0x100e28bc]
call fcn.1002c720
push eax
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10037302
push 0x9c95
mov ecx, dword [0x100e28bc]
call fcn.1002c720
push eax
lea ecx, [ebp - 0x230]
call fcn.1003f440
mov dword [ebp - 4], 0
push 0
push 0
call dword [sym.imp.USER32.dll_GetWindow]
cmp dword [ebp - 0x21c], 8
jb 0x10037084
mov ecx, dword [ebp - 0x27c]
mov dword [ebp - 0x250], ecx
mov edx, dword [ebp - 0x230]
mov dword [ebp - 0x250], edx
jmp 0x10037090
lea eax, [ebp - 0x230]
mov dword [ebp - 0x250], eax
lea ecx, [ebp - 0x24c]
push ecx
push 0x2001f
push 0
mov edx, dword [ebp - 0x250]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100372df
call fcn.1007b2eb
mov dword [ebp - 0x25c], eax
push 0xa
push 0x100e28c4
mov eax, dword [ebp - 0x25c]
push eax
call fcn.1007e3c8
add esp, 0xc
push 0
lea ecx, [ebp - 0x278]
push ecx
push 0
push 0x20019
push 0
push 0
push 0
push 0x100e28c4
mov edx, dword [ebp - 0x24c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100372d2
mov eax, dword [ebp - 0x278]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x258], 0x104
mov ecx, dword [ebp - 0x244]
mov dword [ebp - 0x26c], ecx
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x258]
push edx
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x26c]
push ecx
mov edx, dword [ebp - 0x240]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x264], eax
mov eax, dword [ebp - 0x244]
add eax, 1
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x264], 0
jne 0x100372c0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x238], ecx
mov edx, dword [ebp - 0x238]
add edx, 2
mov dword [ebp - 0x268], edx
mov eax, dword [ebp - 0x238]
mov cx, word [eax]
mov word [ebp - 0x246], cx
add dword [ebp - 0x238], 2
cmp word [ebp - 0x246], 0
jne 0x1003719d
mov edx, dword [ebp - 0x238]
sub edx, dword [ebp - 0x268]
sar edx, 1
mov dword [ebp - 0x270], edx
cmp dword [ebp - 0x21c], 8
jb 0x100371f5
mov eax, dword [ebp - 0x280]
mov dword [ebp - 0x23c], eax
mov ecx, dword [ebp - 0x230]
mov dword [ebp - 0x23c], ecx
jmp 0x10037201
lea edx, [ebp - 0x230]
mov dword [ebp - 0x23c], edx
push 0x100e28c4
mov eax, dword [ebp - 0x23c]
push eax
push 0x9cdc
mov ecx, dword [0x100e28bc]
call fcn.1002c720
push eax
mov ecx, dword [ebp - 0x270]
lea edx, [ebp + ecx*2 - 0x218]
push edx
call fcn.1007c560
add esp, 0x10
lea eax, [ebp - 0x260]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp - 0x240]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x274], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
cmp dword [ebp - 0x274], 0
jne 0x100372b1
push 0
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
mov eax, dword [ebp - 0x260]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx ecx, byte [ebp - 0x231]
test ecx, ecx
jne 0x10037299
mov dword [ebp - 0x254], 1
jmp 0x100372a3
mov dword [ebp - 0x254], 0
mov dl, byte [ebp - 0x254]
mov byte [ebp - 0x231], dl
jmp 0x100372c0
mov dword [ebp - 0x258], 0x104
jmp 0x1003712a
push 0x100e28c4
mov eax, dword [ebp - 0x24c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp - 0x24c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x240]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x230]
call fcn.1003f030
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.1007ab33
mov esp, ebp
pop ebp
ret