Function at 0x40c120
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424870
mov eax, dword fs:[0]
push eax
sub esp, 0x94
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 edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x88], edi
call fcn.0040c020
mov ebx, eax
push 0
mov ecx, edi
mov dword [ebp - 0x98], ebx
call fcn.004109e0
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 0x40c19b
mov dword [esi], 0
lea ecx, [ebp - 0x68]
push ecx
lea edx, [ebp - 0x78]
push edx
push 0
push 0
push 0x42696c
push ebx
mov dword [ebp - 0x68], 4
call edi
test eax, eax
je 0x40c1c1
mov dword [ebp - 0x78], 0
xor esi, esi
mov dword [ebp - 0x70], esi
cmp esi, dword [ebp - 0x78]
mov dword [ebp - 0x74], esi
jge 0x40c450
cmp dword [ebp - 0x70], 0
jne 0x40c450
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x64]
push str.Proxy_03d
push ecx
call fcn.00414aba
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 0x40c217
mov dword [ebp - 0x70], 1
add esi, 1
jmp 0x40c1c6
push 0x1b4
call fcn.00414b93
mov edx, dword [ebp - 0x6c]
add esp, 4
lea ecx, [ebp - 0x68]
push ecx
mov esi, eax
push esi
push 0
push 0
push 0x426ab8
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 0x40c26e
push 0x42a9ac
lea eax, [ebp - 0x84]
push eax
mov dword [ebp - 0x84], 1
call fcn.00414dd0
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 0x40c2a7
push 0x42a9ac
lea ecx, [ebp - 0xa0]
push ecx
mov dword [ebp - 0xa0], 1
call fcn.00414dd0
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], pe_nt_image_headers32
call edi
test eax, eax
je 0x40c2de
push 0x42a9ac
lea edx, [ebp - 0x7c]
push edx
mov dword [ebp - 0x7c], 1
call fcn.00414dd0
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 0x40c31a
push 0x42a9ac
lea eax, [ebp - 0x94]
push eax
mov dword [ebp - 0x94], 1
call fcn.00414dd0
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 0x40c356
push 0x42a9ac
lea ecx, [ebp - 0x8c]
push ecx
mov dword [ebp - 0x8c], 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 str.userid
push ecx
mov dword [ebp - 0x68], 0x50
call edi
test eax, eax
je 0x40c396
push 0x42a9ac
lea edx, [ebp - 0x9c]
push edx
mov dword [ebp - 0x9c], 1
call fcn.00414dd0
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 0x40c3d0
push 0x42a9ac
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 1
call fcn.00414dd0
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 0x40c3f7
mov dword [ebx], 0
mov ecx, dword [ebp - 0x88]
push esi
call fcn.0040c0f0
mov dword [ebp - 4], 0xffffffff
jmp 0x40c435
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 0x40c1c6
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.0041449d
mov esp, ebp
pop ebp
ret