Function at 0x40c210
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4246f0
mov eax, dword fs:[0]
push eax
sub esp, 0x94
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 edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x88], edi
call fcn.0040c160
mov ebx, eax
push 0
mov ecx, edi
mov dword [ebp - 0x98], ebx
call fcn.00404000
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x68]
push eax
push esi
push 0
push 0
push str.defid
push ebx
mov dword [ebp - 0x68], 4
call edi
test eax, eax
je 0x40c28b
mov dword [esi], 0
lea ecx, [ebp - 0x68]
push ecx
lea edx, [ebp - 0x78]
push edx
push 0
push 0
push 0x426988
push ebx
mov dword [ebp - 0x68], 4
call edi
test eax, eax
je 0x40c2b1
mov dword [ebp - 0x78], 0
xor esi, esi
mov dword [ebp - 0x70], esi
cmp esi, dword [ebp - 0x78]
mov dword [ebp - 0x74], esi
jge 0x40c539
cmp dword [ebp - 0x70], 0
jne 0x40c539
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x64]
push str.Proxy_03d
push ecx
call fcn.00414a1a
add esp, 0xc
lea edx, [ebp - 0x6c]
push edx
push 0xf003f
push 0
lea eax, [ebp - 0x64]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40c307
mov dword [ebp - 0x70], 1
add esi, 1
jmp 0x40c2b6
push 0x1b4
call fcn.00414af3
mov edx, dword [ebp - 0x6c]
add esp, 4
lea ecx, [ebp - 0x68]
push ecx
mov esi, eax
push esi
push 0
push 0
push 0x426ae0
mov ebx, 4
push edx
mov dword [ebp - 0x90], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x68], ebx
call edi
test eax, eax
je 0x40c35e
push 0x42a31c
lea eax, [ebp - 0x84]
push eax
mov dword [ebp - 0x84], 1
call fcn.00414dee
mov eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0x68]
push ecx
lea edx, [esi + 4]
push edx
push 0
push 0
push str.type
push eax
mov dword [ebp - 0x68], ebx
call edi
test eax, eax
je 0x40c397
push 0x42a31c
lea ecx, [ebp - 0xa0]
push ecx
mov dword [ebp - 0xa0], 1
call fcn.00414dee
mov ecx, dword [ebp - 0x6c]
lea edx, [ebp - 0x68]
push edx
lea eax, [esi + 8]
push eax
push 0
push 0
push str.name
push ecx
mov dword [ebp - 0x68], 0x100
call edi
test eax, eax
je 0x40c3ce
push 0x42a31c
lea edx, [ebp - 0x7c]
push edx
mov dword [ebp - 0x7c], 1
call fcn.00414dee
mov edx, dword [ebp - 0x6c]
lea eax, [ebp - 0x68]
push eax
lea ecx, [esi + 0x108]
push ecx
push 0
push 0
push str.port
push edx
mov dword [ebp - 0x68], ebx
call edi
test eax, eax
je 0x40c40a
push 0x42a31c
lea eax, [ebp - 0x94]
push eax
mov dword [ebp - 0x94], 1
call fcn.00414dee
mov eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0x68]
push ecx
lea edx, [esi + 0x10c]
push edx
push 0
push 0
push str.auth
push eax
mov dword [ebp - 0x68], ebx
call edi
test eax, eax
je 0x40c446
push 0x42a31c
lea ecx, [ebp - 0x8c]
push ecx
mov dword [ebp - 0x8c], 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 str.userid
push ecx
mov dword [ebp - 0x68], 0x50
call edi
test eax, eax
je 0x40c486
push 0x42a31c
lea edx, [ebp - 0x9c]
push edx
mov dword [ebp - 0x9c], 1
call fcn.00414dee
mov edx, dword [ebp - 0x6c]
lea eax, [ebp - 0x68]
push eax
lea ecx, [esi + 0x160]
push ecx
push 0
push 0
push str.passwd
push edx
mov dword [ebp - 0x68], 0x50
call edi
test eax, eax
je 0x40c4c0
push 0x42a31c
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 1
call fcn.00414dee
mov edx, dword [ebp - 0x6c]
lea ecx, [ebp - 0x68]
push ecx
mov dword [ebp - 0x68], ebx
lea ebx, [esi + 0x1b0]
push ebx
push 0
push 0
push str.flags
push edx
call edi
test eax, eax
je 0x40c4e7
mov dword [ebx], 0
mov ecx, dword [ebp - 0x88]
push esi
call fcn.0040c1e0
mov dword [ebp - 4], 0xffffffff
jmp 0x40c51e
mov ecx, dword [ebp - 0x6c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x74]
mov ebx, dword [ebp - 0x98]
add esi, 1
jmp 0x40c2b6
push ebx
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