Function at 0x40c480
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4248a0
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x42fab0]
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.0040c060
mov edi, eax
push 0
mov ecx, esi
mov dword [ebp - 0x90], edi
call fcn.004109e0
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 0x42696c
push edi
mov dword [ebp - 0x68], 4
call ebx
test eax, eax
je 0x40c4f9
mov dword [ebp - 0x78], 0
xor esi, esi
mov dword [ebp - 0x70], esi
cmp esi, dword [ebp - 0x78]
mov dword [ebp - 0x74], esi
jge 0x40c704
cmp dword [ebp - 0x70], 0
jne 0x40c704
lea edx, [esi + 1]
push edx
lea eax, [ebp - 0x64]
push str.Rule_03d
push eax
call fcn.00414aba
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 0x40c54f
mov dword [ebp - 0x70], 1
add esi, 1
jmp 0x40c4fe
push 0x120
call fcn.00414b93
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 0x40c5a5
push 0x42a9ac
lea edx, [ebp - 0x98]
push edx
mov dword [ebp - 0x98], 1
call fcn.00414dd0
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 0x40c5dc
push 0x42a9ac
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x7c], 1
call fcn.00414dd0
mov eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0x68]
push ecx
lea edx, [esi + 0x108]
push edx
push 0
push 0
push 0x426ae0
mov edi, 8
push eax
mov dword [ebp - 0x68], edi
call ebx
test eax, eax
je 0x40c61d
push 0x42a9ac
lea ecx, [ebp - 0x84]
push ecx
mov dword [ebp - 0x84], 1
call fcn.00414dd0
mov ecx, dword [ebp - 0x6c]
lea edx, [ebp - 0x68]
push edx
lea eax, [esi + 0x110]
push eax
push 0
push 0
push 0x426adc
push ecx
mov dword [ebp - 0x68], edi
call ebx
test eax, eax
je 0x40c659
push 0x42a9ac
lea edx, [ebp - 0x94]
push edx
mov dword [ebp - 0x94], 1
call fcn.00414dd0
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 0x40c699
push 0x42a9ac
lea edx, [ebp - 0x8c]
push edx
mov dword [ebp - 0x8c], 1
call fcn.00414dd0
cmp dword [edi], 2
jne 0x40c6a4
mov dword [edi], 1
mov ecx, dword [ebp - 0x80]
push esi
mov dword [esi + 0x11c], 0
call fcn.0040c0f0
mov dword [ebp - 4], 0xffffffff
jmp 0x40c6e9
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 0x40c4fe
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.0041449d
mov esp, ebp
pop ebp
ret