Function at 0x46c150
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51a74b
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x5c5c30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x38]
add ecx, 4
call fcn.0042f350
test eax, eax
je 0x46c198
push 0x7a
push 0x550ba0
call fcn.0045b590
test eax, eax
je 0x46c198
int3
lea ecx, [ebp - 0x14]
call fcn.0040ac00
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0040ac00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
push ecx
call fcn.0043a110
push eax
call fcn.0046bc80
mov ecx, dword [ebp - 0x38]
add ecx, 4
call fcn.0042f470
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 1
jmp 0x46c1e2
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x18], 0
je 0x46c50a
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x38]
add ecx, 4
call fcn.0042f4b0
mov ecx, dword [eax]
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x2c]
call fcn.0040ac00
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.0040ac00
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.0040ac00
mov byte [ebp - 4], 4
push 5
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x20]
mov eax, dword [edx + 0x6c]
call eax
test eax, eax
je 0x46c4e1
lea ecx, [ebp - 0x28]
call fcn.0040b370
movzx ecx, al
test ecx, ecx
jne 0x46c4e1
push 6
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x20]
mov eax, dword [edx + 0x6c]
call eax
test eax, eax
jne 0x46c275
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x24]
call fcn.0040ad90
push 0
push 0x20
lea ecx, [ebp - 0x28]
call fcn.0040af00
cmp eax, 0xffffffff
je 0x46c29a
push 0x8e
push 0x550bd8
call fcn.0045b590
test eax, eax
je 0x46c29a
int3
lea ecx, [ebp - 0x28]
call fcn.0040d7e0
push eax
push str._sDefaultIcon
lea eax, [ebp - 0x10]
push eax
call fcn.0040db10
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.0040d7e0
push eax
call fcn.0046bec0
push 0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x20]
mov edx, dword [eax + 0x6c]
call edx
test eax, eax
je 0x46c2ec
lea ecx, [ebp - 0x10]
call fcn.0040b370
movzx eax, al
test eax, eax
je 0x46c373
push str.ddeexec
lea ecx, [ebp - 0x28]
call fcn.0040d7e0
push eax
push str._s_shellopen_s
lea ecx, [ebp - 0x10]
push ecx
call fcn.0040db10
add esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.0040d7e0
push eax
call fcn.0046bec0
push str.ddeexec
lea ecx, [ebp - 0x28]
call fcn.0040d7e0
push eax
push str._s_shellprint_s
lea edx, [ebp - 0x10]
push edx
call fcn.0040db10
add esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.0040d7e0
push eax
call fcn.0046bec0
push str.ddeexec
lea ecx, [ebp - 0x28]
call fcn.0040d7e0
push eax
push str._s_shellprintto_s
lea eax, [ebp - 0x10]
push eax
call fcn.0040db10
add esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.0040d7e0
push eax
call fcn.0046bec0
push str.command
lea ecx, [ebp - 0x28]
call fcn.0040d7e0
push eax
push str._s_shellopen_s
lea ecx, [ebp - 0x10]
push ecx
call fcn.0040db10
add esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.0040d7e0
push eax
call fcn.0046bec0
push str.command
lea ecx, [ebp - 0x28]
call fcn.0040d7e0
push eax
push str._s_shellprint_s
lea edx, [ebp - 0x10]
push edx
call fcn.0040db10
add esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.0040d7e0
push eax
call fcn.0046bec0
push str.command
lea ecx, [ebp - 0x28]
call fcn.0040d7e0
push eax
push str._s_shellprintto_s
lea eax, [ebp - 0x10]
push eax
call fcn.0040db10
add esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.0040d7e0
push eax
call fcn.0046bec0
push 4
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x20]
mov edx, dword [eax + 0x6c]
call edx
lea ecx, [ebp - 0x2c]
call fcn.0040b370
movzx eax, al
test eax, eax
jne 0x46c4e1
push 0
lea ecx, [ebp - 0x2c]
call fcn.00415090
movzx ecx, ax
cmp ecx, 0x2e
je 0x46c446
push 0xb9
push 0x550c10
call fcn.0045b590
test eax, eax
je 0x46c446
int3
mov dword [ebp - 0x34], 0x208
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0040bf20
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040d7e0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov dword [ebp - 0x30], eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00426f40
cmp dword [ebp - 0x30], 0
jne 0x46c4ab
lea ecx, [ebp - 0x10]
call fcn.0040b370
movzx edx, al
test edx, edx
jne 0x46c4ab
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.0040be30
add esp, 8
movzx edx, al
test edx, edx
je 0x46c4e1
lea ecx, [ebp - 0x2c]
call fcn.0040d7e0
push eax
push str._sShellNew
lea eax, [ebp - 0x10]
push eax
call fcn.0040db10
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.0040d7e0
push eax
call fcn.0046bec0
lea ecx, [ebp - 0x2c]
call fcn.0040d7e0
push eax
call fcn.0046bec0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.0040ad40
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.0040ad40
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.0040ad40
jmp 0x46c1d9
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0040ad40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040ad40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret