Function at 0x40c570
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424720
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x42f8d8]
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 dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov dword [ebp - 0x80], esi
call fcn.0040c1a0
mov edi, eax
push 0
mov ecx, esi
mov dword [ebp - 0x90], edi
call fcn.00404000
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x78]
push ecx
push 0
push 0
push 0x426988
push edi
mov dword [ebp - 0x68], 4
call ebx
test eax, eax
je 0x40c5e9
mov dword [ebp - 0x78], 0
xor esi, esi
mov dword [ebp - 0x70], esi
cmp esi, dword [ebp - 0x78]
mov dword [ebp - 0x74], esi
jge 0x40c7ed
cmp dword [ebp - 0x70], 0
jne 0x40c7ed
lea edx, [esi + 1]
push edx
lea eax, [ebp - 0x64]
push str.Rule_03d
push eax
call fcn.00414a1a
add esp, 0xc
lea ecx, [ebp - 0x6c]
push ecx
push 0xf003f
push 0
lea edx, [ebp - 0x64]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40c63f
mov dword [ebp - 0x70], 1
add esi, 1
jmp 0x40c5ee
push 0x120
call fcn.00414af3
mov ecx, dword [ebp - 0x6c]
add esp, 4
mov esi, eax
lea eax, [ebp - 0x68]
push eax
push esi
push 0
push 0
push str.type
push ecx
mov dword [ebp - 0x88], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x68], 4
call ebx
test eax, eax
je 0x40c695
push 0x42a31c
lea edx, [ebp - 0x98]
push edx
mov dword [ebp - 0x98], 1
call fcn.00414dee
mov edx, dword [ebp - 0x6c]
lea eax, [ebp - 0x68]
push eax
lea ecx, [esi + 4]
push ecx
push 0
push 0
push str.apppath
push edx
mov dword [ebp - 0x68], 0x104
call ebx
test eax, eax
je 0x40c6cc
push 0x42a31c
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x7c], 1
call fcn.00414dee
mov eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0x68]
push ecx
lea edx, [esi + 0x108]
push edx
push 0
push 0
push 0x426b08
mov edi, 8
push eax
mov dword [ebp - 0x68], edi
call ebx
test eax, eax
je 0x40c70d
push 0x42a31c
lea ecx, [ebp - 0x84]
push ecx
mov dword [ebp - 0x84], 1
call fcn.00414dee
mov ecx, dword [ebp - 0x6c]
lea edx, [ebp - 0x68]
push edx
lea eax, [esi + 0x110]
push eax
push 0
push 0
push 0x426b04
push ecx
mov dword [ebp - 0x68], edi
call ebx
test eax, eax
je 0x40c749
push 0x42a31c
lea edx, [ebp - 0x94]
push edx
mov dword [ebp - 0x94], 1
call fcn.00414dee
mov ecx, dword [ebp - 0x6c]
lea eax, [ebp - 0x68]
push eax
lea edi, [esi + 0x118]
push edi
push 0
push 0
push str.proxy_id
push ecx
mov dword [ebp - 0x68], 4
call ebx
test eax, eax
je 0x40c789
push 0x42a31c
lea edx, [ebp - 0x8c]
push edx
mov dword [ebp - 0x8c], 1
call fcn.00414dee
cmp dword [edi], 2
jne 0x40c794
mov dword [edi], 1
mov ecx, dword [ebp - 0x80]
push esi
mov dword [esi + 0x11c], 0
call fcn.0040c1e0
mov dword [ebp - 4], 0xffffffff
jmp 0x40c7d2
mov ecx, dword [ebp - 0x6c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x74]
mov edi, dword [ebp - 0x90]
add esi, 1
jmp 0x40c5ee
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 0x70], eax
sete al
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.00414407
mov esp, ebp
pop ebp
ret