Function at 0x521e20
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5d3070
mov eax, dword fs:[0]
push eax
sub esp, 0x328
mov eax, dword [0x65d4e4]
xor eax, esp
mov dword [esp + 0x324], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65d4e4]
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.005b5540
add esp, 0xc
cmp esi, ebx
mov dword [esp + 0x28], 0x100
je 0x522537
cmp byte [esi], bl
je 0x522537
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x23c]
push eax
push esi
call fcn.004ffa60
add esp, 0xc
test eax, eax
je 0x522537
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.0040be30
push 0x16
push str.Control_PanelDesktop
lea ecx, [esp + 0xd0]
mov byte [esp + 0x34c], 3
call fcn.004080f0
push 0x5f4938
lea ecx, [esp + 0x104]
call fcn.0040be30
push 0x5f4938
lea ecx, [esp + 0xe8]
mov byte [esp + 0x348], 4
call fcn.0040be30
mov byte [esp + 0x344], 5
call fcn.004ff5a0
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 0x521f76
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 0x522348
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.005b5540
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 0x52200a
lea edx, [esp + 0x138]
push edx
lea ecx, [esp + 0x104]
call fcn.0040bdc0
jmp 0x52216b
push 1
push 2
lea ecx, [esp + 0x50]
call fcn.0040b040
push esi
push str.ScreenSaveActive_
lea eax, [esp + 0xd0]
push eax
lea ecx, [esp + 0x54]
push 0x5f701c
push ecx
mov byte [esp + 0x358], 6
call fcn.00409b60
add esp, 8
push eax
call fcn.00409240
add esp, 8
push eax
call fcn.00409b60
add esp, 8
mov ecx, eax
call fcn.00419bb0
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x4c]
call fcn.004094f0
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0x344], 7
jb 0x522079
mov eax, dword [eax + 4]
jmp 0x52207c
add eax, 4
push eax
push str.BaseLib::CBaseInfo::GetScreenSaverState
push 0xbf1
push str..ywSMPpubBaseInfo.cpp
push 0xf0000000
call fcn.00409860
mov ecx, eax
call fcn.004fb930
lea ecx, [esp + 0x2c]
call fcn.0040bf30
lea ecx, [esp + 0x48]
mov byte [esp + 0x344], 5
call fcn.00409dd0
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.0040b040
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x4c]
push 0x5f7004
push edx
mov byte [esp + 0x350], 8
call fcn.00409b60
add esp, 8
push eax
call fcn.00409b60
add esp, 8
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x4c]
call fcn.004094f0
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0x344], 9
jb 0x522122
mov eax, dword [eax + 4]
jmp 0x522125
add eax, 4
push eax
push str.BaseLib::CBaseInfo::GetScreenSaverState
push 0xbf5
push str..ywSMPpubBaseInfo.cpp
push 0xf0000000
call fcn.00409860
mov ecx, eax
call fcn.004fb930
lea ecx, [esp + 0x2c]
call fcn.0040bf30
lea ecx, [esp + 0x48]
mov byte [esp + 0x344], 5
call fcn.00409dd0
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.005b5540
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 0x5221cf
lea ecx, [esp + 0x138]
push ecx
lea ecx, [esp + 0xe8]
call fcn.0040bdc0
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, 0x10
jmp 0x52241b
push 1
push 2
lea ecx, [esp + 0x50]
call fcn.0040b040
push esi
push str.ScreenSaverIsSecure_
lea edx, [esp + 0xd0]
push edx
lea eax, [esp + 0x54]
push 0x5f701c
push eax
mov byte [esp + 0x358], 0xa
call fcn.00409b60
add esp, 8
push eax
call fcn.00409240
add esp, 8
push eax
call fcn.00409b60
add esp, 8
mov ecx, eax
call fcn.00419bb0
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x4c]
call fcn.004094f0
mov ebp, 0x10
cmp dword [eax + 0x18], ebp
mov byte [esp + 0x344], 0xb
jb 0x522242
mov eax, dword [eax + 4]
jmp 0x522245
add eax, 4
push eax
push str.BaseLib::CBaseInfo::GetScreenSaverState
push 0xc02
push str..ywSMPpubBaseInfo.cpp
push 0xf0000000
call fcn.00409860
mov ecx, eax
call fcn.004fb930
lea ecx, [esp + 0x2c]
call fcn.0040bf30
lea ecx, [esp + 0x48]
mov byte [esp + 0x344], 5
call fcn.00409dd0
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.0040b040
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x4c]
push 0x5f7004
push ecx
mov byte [esp + 0x350], 0xc
call fcn.00409b60
add esp, 8
push eax
call fcn.00409b60
add esp, 8
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x4c]
call fcn.004094f0
cmp dword [eax + 0x18], ebp
mov byte [esp + 0x344], 0xd
jb 0x5222ea
mov eax, dword [eax + 4]
jmp 0x5222ed
add eax, 4
push eax
push str.BaseLib::CBaseInfo::GetScreenSaverState
push 0xc06
push str..ywSMPpubBaseInfo.cpp
push 0xf0000000
call fcn.00409860
mov ecx, eax
call fcn.004fb930
lea ecx, [esp + 0x2c]
call fcn.0040bf30
lea ecx, [esp + 0x48]
mov byte [esp + 0x344], 5
call fcn.00409dd0
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 0x52241b
push 1
push 2
lea ecx, [esp + 0x140]
call fcn.0040b040
push esi
push 0x5f6ff0
lea edx, [esp + 0xd0]
push edx
lea eax, [esp + 0x144]
push 0x5f6fe4
push eax
mov byte [esp + 0x358], 0xe
call fcn.00409b60
add esp, 8
push eax
call fcn.00409240
add esp, 8
push eax
call fcn.00409b60
add esp, 8
mov ecx, eax
call fcn.00419bb0
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x13c]
call fcn.004094f0
cmp dword [eax + 0x18], ebp
mov byte [esp + 0x344], 0xf
jb 0x5223bf
mov eax, dword [eax + 4]
jmp 0x5223c2
add eax, 4
push eax
push str.BaseLib::CBaseInfo::GetScreenSaverState
push 0xc0d
push str..ywSMPpubBaseInfo.cpp
push 0xf0000000
call fcn.00409860
mov ecx, eax
call fcn.004fb930
lea ecx, [esp + 0x2c]
call fcn.0040bf30
lea ecx, [esp + 0x184]
mov byte [esp + 0x344], 5
call fcn.00409e00
lea edx, [esp + 0x184]
push edx
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.005cdcde
add esp, 4
cmp dword [esp + 0x118], ebp
mov esi, dword [esp + 0x104]
jae 0x522432
lea esi, [esp + 0x104]
mov edi, 0x5f4938
mov ecx, 2
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x522449
push 0x5f4938
jmp 0x52247c
cmp dword [esp + 0xfc], ebp
mov esi, dword [esp + 0xe8]
jae 0x522460
lea esi, [esp + 0xe8]
mov edi, 0x5f4938
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x522477
push 0x5f7040
jmp 0x52247c
push 0x5f703c
mov ecx, dword [esp + 0x20]
call fcn.0040bdc0
cmp dword [esp + 0xfc], ebp
jb 0x52249e
mov eax, dword [esp + 0xe8]
push eax
call fcn.00595eb8
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 0x5224d1
mov ecx, dword [esp + 0x104]
push ecx
call fcn.00595eb8
add esp, 4
cmp dword [esp + 0xe0], ebp
mov dword [esp + 0x118], esi
mov dword [esp + 0x114], ebx
mov byte [esp + 0x104], bl
jb 0x5224ff
mov edx, dword [esp + 0xcc]
push edx
call fcn.00595eb8
add esp, 4
cmp dword [esp + 0x134], ebp
mov dword [esp + 0xe0], esi
mov dword [esp + 0xdc], ebx
mov byte [esp + 0xcc], bl
jb 0x52252d
mov eax, dword [esp + 0x120]
push eax
call fcn.00595eb8
add esp, 4
mov eax, 1
jmp 0x5225ed
push 1
push 2
lea ecx, [esp + 0x50]
call fcn.0040b040
lea ecx, [esp + 0x48]
push 0x5f7028
push ecx
mov dword [esp + 0x34c], ebx
call fcn.00409b60
add esp, 8
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x4c]
call fcn.004094f0
mov esi, 0x10
cmp dword [eax + 0x18], esi
mov byte [esp + 0x344], 1
jb 0x522582
mov eax, dword [eax + 4]
jmp 0x522585
add eax, 4
push eax
push str.BaseLib::CBaseInfo::GetScreenSaverState
push 0xbd7
push str..ywSMPpubBaseInfo.cpp
push 0xf0000000
call fcn.00409860
mov ecx, eax
call fcn.004fb930
cmp dword [esp + 0x44], esi
jb 0x5225b9
mov eax, dword [esp + 0x30]
push eax
call fcn.00595eb8
add esp, 4
lea ecx, [esp + 0x94]
mov dword [esp + 0x344], 0xffffffff
call fcn.00409e00
lea ecx, [esp + 0x94]
push ecx
mov dword [esp + 0x98], vtable.std::ios_base.0
call fcn.005cdcde
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.005b1988
add esp, 0x334
ret 8