Function at 0x452420
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56cb58
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x5f969c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov byte [ebp - 0x55], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x4c]
call fcn.00408982
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00408982
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x54]
push edx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x68], esp
lea eax, [ebp + 8]
push eax
call fcn.00408ba7
mov dword [ebp - 0x7c], eax
call fcn.00451f70
add esp, 0x28
mov byte [ebp - 0x7d], al
movzx ecx, byte [ebp - 0x7d]
test ecx, ecx
jne 0x4524df
mov byte [ebp - 0x69], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00406210
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00406210
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00406210
mov al, byte [ebp - 0x69]
jmp 0x45261f
cmp dword [ebp - 0x54], reloc.WS2_32.dll_accept
jne 0x452502
lea edx, [ebp - 0x54]
push edx
push 0xf003f
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
je 0x452502
mov dword [ebp - 0x54], reloc.WS2_32.dll_accept
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x50]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x4c]
call fcn.00406410
push eax
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4525d4
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x60], 0
lea edx, [ebp - 0x60]
push edx
push 0
lea eax, [ebp - 0x5c]
push eax
push 0
lea ecx, [ebp - 0x2c]
call fcn.00406410
push eax
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4525ca
mov edx, dword [ebp - 0x5c]
cmp edx, dword [ebp + 0x24]
jne 0x4525ca
mov eax, dword [ebp - 0x60]
push eax
call fcn.0050721e
add esp, 4
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x64], ecx
lea edx, [ebp - 0x60]
push edx
mov eax, dword [ebp - 0x64]
push eax
lea ecx, [ebp - 0x5c]
push ecx
push 0
lea ecx, [ebp - 0x2c]
call fcn.00406410
push eax
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4525b8
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp - 0x64]
mov dword [eax], ecx
mov edx, dword [ebp + 0x2c]
mov eax, dword [ebp - 0x60]
mov dword [edx], eax
mov byte [ebp - 0x55], 1
jmp 0x4525ca
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x74], ecx
mov edx, dword [ebp - 0x74]
push edx
call fcn.0053f10f
add esp, 4
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x54]
and ecx, 0x80000000
cmp ecx, 0x80000000
je 0x4525ef
mov edx, dword [ebp - 0x54]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x55]
mov byte [ebp - 0x75], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00406210
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00406210
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00406210
mov al, byte [ebp - 0x75]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053c85d
mov esp, ebp
pop ebp
ret