Function at 0x520e80
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5d2050
mov eax, dword fs:[0]
push eax
sub esp, 0x328
mov eax, dword [0x65b4e4]
xor eax, esp
mov dword [esp + 0x324], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65b4e4]
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.005b4520
add esp, 0xc
cmp esi, ebx
mov dword [esp + 0x28], 0x100
je 0x521597
cmp byte [esi], bl
je 0x521597
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x23c]
push eax
push esi
call fcn.004fea40
add esp, 0xc
test eax, eax
je 0x521597
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.0040bf50
push 0x16
push str.Control_PanelDesktop
lea ecx, [esp + 0xd0]
mov byte [esp + 0x34c], 3
call fcn.00408360
push 0x5f3938
lea ecx, [esp + 0x104]
call fcn.0040bf50
push 0x5f3938
lea ecx, [esp + 0xe8]
mov byte [esp + 0x348], 4
call fcn.0040bf50
mov byte [esp + 0x344], 5
call fcn.004fe580
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 0x520fd6
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 0x5213a8
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.005b4520
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 0x52106a
lea edx, [esp + 0x138]
push edx
lea ecx, [esp + 0x104]
call fcn.0040bee0
jmp 0x5211cb
push 1
push 2
lea ecx, [esp + 0x50]
call fcn.0040b160
push esi
push str.ScreenSaveActive_
lea eax, [esp + 0xd0]
push eax
lea ecx, [esp + 0x54]
push 0x5f601c
push ecx
mov byte [esp + 0x358], 6
call fcn.00409c80
add esp, 8
push eax
call fcn.00409360
add esp, 8
push eax
call fcn.00409c80
add esp, 8
mov ecx, eax
call fcn.00419340
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x4c]
call fcn.00409610
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0x344], 7
jb 0x5210d9
mov eax, dword [eax + 4]
jmp 0x5210dc
add eax, 4
push eax
push str.BaseLib::CBaseInfo::GetScreenSaverState
push 0xbf1
push str..ywSMPpubBaseInfo.cpp
push 0xf0000000
call fcn.00409980
mov ecx, eax
call fcn.004fa910
lea ecx, [esp + 0x2c]
call fcn.0040c050
lea ecx, [esp + 0x48]
mov byte [esp + 0x344], 5
call fcn.00409ef0
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.0040b160
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x4c]
push 0x5f6004
push edx
mov byte [esp + 0x350], 8
call fcn.00409c80
add esp, 8
push eax
call fcn.00409c80
add esp, 8
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x4c]
call fcn.00409610
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0x344], 9
jb 0x521182
mov eax, dword [eax + 4]
jmp 0x521185
add eax, 4
push eax
push str.BaseLib::CBaseInfo::GetScreenSaverState
push 0xbf5
push str..ywSMPpubBaseInfo.cpp
push 0xf0000000
call fcn.00409980
mov ecx, eax
call fcn.004fa910
lea ecx, [esp + 0x2c]
call fcn.0040c050
lea ecx, [esp + 0x48]
mov byte [esp + 0x344], 5
call fcn.00409ef0
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x100
lea edx, [esp + 0x13c]
push ebx
push edx
call fcn.005b4520
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 0x52122f
lea ecx, [esp + 0x138]
push ecx
lea ecx, [esp + 0xe8]
call fcn.0040bee0
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, 0x10
jmp 0x52147b
push 1
push 2
lea ecx, [esp + 0x50]
call fcn.0040b160
push esi
push str.ScreenSaverIsSecure_
lea edx, [esp + 0xd0]
push edx
lea eax, [esp + 0x54]
push 0x5f601c
push eax
mov byte [esp + 0x358], 0xa
call fcn.00409c80
add esp, 8
push eax
call fcn.00409360
add esp, 8
push eax
call fcn.00409c80
add esp, 8
mov ecx, eax
call fcn.00419340
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x4c]
call fcn.00409610
mov ebp, 0x10
cmp dword [eax + 0x18], ebp
mov byte [esp + 0x344], 0xb
jb 0x5212a2
mov eax, dword [eax + 4]
jmp 0x5212a5
add eax, 4
push eax
push str.BaseLib::CBaseInfo::GetScreenSaverState
push 0xc02
push str..ywSMPpubBaseInfo.cpp
push 0xf0000000
call fcn.00409980
mov ecx, eax
call fcn.004fa910
lea ecx, [esp + 0x2c]
call fcn.0040c050
lea ecx, [esp + 0x48]
mov byte [esp + 0x344], 5
call fcn.00409ef0
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.0040b160
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x4c]
push 0x5f6004
push ecx
mov byte [esp + 0x350], 0xc
call fcn.00409c80
add esp, 8
push eax
call fcn.00409c80
add esp, 8
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x4c]
call fcn.00409610
cmp dword [eax + 0x18], ebp
mov byte [esp + 0x344], 0xd
jb 0x52134a
mov eax, dword [eax + 4]
jmp 0x52134d
add eax, 4
push eax
push str.BaseLib::CBaseInfo::GetScreenSaverState
push 0xc06
push str..ywSMPpubBaseInfo.cpp
push 0xf0000000
call fcn.00409980
mov ecx, eax
call fcn.004fa910
lea ecx, [esp + 0x2c]
call fcn.0040c050
lea ecx, [esp + 0x48]
mov byte [esp + 0x344], 5
call fcn.00409ef0
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 0x52147b
push 1
push 2
lea ecx, [esp + 0x140]
call fcn.0040b160
push esi
push 0x5f5ff0
lea edx, [esp + 0xd0]
push edx
lea eax, [esp + 0x144]
push 0x5f5fe4
push eax
mov byte [esp + 0x358], 0xe
call fcn.00409c80
add esp, 8
push eax
call fcn.00409360
add esp, 8
push eax
call fcn.00409c80
add esp, 8
mov ecx, eax
call fcn.00419340
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x13c]
call fcn.00409610
cmp dword [eax + 0x18], ebp
mov byte [esp + 0x344], 0xf
jb 0x52141f
mov eax, dword [eax + 4]
jmp 0x521422
add eax, 4
push eax
push str.BaseLib::CBaseInfo::GetScreenSaverState
push 0xc0d
push str..ywSMPpubBaseInfo.cpp
push 0xf0000000
call fcn.00409980
mov ecx, eax
call fcn.004fa910
lea ecx, [esp + 0x2c]
call fcn.0040c050
lea ecx, [esp + 0x184]
mov byte [esp + 0x344], 5
call fcn.00409f20
lea edx, [esp + 0x184]
push edx
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.005cccbe
add esp, 4
cmp dword [esp + 0x118], ebp
mov esi, dword [esp + 0x104]
jae 0x521492
lea esi, [esp + 0x104]
mov edi, 0x5f3938
mov ecx, 2
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x5214a9
push 0x5f3938
jmp 0x5214dc
cmp dword [esp + 0xfc], ebp
mov esi, dword [esp + 0xe8]
jae 0x5214c0
lea esi, [esp + 0xe8]
mov edi, 0x5f3938
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x5214d7
push 0x5f6040
jmp 0x5214dc
push 0x5f603c
mov ecx, dword [esp + 0x20]
call fcn.0040bee0
cmp dword [esp + 0xfc], ebp
jb 0x5214fe
mov eax, dword [esp + 0xe8]
push eax
call fcn.00594e98
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 0x521531
mov ecx, dword [esp + 0x104]
push ecx
call fcn.00594e98
add esp, 4
cmp dword [esp + 0xe0], ebp
mov dword [esp + 0x118], esi
mov dword [esp + 0x114], ebx
mov byte [esp + 0x104], bl
jb 0x52155f
mov edx, dword [esp + 0xcc]
push edx
call fcn.00594e98
add esp, 4
cmp dword [esp + 0x134], ebp
mov dword [esp + 0xe0], esi
mov dword [esp + 0xdc], ebx
mov byte [esp + 0xcc], bl
jb 0x52158d
mov eax, dword [esp + 0x120]
push eax
call fcn.00594e98
add esp, 4
mov eax, 1
jmp 0x52164d
push 1
push 2
lea ecx, [esp + 0x50]
call fcn.0040b160
lea ecx, [esp + 0x48]
push 0x5f6028
push ecx
mov dword [esp + 0x34c], ebx
call fcn.00409c80
add esp, 8
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x4c]
call fcn.00409610
mov esi, 0x10
cmp dword [eax + 0x18], esi
mov byte [esp + 0x344], 1
jb 0x5215e2
mov eax, dword [eax + 4]
jmp 0x5215e5
add eax, 4
push eax
push str.BaseLib::CBaseInfo::GetScreenSaverState
push 0xbd7
push str..ywSMPpubBaseInfo.cpp
push 0xf0000000
call fcn.00409980
mov ecx, eax
call fcn.004fa910
cmp dword [esp + 0x44], esi
jb 0x521619
mov eax, dword [esp + 0x30]
push eax
call fcn.00594e98
add esp, 4
lea ecx, [esp + 0x94]
mov dword [esp + 0x344], 0xffffffff
call fcn.00409f20
lea ecx, [esp + 0x94]
push ecx
mov dword [esp + 0x98], vtable.std::ios_base.0
call fcn.005cccbe
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.005b0968
add esp, 0x334
ret 8