Function at 0x403570
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f98d
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.00402560
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.00422a57
mov ecx, 0x7fffffff
mov dword [ebp - 0x14], eax
sub ecx, eax
add esp, 0xc
cmp ecx, edi
jl 0x403883
add edi, eax
js 0x403883
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x40360f
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 0x40361f
lea eax, [esi + eax*2]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
lea eax, [esi + edx*2]
add ecx, ecx
je 0x40365c
test eax, eax
je 0x40364c
mov edx, dword [ebp - 0x10]
push ecx
test edx, edx
je 0x403641
push edx
push eax
call fcn.0041dbc0
add esp, 0xc
jmp 0x40365c
push 0
push eax
call fcn.0041e140
add esp, 0xc
call fcn.0041f9f6
mov dword [eax], 0x16
call fcn.0041ff14
cmp edi, dword [esi - 8]
jg 0x403883
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 0x4036a0
mov eax, dword [ebp - 0x18]
xor ebx, ebx
mov byte [eax], 0
jmp 0x403851
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 0x403848
push 0x40
call fcn.0041c3f4
add esp, 4
mov edi, eax
mov dword [ebp - 0x14], edi
call fcn.00401e80
test eax, eax
je 0x40388d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
call fcn.00401e80
mov ecx, eax
test ecx, ecx
je 0x40388d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 4], eax
call fcn.00401e80
mov ecx, eax
test ecx, ecx
je 0x40388d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 8], eax
call fcn.00401e80
mov ecx, eax
test ecx, ecx
je 0x40388d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x30], eax
call fcn.00401e80
mov ecx, eax
test ecx, ecx
je 0x40388d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x34], eax
call fcn.00401e80
mov ecx, eax
test ecx, ecx
je 0x40388d
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 0x4037ae
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.00403130
test al, al
je 0x4037f2
mov ecx, ebx
add ecx, 0xc
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x4037df
mov ebx, dword [ebp - 0x1c]
mov dword [eax], edi
add dword [ecx + 4], 4
inc ebx
mov dword [ebp - 0x1c], ebx
jmp 0x4037f5
lea edx, [ebp - 0x14]
push edx
push eax
call fcn.00403d20
mov ebx, dword [ebp - 0x1c]
inc ebx
mov dword [ebp - 0x1c], ebx
jmp 0x4037f5
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 0x4036e4
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 0x403870
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.00401f80
push 0x80004005
call fcn.00401f80
int3