Function at 0x419250
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4aacb8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x4cc850]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
push esi
push edi
mov eax, dword [0x4cc850]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov eax, dword [esp + 0x80]
xor ebx, ebx
cmp eax, ebx
mov edi, ecx
je 0x419475
cmp byte [esp + 0x84], bl
je 0x4194d7
mov eax, dword [eax + 0x14]
cmp eax, ebx
je 0x4192b8
cmp dword [eax + 0x1c], 8
jb 0x4192b3
mov edx, dword [eax + 8]
jmp 0x4192ba
lea edx, [eax + 8]
jmp 0x4192ba
xor edx, edx
mov eax, edx
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], ebx
mov word [esp + 0x54], bx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4192d0
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x58]
call fcn.00406d50
mov dword [esp + 0x78], ebx
cmp dword [edi + 0x64], 1
mov esi, vtable.CAUEnv.0
jne 0x419326
mov edx, dword [edi + 0x6c]
mov eax, dword [edi + 0x68]
lea ecx, [edi + 0x90]
push ecx
mov ecx, dword [edi + 0x58]
push edx
push ecx
add eax, 0x1c
push eax
lea edx, [esp + 0x34]
push edx
call fcn.00453430
lea eax, [esp + 0x28]
mov dword [esp + 0x24], esi
call fcn.00406b70
cmp dword [edi + 0x64], 2
jne 0x419395
mov eax, dword [edi + 0x68]
mov ecx, dword [edi + 0x5c]
push ecx
add eax, 0x1c
push eax
lea edx, [esp + 0x2c]
push edx
call fcn.00452b10
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x80], 1
call fcn.00455920
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x58]
mov byte [esp + 0x80], 2
call fcn.00406430
cmp dword [esp + 0x4c], 8
jb 0x419384
mov edx, dword [esp + 0x38]
push edx
call fcn.004692b1
add esp, 4
mov byte [esp + 0x78], bl
lea eax, [esp + 0x28]
mov dword [esp + 0x24], esi
call fcn.00406b70
lea eax, [esp + 0x1c]
push eax
push 0x2001f
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionSharedDLLs
xor esi, esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4193cc
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x14], esi
jmp 0x4193d5
cmp eax, 2
jne 0x41946c
cmp dword [esp + 0x68], 8
mov eax, dword [esp + 0x54]
jae 0x4193e4
lea eax, [esp + 0x54]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x28]
push ecx
push ebx
push eax
push esi
mov dword [esp + 0x34], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x41945c
cmp dword [esp + 0x20], 4
jne 0x419461
cmp esi, ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x419420
push esi
call edi
mov dword [esp + 0x14], ebx
add dword [esp + 0x18], 1
push str.SOFTWAREMicrosoftWindowsCurrentVersionSharedDLLs
push reloc.OLEAUT32.dll_SysReAllocString
mov edx, 0x2001f
lea esi, [esp + 0x1c]
call fcn.00412c70
test eax, eax
je 0x419479
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x41944c
push eax
call edi
lea ecx, [esp + 0x50]
call fcn.00401a00
xor al, al
jmp 0x4194d9
cmp eax, 2
je 0x41940f
cmp esi, ebx
je 0x41946c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x50]
call fcn.00401a00
xor al, al
jmp 0x4194d9
cmp dword [esp + 0x68], 8
mov eax, dword [esp + 0x54]
jae 0x419488
lea eax, [esp + 0x54]
mov edx, dword [esp + 0x18]
push 4
lea ecx, [esp + 0x24]
push ecx
push 4
push ebx
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x24]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
lea ecx, [esp + 0x14]
je 0x4194c0
call fcn.00412c30
lea ecx, [esp + 0x50]
call fcn.00401a00
xor al, al
jmp 0x4194d9
call fcn.00412c50
lea ecx, [esp + 0x14]
call fcn.00412c30
lea ecx, [esp + 0x50]
call fcn.00401a00
mov al, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.00483bf3
add esp, 0x6c
ret 8