Function at 0x40fd50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5ead
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x4fb008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp byte [edi + 0x25], bl
setne bl
add ebx, reloc.WS2_32.dll_accept
mov dword [ebp - 4], 0
push 0x1c
mov dword [ebp - 0xe0], vtable.RegistrySettingsManager.0
mov dword [ebp - 0xdc], 0
call fcn.00497c14
add esp, 4
mov dword [ebp - 0xd4], eax
push 0
push 1
push str.SoftwareTightVNCServer
push ebx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0041f6b0
mov esi, eax
mov dword [ebp - 0xdc], esi
mov dword [ebp - 4], 2
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x14], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x20], 0
mov dword [ebp - 0xd0], vtable.StringStorage.0
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xc4], 0
lea eax, [ebp - 0xcc]
mov byte [ebp - 4], 3
push eax
push 1
mov ecx, eax
call fcn.00404970
mov eax, dword [ebp - 0xc8]
mov ecx, dword [ebp - 0xcc]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cc34c
push ecx
call fcn.0049ae40
add esp, 0xc
mov dword [ebp - 0xc0], vtable.StringStorage.0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0
lea eax, [ebp - 0xbc]
mov byte [ebp - 4], 5
push eax
push 1
mov ecx, eax
call fcn.00404970
mov eax, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0xbc]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cc34c
push ecx
call fcn.0049ae40
add esp, 0xc
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 6
push eax
push str.ControlPassword
call fcn.0042bb70
lea eax, [ebp - 0xc0]
push eax
push str.ControlPassword
call fcn.0042bc20
push ecx
push 0
push dword [ebp - 0xcc]
lea ecx, [ebp - 0xfc]
push esi
call fcn.0041f7b0
mov eax, dword [ebp - 0xf8]
test eax, eax
jne 0x40ff0e
xor bl, bl
mov dword [ebp - 0xfc], vtable.RegistryKey.0
jmp 0x40ff74
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0xd4], 3
push ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0xd8], 9
push ecx
lea ecx, [ebp - 0xd4]
push ecx
push 0
push str.ControlPassword
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov dword [ebp - 0xfc], vtable.RegistryKey.0
mov eax, dword [ebp - 0xf8]
sete bl
test eax, eax
je 0x40ff74
cmp eax, dword [ebp - 0xf4]
je 0x40ff6a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xf8], 0
lea ecx, [ebp - 0xec]
mov dword [ebp - 0xf0], vtable.StringStorage.0
call fcn.00404840
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0xc0], vtable.StringStorage.0
call fcn.00404840
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0xd0], vtable.StringStorage.0
call fcn.00404840
test bl, bl
je 0x4100c2
push 0x80
lea eax, [ebp - 0xac]
mov dword [ebp - 0xb0], vtable.DesCrypt.0
push 0
push eax
call fcn.00499160
add esp, 8
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0xb0]
push 8
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0044f8a0
mov dword [ebp - 0xc0], vtable.AnsiStringStorage.0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410026
sub ecx, edx
lea eax, [ebp - 0xbc]
push eax
lea eax, [ecx + 1]
push eax
lea ecx, [ebp - 0xbc]
call fcn.00429e70
mov eax, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0xbc]
sub eax, ecx
push eax
lea eax, [ebp - 0x28]
push eax
push ecx
call fcn.0049ae40
add esp, 0xc
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 8
call fcn.00403e20
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0xc0]
call fcn.0044ea60
push dword [ebp - 0xcc]
lea ecx, [ebp - 0x2c]
push dword [edi + 8]
call fcn.00410180
mov byte [ebp - 4], 0xa
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0xc]
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0xd0], vtable.StringStorage.0
call fcn.00404840
lea ecx, [ebp - 0xc0]
call fcn.0044e9a0
test esi, esi
je 0x4100ce
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004976fb
mov esp, ebp
pop ebp
ret