Function at 0x4035b0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43003d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa3c
mov eax, ecx
push ebx
mov dword [ebp - 0x18], eax
xor ebx, ebx
push esi
mov eax, dword [eax + 8]
sub eax, 0x10
mov dword [ebp - 0x1c], ebx
push edi
push eax
call fcn.004025a0
lea esi, [eax + 0x10]
mov dword [ebp - 0x2c], esi
mov eax, str.Tasks
mov dword [ebp - 4], ebx
mov edi, dword [esi - 0xc]
sub eax, esi
sar eax, 1
push 6
push str.Tasks
mov dword [ebp - 0x10], str.Tasks
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], edi
call fcn.00423107
mov ecx, 0x7fffffff
mov dword [ebp - 0x14], eax
sub ecx, eax
add esp, 0xc
cmp ecx, edi
jl 0x4038c3
add edi, eax
js 0x4038c3
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x40364f
push edi
lea ecx, [ebp - 0x2c]
call fcn.00401bb0
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
cmp eax, edx
ja 0x40365f
lea eax, [esi + eax*2]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
lea eax, [esi + edx*2]
add ecx, ecx
je 0x40369c
test eax, eax
je 0x40368c
mov edx, dword [ebp - 0x10]
push ecx
test edx, edx
je 0x403681
push edx
push eax
call fcn.0041e260
add esp, 0xc
jmp 0x40369c
push 0
push eax
call fcn.0041e7e0
add esp, 0xc
call fcn.00420096
mov dword [eax], 0x16
call fcn.004205b4
cmp edi, dword [esi - 8]
jg 0x4038c3
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x28]
push eax
push 0
push 0x20019
push 0
push 0
push 0
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4036e0
mov eax, dword [ebp - 0x18]
xor ebx, ebx
mov byte [eax], 0
jmp 0x403891
lea eax, [ebp - 0x40]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], 0x104
push eax
lea eax, [ebp - 0xa48]
mov dword [ebp - 0x20], 0x400
push eax
push 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x248]
push eax
push 0
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x403888
push 0x40
call fcn.0041ca91
add esp, 4
mov edi, eax
mov dword [ebp - 0x14], edi
call fcn.00401ec0
test eax, eax
je 0x4038cd
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
call fcn.00401ec0
mov ecx, eax
test ecx, ecx
je 0x4038cd
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 4], eax
call fcn.00401ec0
mov ecx, eax
test ecx, ecx
je 0x4038cd
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 8], eax
call fcn.00401ec0
mov ecx, eax
test ecx, ecx
je 0x4038cd
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x30], eax
call fcn.00401ec0
mov ecx, eax
test ecx, ecx
je 0x4038cd
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x34], eax
call fcn.00401ec0
mov ecx, eax
test ecx, ecx
je 0x4038cd
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebx, dword [ebp - 0x18]
add eax, 0x10
mov dword [edi + 0x38], eax
mov word [edi + 0xc], 0
mov dword [ebp - 0x14], edi
mov eax, dword [ebx + 4]
cmp dword [eax - 4], 1
jle 0x4037ee
push dword [eax - 0xc]
lea ecx, [ebx + 4]
call fcn.00401ab0
lea eax, [ebp - 0x248]
mov ecx, edi
push eax
push dword [ebx + 4]
call fcn.00403170
test al, al
je 0x403832
mov ecx, ebx
add ecx, 0xc
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x40381f
mov ebx, dword [ebp - 0x1c]
mov dword [eax], edi
add dword [ecx + 4], 4
inc ebx
mov dword [ebp - 0x1c], ebx
jmp 0x403835
lea edx, [ebp - 0x14]
push edx
push eax
call fcn.00403d60
mov ebx, dword [ebp - 0x1c]
inc ebx
mov dword [ebp - 0x1c], ebx
jmp 0x403835
mov ebx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x24], 0x104
push ecx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0x400
push ecx
lea ecx, [ebp - 0xa48]
xor eax, eax
push ecx
push 0
lea ecx, [ebp - 0x24]
mov word [ebp - 0x248], ax
push ecx
mov word [ebp - 0xa48], ax
lea ecx, [ebp - 0x248]
mov eax, dword [ebp - 0x10]
inc eax
push ecx
push eax
push dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x403724
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4038b0
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00401fc0
push 0x80004005
call fcn.00401fc0
int3