Function at 0x409e00
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4527c1
mov eax, dword fs:[0]
push eax
mov eax, 0x1890
call fcn.00447a90
mov eax, dword [0x46b554]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1890], eax
mov eax, dword [ebp + 0x10]
mov edi, dword [eax]
or ebx, 0xffffffff
mov dword [ebp - 0x1888], edi
cmp edi, ebx
je 0x40a33d
xor esi, esi
xor eax, eax
mov dword [ebp - 0x1884], eax
jmp 0x409e63
or ebx, 0xffffffff
push 0x1770
lea ecx, [ebp - 0x1784]
push ecx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x40a336
lea edx, [ebp - 0x1880]
push edx
lea eax, [ebp - 0x1784]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40a31e
mov edi, 7
xor ecx, ecx
xor edx, edx
mov dword [ebp - 0x1848], edi
mov dword [ebp - 0x184c], esi
mov word [ebp - 0x185c], cx
mov dword [ebp - 0x182c], edi
mov dword [ebp - 0x1830], esi
mov word [ebp - 0x1840], dx
mov dword [ebp - 0x1824], esi
mov dword [ebp - 0x1820], esi
mov dword [ebp - 0x181c], esi
mov dword [ebp - 0x1814], 0xffff
mov dword [ebp - 0x1810], ebx
mov dword [ebp - 0x180c], ebx
mov dword [ebp - 0x1808], 0x3e8
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x1880]
push eax
lea eax, [ebp - 0x185c]
mov ebx, str.PATH
call fcn.00409d80
xor ebx, ebx
add esp, 4
cmp byte [ebp + 0xc], bl
jne 0x40a1f1
mov ecx, dword [ebp - 0x1880]
push ecx
lea eax, [ebp - 0x1840]
mov ebx, str.ARGS
call fcn.00409d80
xor edx, edx
add esp, 4
mov dword [ebp - 0x1864], edi
mov dword [ebp - 0x1868], 0
mov word [ebp - 0x1878], dx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1880]
push eax
lea eax, [ebp - 0x1878]
mov ebx, str.PID_MATCH
call fcn.00409d80
add esp, 4
cmp dword [ebp - 0x1868], 0
jne 0x409fa6
mov ecx, dword [ebp - 0x1880]
push ecx
lea eax, [ebp - 0x1878]
mov ebx, str.PID_MATCH_STR
call fcn.00409d80
add esp, 4
cmp dword [ebp - 0x1868], 0
je 0x40a081
cmp dword [ebp - 0x1864], 8
mov ebx, dword [ebp - 0x1878]
jae 0x409fbb
lea ebx, [ebp - 0x1878]
push 0x80
lea edx, [ebp - 0x1804]
push 0
push edx
mov dword [ebp - 0x187c], 0
call fcn.00439e80
add esp, 0xc
push 0x80
lea esi, [ebp - 0x187c]
lea edi, [ebp - 0x1804]
mov ecx, ebx
call fcn.0040bdf0
mov eax, dword [ebp - 0x187c]
add esp, 4
test eax, eax
jle 0x40a081
mov ebx, eax
mov eax, dword [ebp - 0x1820]
cmp edi, eax
jae 0x40a04b
mov ecx, dword [ebp - 0x1824]
cmp ecx, edi
ja 0x40a04b
mov esi, edi
sub esi, ecx
sar esi, 2
cmp eax, dword [ebp - 0x181c]
jne 0x40a03a
lea eax, [ebp - 0x1824]
call fcn.004054d0
mov eax, dword [ebp - 0x1820]
test eax, eax
je 0x40a072
mov ecx, dword [ebp - 0x1824]
mov edx, dword [ecx + esi*4]
mov dword [eax], edx
jmp 0x40a06c
cmp eax, dword [ebp - 0x181c]
jne 0x40a064
lea eax, [ebp - 0x1824]
call fcn.004054d0
mov eax, dword [ebp - 0x1820]
test eax, eax
je 0x40a072
mov ecx, dword [edi]
mov dword [eax], ecx
mov eax, dword [ebp - 0x1820]
add eax, 4
add edi, 4
dec ebx
mov dword [ebp - 0x1820], eax
jne 0x40a00c
mov eax, dword [ebp - 0x1880]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ecx, ecx
lea edx, [ebp - 0x187c]
push edx
push ecx
lea edx, [ebp - 0x1898]
push edx
push ecx
push str.VENDORID
push eax
mov edi, eax
mov dword [ebp - 0x187c], ecx
mov dword [ebp - 0x1814], ecx
call esi
cmp eax, 0xea
je 0x40a0c0
test eax, eax
jne 0x40a0ef
mov ebx, 4
cmp dword [ebp - 0x1898], ebx
jne 0x40a0f4
lea eax, [ebp - 0x187c]
push eax
lea ecx, [ebp - 0x1814]
push ecx
push 0
push 0
push str.VENDORID
push edi
mov dword [ebp - 0x187c], ebx
call esi
jmp 0x40a0f4
mov ebx, 4
mov eax, dword [ebp - 0x1880]
xor ecx, ecx
lea edx, [ebp - 0x187c]
push edx
push ecx
lea edx, [ebp - 0x188c]
push edx
push ecx
push str.MULTI
push eax
mov edi, eax
mov dword [ebp - 0x187c], ecx
mov dword [ebp - 0x180c], ecx
call esi
cmp eax, 0xea
je 0x40a12d
test eax, eax
jne 0x40a157
cmp dword [ebp - 0x188c], ebx
jne 0x40a157
lea eax, [ebp - 0x187c]
push eax
lea ecx, [ebp - 0x180c]
push ecx
push 0
push 0
push str.MULTI
push edi
mov dword [ebp - 0x187c], ebx
call esi
jmp 0x40a161
mov dword [ebp - 0x180c], 0xffffffff
mov eax, dword [ebp - 0x1880]
xor ecx, ecx
lea edx, [ebp - 0x187c]
push edx
push ecx
lea edx, [ebp - 0x1894]
push edx
push ecx
push str.ATWAKE
push eax
mov edi, eax
mov dword [ebp - 0x187c], ecx
mov dword [ebp - 0x1810], ecx
call esi
cmp eax, 0xea
je 0x40a19a
test eax, eax
jne 0x40a1c4
cmp dword [ebp - 0x1894], ebx
jne 0x40a1c4
lea eax, [ebp - 0x187c]
push eax
lea ecx, [ebp - 0x1810]
push ecx
push 0
push 0
push str.ATWAKE
push edi
mov dword [ebp - 0x187c], ebx
call esi
jmp 0x40a1ce
mov dword [ebp - 0x1810], 0xffffffff
mov byte [ebp - 4], 0
cmp dword [ebp - 0x1864], 8
jb 0x40a1ea
mov edx, dword [ebp - 0x1878]
push edx
call fcn.0042f9a7
add esp, 4
mov edi, 7
xor ebx, ebx
mov eax, dword [ebp - 0x1880]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x184c], ebx
je 0x40a2a2
lea ecx, [ebp - 0x185c]
push ecx
lea edx, [ebp - 0x1878]
push edx
call fcn.0040e000
add esp, 8
mov ecx, dword [ebp - 0x1890]
mov edx, eax
mov byte [ebp - 4], 2
call fcn.0040cf80
mov esi, eax
push ebx
lea eax, [ebp - 0x185c]
push eax
or eax, 0xffffffff
mov ecx, esi
call fcn.004049a0
push ebx
lea ecx, [ebp - 0x1840]
push ecx
lea ecx, [esi + 0x1c]
or eax, 0xffffffff
call fcn.004049a0
lea ecx, [esi + 0x38]
lea eax, [ebp - 0x1824]
call fcn.0040ce60
mov edx, dword [ebp - 0x1814]
mov dword [esi + 0x48], edx
mov eax, dword [ebp - 0x1810]
mov dword [esi + 0x4c], eax
mov ecx, dword [ebp - 0x180c]
mov dword [esi + 0x50], ecx
mov edx, dword [ebp - 0x1808]
mov dword [esi + 0x54], edx
cmp dword [ebp - 0x1864], 8
jb 0x40a2a2
mov eax, dword [ebp - 0x1878]
push eax
call fcn.0042f9a7
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1824]
cmp eax, ebx
je 0x40a2bc
push eax
call fcn.0042f9a7
add esp, 4
mov esi, 8
mov dword [ebp - 0x1824], ebx
mov dword [ebp - 0x1820], ebx
mov dword [ebp - 0x181c], ebx
cmp dword [ebp - 0x182c], esi
jb 0x40a2ea
mov ecx, dword [ebp - 0x1840]
push ecx
call fcn.0042f9a7
add esp, 4
xor edx, edx
mov dword [ebp - 0x182c], edi
mov dword [ebp - 0x1830], ebx
mov word [ebp - 0x1840], dx
cmp dword [ebp - 0x1848], esi
jb 0x40a316
mov eax, dword [ebp - 0x185c]
push eax
call fcn.0042f9a7
add esp, 4
mov edi, dword [ebp - 0x1888]
xor esi, esi
mov eax, dword [ebp - 0x1884]
inc eax
mov dword [ebp - 0x1884], eax
cmp eax, 0x2710
jb 0x409e60
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042f9b2
mov esp, ebp
pop ebp
ret