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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007063b
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x100871e0]
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 0x550a
mov ecx, dword [0x1008954c]
call fcn.1002ab40
push eax
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10035188
push 0x5543
mov ecx, dword [0x1008954c]
call fcn.1002ab40
push eax
lea ecx, [ebp - 0x230]
call fcn.1003d140
mov dword [ebp - 4], 0
cmp dword [ebp - 0x21c], 8
jb 0x10034f0a
mov ecx, dword [ebp - 0x27c]
mov dword [ebp - 0x250], ecx
mov edx, dword [ebp - 0x230]
mov dword [ebp - 0x250], edx
jmp 0x10034f16
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 0x10035165
call fcn.10042a6b
mov dword [ebp - 0x25c], eax
push 0xa
push 0x10089554
mov eax, dword [ebp - 0x25c]
push eax
call fcn.10045ad2
add esp, 0xc
push 0
lea ecx, [ebp - 0x278]
push ecx
push 0
push 0x20019
push 0
push 0
push 0
push 0x10089554
mov edx, dword [ebp - 0x24c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10035158
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 0x10035146
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 0x10035023
mov edx, dword [ebp - 0x238]
sub edx, dword [ebp - 0x268]
sar edx, 1
mov dword [ebp - 0x270], edx
cmp dword [ebp - 0x21c], 8
jb 0x1003507b
mov eax, dword [ebp - 0x280]
mov dword [ebp - 0x23c], eax
mov ecx, dword [ebp - 0x230]
mov dword [ebp - 0x23c], ecx
jmp 0x10035087
lea edx, [ebp - 0x230]
mov dword [ebp - 0x23c], edx
push 0x10089554
mov eax, dword [ebp - 0x23c]
push eax
push 0x557a
mov ecx, dword [0x1008954c]
call fcn.1002ab40
push eax
mov ecx, dword [ebp - 0x270]
lea edx, [ebp + ecx*2 - 0x218]
push edx
call fcn.10043d0a
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 0x10035137
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 0x1003511f
mov dword [ebp - 0x254], 1
jmp 0x10035129
mov dword [ebp - 0x254], 0
mov dl, byte [ebp - 0x254]
mov byte [ebp - 0x231], dl
jmp 0x10035146
mov dword [ebp - 0x258], 0x104
jmp 0x10034fb0
push 0x10089554
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.1003cd30
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.100422b3
mov esp, ebp
pop ebp
ret