Function at 0x5067c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5abf4c
mov eax, dword fs:[0]
push eax
sub esp, 0x468
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push ecx
push str.CBaseOSSpec::SetNetworkPrinterToDefault
lea ecx, [ebp - 0x458]
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x50688a
test byte [ecx + 0x1c], 1
je 0x50684f
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5dd2b8
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x16
call fcn.00401840
mov ecx, dword [0x608f30]
add esp, 0xc
cmp ecx, 0x608f30
je 0x50688a
test byte [ecx + 0x1c], 1
je 0x50688a
cmp dword [0x608f68], 8
mov eax, 0x608f54
push ebx
cmovae eax, dword [0x608f54]
mov edx, 0x5dd2b8
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x17
call fcn.00405920
add esp, 0x10
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00571c00
add esp, 0xc
lea ecx, [ebp - 0x45c]
push ebx
call fcn.00403320
lea eax, [ebp - 0x460]
mov byte [ebp - 4], 1
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionDevices
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
or esi, 0xffffffff
test eax, eax
jne 0x506a00
lea eax, [ebp - 0x464]
mov dword [ebp - 0x468], 1
push eax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x464], 0x410
push eax
lea eax, [ebp - 0x468]
push eax
push 0
push dword [ebp - 0x45c]
push dword [ebp - 0x460]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x5069f4
push 0x5cc9f0
lea edx, [ebp - 0x45c]
lea ecx, [ebp - 0x474]
call fcn.0042af40
lea ecx, [ebp - 0x420]
mov byte [ebp - 4], 2
push ecx
mov edx, eax
lea ecx, [ebp - 0x470]
call fcn.0042af40
add esp, 8
mov byte [ebp - 4], 3
mov edx, dword [eax]
mov edi, dword [ebp - 0x45c]
add edi, 0xfffffff0
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x5069b2
cmp dword [edi + 0xc], 0
jl 0x5069a3
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x5069a3
call fcn.00403af0
mov dword [ebp - 0x46c], eax
lea edx, [edi + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x506998
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x46c]
add eax, 0x10
mov dword [ebp - 0x45c], eax
jmp 0x5069b2
push dword [edx - 0xc]
lea ecx, [ebp - 0x45c]
push edx
call fcn.00403bb0
mov byte [ebp - 4], 2
mov eax, esi
mov edx, dword [ebp - 0x470]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x5069d3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x474]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x5069f4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x460]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x506a46
test byte [ecx + 0x1c], 4
je 0x506a46
cmp dword [0x608f68], 8
mov eax, 0x608f54
push dword [ebp - 0x45c]
cmovae eax, dword [0x608f54]
mov edx, 0x5dd2b8
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x18
call fcn.00405920
add esp, 0x10
push dword [ebp - 0x45c]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov byte [ebp - 0x454], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x506a9b
test byte [ecx + 0x1c], 1
je 0x506a9b
cmp dword [0x608f68], 8
mov eax, 0x608f54
push ebx
cmovae eax, dword [0x608f54]
mov edx, 0x5dd2b8
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x19
call fcn.00405920
add esp, 0x10
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x45c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x506aba
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x458]
call fcn.0040a570
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 4