Function at 0x401e90
Capabilities:
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x664
mov eax, dword [0x41a07c]
xor eax, esp
mov dword [esp + 0x660], eax
push ebx
push esi
push edi
push 0x200
lea eax, [esp + 0x6c]
xor ebx, ebx
push eax
push ebx
mov edi, ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x401edd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
jmp 0x4021ff
lea ecx, [esp + 0x68]
push 0x5c
push ecx
call fcn.00408f58
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x401eff
mov dword [esp + 0x10], 3
jmp 0x4021ff
lea edx, [esp + 0x68]
push 0x2e
push edx
call fcn.00408f58
add esp, 8
cmp eax, ebx
jne 0x401f1f
mov dword [esp + 0x10], 3
jmp 0x4021ff
sub eax, esi
sar eax, 1
mov ecx, eax
je 0x401f3e
cmp ecx, 0x7fffffff
ja 0x401f3e
lea eax, [esi + 2]
lea edx, [esp + 0x468]
call fcn.00401090
mov eax, dword [edi + 0x22c]
lea eax, [eax + eax*2]
mov ecx, dword [eax*4 + 0x41b27c]
push ecx
lea edx, [esp + 0x46c]
push edx
push str.SOFTWAREK7_ComputingSharedTechnologyK7TaskManager
push str._s_s_s
mov ecx, 0x200
lea ebx, [esp + 0x78]
call fcn.00401890
add esp, 0x10
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
mov ecx, ebx
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4021ff
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [esp + 0x14], eax
mov eax, 4
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0
push 0x416f50
push edx
call esi
test eax, eax
jne 0x4021ff
cmp dword [esp + 0x14], 1
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x4846
jne 0x401ff2
mov eax, dword [edi + 4]
push eax
call ebx
push 0
push 1
jmp 0x401ffc
mov ecx, dword [edi + 4]
push ecx
call ebx
push 0
push 0
push 0xf1
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esp + 0x14], 0
je 0x4021ff
push 0x30
lea edx, [esp + 0x3c]
push 0
push edx
call fcn.0040d1f0
add esp, 0xc
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push 0x416f64
push eax
mov dword [esp + 0x38], 0x30
mov dword [esp + 0x34], 3
call esi
test eax, eax
jne 0x4021ff
mov eax, dword [esp + 0x58]
dec eax
mov esi, edi
call fcn.00401bc0
movzx ecx, word [esp + 0x48]
movzx edx, word [esp + 0x4a]
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], eax
mov ax, word [esp + 0x40]
mov word [esp + 0x30], cx
movzx ecx, word [esp + 0x3e]
mov word [esp + 0x32], dx
movzx edx, word [esp + 0x3c]
mov word [esp + 0x2e], ax
mov eax, dword [edi + 4]
push 0x484a
push eax
mov word [esp + 0x32], cx
mov word [esp + 0x30], dx
call ebx
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esp + 0x28]
push ecx
push 0
push 0x1002
push eax
call esi
cmp dword [esp + 0x58], 2
jne 0x4021bd
mov edx, dword [edi + 4]
push 0x484b
push edx
call ebx
push 0
push 0
push 0xf1
push eax
call esi
test byte [esp + 0x5e], 2
je 0x402109
mov eax, dword [edi + 4]
push 0x484b
push eax
call ebx
push 0
push 1
push 0xf1
push eax
call esi
test byte [esp + 0x5e], 4
je 0x402127
mov ecx, dword [edi + 4]
push 0x484c
push ecx
call ebx
push 0
push 1
push 0xf1
push eax
call esi
test byte [esp + 0x5e], 8
je 0x402145
mov edx, dword [edi + 4]
push 0x484d
push edx
call ebx
push 0
push 1
push 0xf1
push eax
call esi
test byte [esp + 0x5e], 0x10
je 0x402163
mov eax, dword [edi + 4]
push 0x484e
push eax
call ebx
push 0
push 1
push 0xf1
push eax
call esi
test byte [esp + 0x5e], 0x20
je 0x402181
mov ecx, dword [edi + 4]
push 0x484f
push ecx
call ebx
push 0
push 1
push 0xf1
push eax
call esi
test byte [esp + 0x5e], 0x40
je 0x40219f
mov edx, dword [edi + 4]
push 0x4850
push edx
call ebx
push 0
push 1
push 0xf1
push eax
call esi
test byte [esp + 0x5e], 1
je 0x4021bd
mov eax, dword [edi + 4]
push 0x4851
push eax
call ebx
push 0
push 1
push 0xf1
push eax
call esi
cmp dword [esp + 0x58], 3
jne 0x4021ff
mov edx, dword [esp + 0x5c]
mov ecx, 1
xor eax, eax
nop
inc eax
test edx, ecx
jne 0x402230
add ecx, ecx
cmp eax, 0x20
jle 0x4021d0
mov dword [esp + 0x24], 0
mov ecx, dword [edi + 4]
push 0x4852
push ecx
call ebx
mov edx, dword [esp + 0x24]
push 0
dec edx
push edx
push 0x14e
push eax
call esi
mov esi, dword [esp + 0x14]
call fcn.00401db0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x402217
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x66c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00408c7e
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x24], eax
jmp 0x4021e4