Function at 0x51c090
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5dd310
mov eax, dword fs:[0]
push eax
sub esp, 0x328
mov eax, dword [0x66d4f4]
xor eax, esp
mov dword [esp + 0x324], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x66d4f4]
xor eax, esp
push eax
lea eax, [esp + 0x33c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x350]
mov esi, dword [esp + 0x34c]
xor ebx, ebx
push 0xff
lea ecx, [esp + 0x23d]
push ebx
push ecx
mov dword [esp + 0x28], eax
mov byte [esp + 0x244], bl
call fcn.005c0cf0
add esp, 0xc
cmp esi, ebx
mov dword [esp + 0x28], pe_nt_image_headers32
je 0x51c7a7
cmp byte [esi], bl
je 0x51c7a7
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x23c]
push eax
push esi
call fcn.00506f10
add esp, 0xc
test eax, eax
je 0x51c7a7
mov dword [esp + 0x134], 0xf
mov dword [esp + 0x130], ebx
mov byte [esp + 0x120], bl
lea ecx, [esp + 0x238]
push ecx
lea ecx, [esp + 0xcc]
mov dword [esp + 0x348], 2
call fcn.0040b540
push 0x16
push str.Control_PanelDesktop
lea ecx, [esp + 0xd0]
mov byte [esp + 0x34c], 3
call fcn.004078e0
push 0x60189c
lea ecx, [esp + 0x104]
call fcn.0040b540
push 0x60189c
lea ecx, [esp + 0xe8]
mov byte [esp + 0x348], 4
call fcn.0040b540
mov byte [esp + 0x344], 5
call fcn.00506a50
mov ecx, dword [esp + 0xcc]
neg eax
sbb eax, eax
and eax, 0xd0126
mov ebp, 0x10
add eax, 0x20019
cmp dword [esp + 0xe0], ebp
jae 0x51c1e6
lea ecx, [esp + 0xcc]
lea edx, [esp + 0x18]
push edx
push eax
push ebx
push ecx
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, ebx
jne 0x51c5b8
push 0xff
lea eax, [esp + 0x13d]
push ebx
push eax
mov dword [esp + 0x2c], 0xff
mov dword [esp + 0x30], 1
mov byte [esp + 0x144], bl
call fcn.005c0cf0
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x13c]
push edx
lea eax, [esp + 0x2c]
push eax
push ebx
push str.ScreenSaveActive
push ecx
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov esi, eax
cmp esi, ebx
jne 0x51c27a
lea edx, [esp + 0x138]
push edx
lea ecx, [esp + 0x104]
call fcn.0040b4d0
jmp 0x51c3db
push 1
push 2
lea ecx, [esp + 0x50]
call fcn.0040a750
push esi
push str.ScreenSaveActive_
lea eax, [esp + 0xd0]
push eax
lea ecx, [esp + 0x54]
push 0x602884
push ecx
mov byte [esp + 0x358], 6
call fcn.00409270
add esp, 8
push eax
call fcn.00408950
add esp, 8
push eax
call fcn.00409270
add esp, 8
mov ecx, eax
call fcn.00419b30
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x4c]
call fcn.00408c00
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0x344], 7
jb 0x51c2e9
mov eax, dword [eax + 4]
jmp 0x51c2ec
add eax, 4
push eax
push str.BaseLib::CBaseInfo::GetScreenSaverState
push 0xbf0
push str..ywSMPpubBaseInfo.cpp
push 0xf0000000
call fcn.00408f70
mov ecx, eax
call fcn.00512650
lea ecx, [esp + 0x2c]
call fcn.0040b640
lea ecx, [esp + 0x48]
mov byte [esp + 0x344], 5
call fcn.004094e0
push ebx
push ebx
lea eax, [esp + 0x1c]
push eax
push ebx
push esi
push ebx
push 0x1300
mov dword [esp + 0x30], ebx
call edi
push 1
push 2
lea ecx, [esp + 0x50]
call fcn.0040a750
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x4c]
push 0x60286c
push edx
mov byte [esp + 0x350], 8
call fcn.00409270
add esp, 8
push eax
call fcn.00409270
add esp, 8
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x4c]
call fcn.00408c00
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0x344], 9
jb 0x51c392
mov eax, dword [eax + 4]
jmp 0x51c395
add eax, 4
push eax
push str.BaseLib::CBaseInfo::GetScreenSaverState
push 0xbf4
push str..ywSMPpubBaseInfo.cpp
push 0xf0000000
call fcn.00408f70
mov ecx, eax
call fcn.00512650
lea ecx, [esp + 0x2c]
call fcn.0040b640
lea ecx, [esp + 0x48]
mov byte [esp + 0x344], 5
call fcn.004094e0
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push pe_nt_image_headers32
lea edx, [esp + 0x13c]
push ebx
push edx
call fcn.005c0cf0
add esp, 0xc
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x13c]
push ecx
lea edx, [esp + 0x2c]
push edx
push ebx
push str.ScreenSaverIsSecure
push eax
call ebp
mov esi, eax
cmp esi, ebx
jne 0x51c43f
lea ecx, [esp + 0x138]
push ecx
lea ecx, [esp + 0xe8]
call fcn.0040b4d0
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, 0x10
jmp 0x51c68b
push 1
push 2
lea ecx, [esp + 0x50]
call fcn.0040a750
push esi
push str.ScreenSaverIsSecure_
lea edx, [esp + 0xd0]
push edx
lea eax, [esp + 0x54]
push 0x602884
push eax
mov byte [esp + 0x358], 0xa
call fcn.00409270
add esp, 8
push eax
call fcn.00408950
add esp, 8
push eax
call fcn.00409270
add esp, 8
mov ecx, eax
call fcn.00419b30
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x4c]
call fcn.00408c00
mov ebp, 0x10
cmp dword [eax + 0x18], ebp
mov byte [esp + 0x344], 0xb
jb 0x51c4b2
mov eax, dword [eax + 4]
jmp 0x51c4b5
add eax, 4
push eax
push str.BaseLib::CBaseInfo::GetScreenSaverState
push 0xc01
push str..ywSMPpubBaseInfo.cpp
push 0xf0000000
call fcn.00408f70
mov ecx, eax
call fcn.00512650
lea ecx, [esp + 0x2c]
call fcn.0040b640
lea ecx, [esp + 0x48]
mov byte [esp + 0x344], 5
call fcn.004094e0
push ebx
push ebx
lea edx, [esp + 0x1c]
push edx
push ebx
push esi
push ebx
push 0x1300
mov dword [esp + 0x30], ebx
call edi
push 1
push 2
lea ecx, [esp + 0x50]
call fcn.0040a750
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x4c]
push 0x60286c
push ecx
mov byte [esp + 0x350], 0xc
call fcn.00409270
add esp, 8
push eax
call fcn.00409270
add esp, 8
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x4c]
call fcn.00408c00
cmp dword [eax + 0x18], ebp
mov byte [esp + 0x344], 0xd
jb 0x51c55a
mov eax, dword [eax + 4]
jmp 0x51c55d
add eax, 4
push eax
push str.BaseLib::CBaseInfo::GetScreenSaverState
push 0xc05
push str..ywSMPpubBaseInfo.cpp
push 0xf0000000
call fcn.00408f70
mov ecx, eax
call fcn.00512650
lea ecx, [esp + 0x2c]
call fcn.0040b640
lea ecx, [esp + 0x48]
mov byte [esp + 0x344], 5
call fcn.004094e0
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, 0x10
jmp 0x51c68b
push 1
push 2
lea ecx, [esp + 0x140]
call fcn.0040a750
push esi
push 0x602858
lea edx, [esp + 0xd0]
push edx
lea eax, [esp + 0x144]
push 0x60284c
push eax
mov byte [esp + 0x358], 0xe
call fcn.00409270
add esp, 8
push eax
call fcn.00408950
add esp, 8
push eax
call fcn.00409270
add esp, 8
mov ecx, eax
call fcn.00419b30
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x13c]
call fcn.00408c00
cmp dword [eax + 0x18], ebp
mov byte [esp + 0x344], 0xf
jb 0x51c62f
mov eax, dword [eax + 4]
jmp 0x51c632
add eax, 4
push eax
push str.BaseLib::CBaseInfo::GetScreenSaverState
push 0xc0c
push str..ywSMPpubBaseInfo.cpp
push 0xf0000000
call fcn.00408f70
mov ecx, eax
call fcn.00512650
lea ecx, [esp + 0x2c]
call fcn.0040b640
lea ecx, [esp + 0x184]
mov byte [esp + 0x344], 5
call fcn.00409510
lea edx, [esp + 0x184]
push edx
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.005d9cc4
add esp, 4
cmp dword [esp + 0x118], ebp
mov esi, dword [esp + 0x104]
jae 0x51c6a2
lea esi, [esp + 0x104]
mov edi, 0x60189c
mov ecx, 2
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x51c6b9
push 0x60189c
jmp 0x51c6ec
cmp dword [esp + 0xfc], ebp
mov esi, dword [esp + 0xe8]
jae 0x51c6d0
lea esi, [esp + 0xe8]
mov edi, 0x60189c
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x51c6e7
push 0x6028a8
jmp 0x51c6ec
push 0x6028a4
mov ecx, dword [esp + 0x20]
call fcn.0040b4d0
cmp dword [esp + 0xfc], ebp
jb 0x51c70e
mov eax, dword [esp + 0xe8]
push eax
call fcn.005a1b1d
add esp, 4
cmp dword [esp + 0x118], ebp
mov esi, 0xf
mov dword [esp + 0xfc], esi
mov dword [esp + 0xf8], ebx
mov byte [esp + 0xe8], bl
jb 0x51c741
mov ecx, dword [esp + 0x104]
push ecx
call fcn.005a1b1d
add esp, 4
cmp dword [esp + 0xe0], ebp
mov dword [esp + 0x118], esi
mov dword [esp + 0x114], ebx
mov byte [esp + 0x104], bl
jb 0x51c76f
mov edx, dword [esp + 0xcc]
push edx
call fcn.005a1b1d
add esp, 4
cmp dword [esp + 0x134], ebp
mov dword [esp + 0xe0], esi
mov dword [esp + 0xdc], ebx
mov byte [esp + 0xcc], bl
jb 0x51c79d
mov eax, dword [esp + 0x120]
push eax
call fcn.005a1b1d
add esp, 4
mov eax, 1
jmp 0x51c85d
push 1
push 2
lea ecx, [esp + 0x50]
call fcn.0040a750
lea ecx, [esp + 0x48]
push 0x602890
push ecx
mov dword [esp + 0x34c], ebx
call fcn.00409270
add esp, 8
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x4c]
call fcn.00408c00
mov esi, 0x10
cmp dword [eax + 0x18], esi
mov byte [esp + 0x344], 1
jb 0x51c7f2
mov eax, dword [eax + 4]
jmp 0x51c7f5
add eax, 4
push eax
push str.BaseLib::CBaseInfo::GetScreenSaverState
push 0xbd6
push str..ywSMPpubBaseInfo.cpp
push 0xf0000000
call fcn.00408f70
mov ecx, eax
call fcn.00512650
cmp dword [esp + 0x44], esi
jb 0x51c829
mov eax, dword [esp + 0x30]
push eax
call fcn.005a1b1d
add esp, 4
lea ecx, [esp + 0x94]
mov dword [esp + 0x344], 0xffffffff
call fcn.00409510
lea ecx, [esp + 0x94]
push ecx
mov dword [esp + 0x98], vtable.std::ios_base.0
call fcn.005d9cc4
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x33c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x324]
xor ecx, esp
call fcn.005bd2d7
add esp, 0x334
ret 8