Function at 0x40c600
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x42ef14
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b4
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], edi
lea eax, [esp + 0xc]
mov dword [esp + 0x1c4], edi
push eax
push str.SoftwareMetasoft_PlusLPrint
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40c84c
mov eax, dword [esp + 0x1d0]
mov dword [esp + 0x30], 0x100
cmp eax, edi
jne 0x40c65f
mov eax, 0x43127c
lea ecx, [esp + 0x30]
lea edx, [esp + 0xbc]
push ecx
push edx
push edi
push edi
push eax
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0xc]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
jne 0x40c84c
mov dl, byte [esp + 0xb]
push ebp
push edi
lea ecx, [esp + 0x24]
mov byte [esp + 0x24], dl
call fcn.00402f10
lea edi, [esp + 0xc0]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x24]
push ebp
call fcn.00403300
test al, al
je 0x40c6ec
mov edi, dword [esp + 0x24]
mov ecx, ebp
mov eax, ecx
lea esi, [esp + 0xc0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x28], ebp
mov byte [ecx + ebp], 0
lea ecx, [esp + 0x8c]
mov byte [esp + 0x1c8], 1
mov dword [esp + 0x38], 0x431290
call fcn.00403010
mov dword [esp + 0x8c], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [esp + 0x14], 1
push 0
lea edx, [esp + 0x44]
push 0
push edx
lea ecx, [esp + 0x44]
mov byte [esp + 0x1d4], 2
call fcn.00402f60
lea eax, [esp + 0x20]
push 1
push eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x1d0], 3
call fcn.004030a0
mov ecx, dword [esp + 0x38]
mov edi, 0x43128c
mov edx, dword [ecx + 4]
mov dword [esp + edx + 0x38], edi
push 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x1cc], 5
call fcn.00402f10
lea eax, [esp + 0x18]
lea ecx, [esp + 0xf]
push eax
lea edx, [esp + 0x34]
push ecx
lea eax, [esp + 0x17]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
lea ecx, [esp + 0x4c]
call fcn.0040d650
push eax
call fcn.0040dd60
add esp, 8
mov ecx, eax
call fcn.0040d650
push eax
call fcn.0040dd60
add esp, 8
mov ecx, eax
call fcn.0040d650
mov eax, dword [esp + 0x1c]
xor edx, edx
mov dh, byte [esp + 0x18]
and eax, 0xff
mov dl, byte [esp + 0x30]
lea ecx, [esp + 0x8c]
shl edx, 8
or edx, eax
mov dword [esp + 0x14], ecx
mov esi, edx
mov edx, dword [esp + 0x38]
mov eax, dword [edx + 4]
mov dword [esp + eax + 0x38], edi
lea ecx, [esp + 0x40]
mov byte [esp + 0x1c8], 6
call fcn.00402420
mov ecx, dword [esp + 0x38]
mov byte [esp + 0x1c8], 0
mov edx, dword [ecx + 4]
lea ecx, [esp + 0x8c]
mov dword [esp + edx + 0x38], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
call fcn.00402040
push 1
lea ecx, [esp + 0x1d4]
mov dword [esp + 0x1cc], 0xffffffff
call fcn.00402f10
pop ebp
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x1b4]
mov dword fs:[0], ecx
add esp, 0x1c0
ret
mov ecx, dword [esp + 0x1d0]
cmp ecx, edi
je 0x40c873
mov al, byte [ecx - 1]
test al, al
je 0x40c869
cmp al, 0xff
je 0x40c869
dec al
mov byte [ecx - 1], al
jmp 0x40c873
dec ecx
push ecx
call fcn.0041615c
add esp, 4
mov ecx, dword [esp + 0x1bc]
mov eax, dword [esp + 0x1dc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c0
ret