Function at 0x4c999e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1274
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push esi
push edi
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp - 0x50]
add ecx, 4
call fcn.004acf3a
test eax, eax
je 0x4c99e2
push 0xd3
push str.docmgr.cpp
call fcn.004aed70
test eax, eax
je 0x4c99e2
int3
xor eax, eax
test eax, eax
jne 0x4c99bf
lea ecx, [ebp - 0x1c]
call fcn.004ab2f7
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004ab2f7
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
push ecx
call fcn.004b7ead
push eax
call fcn.00466764
mov ecx, dword [ebp - 0x50]
add ecx, 4
call fcn.004ad047
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 1
jmp 0x4c9a32
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x18], 0
je 0x4ca280
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x50]
add ecx, 4
call fcn.004ad069
mov ecx, dword [eax]
mov dword [ebp - 0x24], ecx
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x34]
call fcn.0045f27a
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x30]
call fcn.0045f27a
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x38]
call fcn.0045f27a
mov byte [ebp - 4], 4
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x2c]
call fcn.0045f27a
mov byte [ebp - 4], 5
cmp dword [ebp + 8], 0
je 0x4c9b10
lea ecx, [ebp - 0x44]
call fcn.004ab2f7
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004ab39a
push eax
call fcn.004b7ead
push eax
call dword [sym.imp.SHELL32.dll_ExtractIconA]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x4c9ae5
mov ecx, dword [ebp - 0x10]
push ecx
push 0x528350
lea edx, [ebp - 0x44]
push edx
call fcn.0042e776
add esp, 0xc
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
jmp 0x4c9af8
push 0
push 0x528350
lea ecx, [ebp - 0x44]
push ecx
call fcn.0042e776
add esp, 0xc
lea edx, [ebp - 0x44]
push edx
lea ecx, [ebp - 0x2c]
call fcn.0045fdce
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x44]
call fcn.0045f64c
lea ecx, [ebp - 0x28]
call fcn.004ab2f7
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x3c]
call fcn.004ab2f7
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x20]
call fcn.004ab2f7
mov byte [ebp - 4], 9
push 5
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x24]
call dword [edx + 0x6c]
test eax, eax
je 0x4ca227
lea ecx, [ebp - 0x3c]
call fcn.004ab37c
test eax, eax
jne 0x4ca227
push 6
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x24]
call dword [edx + 0x6c]
test eax, eax
jne 0x4c9b7e
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x20]
call fcn.0045f846
push 0x20
lea ecx, [ebp - 0x3c]
call fcn.00460185
cmp eax, 0xffffffff
je 0x4c9ba1
push 0xfc
push str.docmgr.cpp
call fcn.004aed70
test eax, eax
je 0x4c9ba1
int3
xor ecx, ecx
test ecx, ecx
jne 0x4c9b7e
push 0
lea ecx, [ebp - 0x20]
call fcn.004ab39a
push eax
lea ecx, [ebp - 0x3c]
call fcn.004ab39a
push eax
call fcn.004c94ad
test eax, eax
jne 0x4c9c1d
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x20]
call fcn.0045f64c
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x3c]
call fcn.0045f64c
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.0045f64c
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.0045f64c
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.0045f64c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.0045f64c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.0045f64c
jmp 0x4c9a29
cmp dword [ebp + 8], 0
je 0x4c9cb7
lea ecx, [ebp - 0x3c]
call fcn.004ab39a
push eax
push str._sDefaultIcon
lea edx, [ebp - 0x14]
push edx
call fcn.0042e776
add esp, 0xc
push 0
lea ecx, [ebp - 0x2c]
call fcn.004ab39a
push eax
lea ecx, [ebp - 0x14]
call fcn.004ab39a
push eax
call fcn.004c94ad
test eax, eax
jne 0x4c9cb7
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x20]
call fcn.0045f64c
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x3c]
call fcn.0045f64c
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.0045f64c
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.0045f64c
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.0045f64c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.0045f64c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.0045f64c
jmp 0x4c9a29
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x24]
call dword [edx + 0x6c]
test eax, eax
je 0x4c9cdc
lea ecx, [ebp - 0x14]
call fcn.004ab37c
test eax, eax
je 0x4c9ed1
push str.ddeexec
lea ecx, [ebp - 0x3c]
call fcn.004ab39a
push eax
push str._s_shellopen_s
lea eax, [ebp - 0x14]
push eax
call fcn.0042e776
add esp, 0x10
push 0
push str._open___1___
lea ecx, [ebp - 0x14]
call fcn.004ab39a
push eax
call fcn.004c94ad
test eax, eax
jne 0x4c9d6d
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x20]
call fcn.0045f64c
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x3c]
call fcn.0045f64c
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.0045f64c
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.0045f64c
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.0045f64c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.0045f64c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.0045f64c
jmp 0x4c9a29
cmp dword [ebp + 8], 0
je 0x4c9ec2
push str.ddeexec
lea ecx, [ebp - 0x3c]
call fcn.004ab39a
push eax
push str._s_shellprint_s
lea ecx, [ebp - 0x14]
push ecx
call fcn.0042e776
add esp, 0x10
push 0
push str._print___1___
lea ecx, [ebp - 0x14]
call fcn.004ab39a
push eax
call fcn.004c94ad
test eax, eax
jne 0x4c9e08
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x20]
call fcn.0045f64c
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x3c]
call fcn.0045f64c
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.0045f64c
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.0045f64c
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.0045f64c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.0045f64c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.0045f64c
jmp 0x4c9a29
push str.ddeexec
lea ecx, [ebp - 0x3c]
call fcn.004ab39a
push eax
push str._s_shellprintto_s
lea edx, [ebp - 0x14]
push edx
call fcn.0042e776
add esp, 0x10
push 0
push str._printto___1____2____3____4___
lea ecx, [ebp - 0x14]
call fcn.004ab39a
push eax
call fcn.004c94ad
test eax, eax
jne 0x4c9e99
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x20]
call fcn.0045f64c
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x3c]
call fcn.0045f64c
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.0045f64c
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.0045f64c
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.0045f64c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.0045f64c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.0045f64c
jmp 0x4c9a29
push str.__dde
lea ecx, [ebp - 0x34]
call fcn.0045fd55
push str.__dde
lea ecx, [ebp - 0x30]
call fcn.0045fd55
push str.__dde
lea ecx, [ebp - 0x38]
call fcn.0045fd55
jmp 0x4c9ecf
push str.___1_
lea ecx, [ebp - 0x34]
call fcn.0045fd55
jmp 0x4c9efe
push str.___1_
lea ecx, [ebp - 0x34]
call fcn.0045fd55
cmp dword [ebp + 8], 0
je 0x4c9efe
push str.__p___1_
lea ecx, [ebp - 0x30]
call fcn.0045fd55
push str.__pt___1____2____3____4_
lea ecx, [ebp - 0x38]
call fcn.0045fd55
push str.command
lea ecx, [ebp - 0x3c]
call fcn.004ab39a
push eax
push str._s_shellopen_s
lea eax, [ebp - 0x14]
push eax
call fcn.0042e776
add esp, 0x10
push 0
lea ecx, [ebp - 0x34]
call fcn.004ab39a
push eax
lea ecx, [ebp - 0x14]
call fcn.004ab39a
push eax
call fcn.004c94ad
test eax, eax
jne 0x4c9f93
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x20]
call fcn.0045f64c
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x3c]
call fcn.0045f64c
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.0045f64c
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.0045f64c
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.0045f64c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.0045f64c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.0045f64c
jmp 0x4c9a29
cmp dword [ebp + 8], 0
je 0x4ca0c7
push str.command
lea ecx, [ebp - 0x3c]
call fcn.004ab39a
push eax
push str._s_shellprint_s
lea ecx, [ebp - 0x14]
push ecx
call fcn.0042e776
add esp, 0x10
push 0
lea ecx, [ebp - 0x30]
call fcn.004ab39a
push eax
lea ecx, [ebp - 0x14]
call fcn.004ab39a
push eax
call fcn.004c94ad
test eax, eax
jne 0x4ca032
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x20]
call fcn.0045f64c
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x3c]
call fcn.0045f64c
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.0045f64c
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.0045f64c
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.0045f64c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.0045f64c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.0045f64c
jmp 0x4c9a29
push str.command
lea ecx, [ebp - 0x3c]
call fcn.004ab39a
push eax
push str._s_shellprintto_s
lea edx, [ebp - 0x14]
push edx
call fcn.0042e776
add esp, 0x10
push 0
lea ecx, [ebp - 0x38]
call fcn.004ab39a
push eax
lea ecx, [ebp - 0x14]
call fcn.004ab39a
push eax
call fcn.004c94ad
test eax, eax
jne 0x4ca0c7
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x20]
call fcn.0045f64c
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x3c]
call fcn.0045f64c
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.0045f64c
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.0045f64c
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.0045f64c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.0045f64c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.0045f64c
jmp 0x4c9a29
push 4
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x24]
call dword [edx + 0x6c]
lea ecx, [ebp - 0x28]
call fcn.004ab37c
test eax, eax
jne 0x4ca227
push 0
lea ecx, [ebp - 0x28]
call fcn.004ab573
movsx eax, al
cmp eax, 0x2e
je 0x4ca10e
push 0x153
push str.docmgr.cpp
call fcn.004aed70
test eax, eax
je 0x4ca10e
int3
xor ecx, ecx
test ecx, ecx
jne 0x4ca0e8
mov dword [ebp - 0x48], 0x208
lea edx, [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x48]
push eax
lea ecx, [ebp - 0x14]
call fcn.0045fdf8
push eax
lea ecx, [ebp - 0x28]
call fcn.004ab39a
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov dword [ebp - 0x4c], eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.0045ff33
cmp dword [ebp - 0x4c], 0
jne 0x4ca179
lea ecx, [ebp - 0x14]
call fcn.004ab37c
test eax, eax
jne 0x4ca179
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.004ab5db
and eax, 0xff
test eax, eax
je 0x4ca227
push 0
lea ecx, [ebp - 0x3c]
call fcn.004ab39a
push eax
lea ecx, [ebp - 0x28]
call fcn.004ab39a
push eax
call fcn.004c94ad
test eax, eax
jne 0x4ca1ef
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x20]
call fcn.0045f64c
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x3c]
call fcn.0045f64c
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.0045f64c
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.0045f64c
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.0045f64c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.0045f64c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.0045f64c
jmp 0x4c9a29
cmp dword [ebp + 8], 0
je 0x4ca227
lea ecx, [ebp - 0x28]
call fcn.004ab39a
push eax
push str._sShellNew
lea eax, [ebp - 0x14]
push eax
call fcn.0042e776
add esp, 0xc
push str.NullFile
push 0x5282b8
lea ecx, [ebp - 0x14]
call fcn.004ab39a
push eax
call fcn.004c94ad
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x20]
call fcn.0045f64c
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x3c]
call fcn.0045f64c
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.0045f64c
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.0045f64c
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.0045f64c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.0045f64c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.0045f64c
jmp 0x4c9a29
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0045f64c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0045f64c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4