Function at 0x5004d4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51e8d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x38]
add ecx, 4
call fcn.004e32b1
test eax, eax
je 0x500515
push 0x7c
push str.docmgr.cpp
call fcn.004e5110
test eax, eax
je 0x500515
int3
xor eax, eax
test eax, eax
jne 0x5004f5
lea ecx, [ebp - 0x1c]
call fcn.004e1637
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004e1637
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
push ecx
call fcn.004ee42d
push eax
call fcn.00499454
mov ecx, dword [ebp - 0x38]
add ecx, 4
call fcn.004e33be
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 1
jmp 0x500565
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x18], 0
je 0x500882
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x38]
add ecx, 4
call fcn.004e33e0
mov ecx, dword [eax]
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x28]
call fcn.004e1637
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.004e1637
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.004e1637
mov byte [ebp - 4], 4
push 5
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x24]
call dword [edx + 0x6c]
test eax, eax
je 0x500859
lea ecx, [ebp - 0x2c]
call fcn.004e16bc
test eax, eax
jne 0x500859
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 0x5005f1
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x20]
call fcn.00493146
push 0x20
lea ecx, [ebp - 0x2c]
call fcn.00493a85
cmp eax, 0xffffffff
je 0x500614
push 0x90
push str.docmgr.cpp
call fcn.004e5110
test eax, eax
je 0x500614
int3
xor ecx, ecx
test ecx, ecx
jne 0x5005f1
lea ecx, [ebp - 0x2c]
call fcn.004e16da
push eax
push str._sDefaultIcon
lea edx, [ebp - 0x14]
push edx
call fcn.0046652c
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.004e16da
push eax
call fcn.005002d0
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 0x500667
lea ecx, [ebp - 0x14]
call fcn.004e16bc
test eax, eax
je 0x5006ee
push str.ddeexec
lea ecx, [ebp - 0x2c]
call fcn.004e16da
push eax
push str._s_shellopen_s
lea eax, [ebp - 0x14]
push eax
call fcn.0046652c
add esp, 0x10
lea ecx, [ebp - 0x14]
call fcn.004e16da
push eax
call fcn.005002d0
push str.ddeexec
lea ecx, [ebp - 0x2c]
call fcn.004e16da
push eax
push str._s_shellprint_s
lea ecx, [ebp - 0x14]
push ecx
call fcn.0046652c
add esp, 0x10
lea ecx, [ebp - 0x14]
call fcn.004e16da
push eax
call fcn.005002d0
push str.ddeexec
lea ecx, [ebp - 0x2c]
call fcn.004e16da
push eax
push str._s_shellprintto_s
lea edx, [ebp - 0x14]
push edx
call fcn.0046652c
add esp, 0x10
lea ecx, [ebp - 0x14]
call fcn.004e16da
push eax
call fcn.005002d0
push str.command
lea ecx, [ebp - 0x2c]
call fcn.004e16da
push eax
push str._s_shellopen_s
lea eax, [ebp - 0x14]
push eax
call fcn.0046652c
add esp, 0x10
lea ecx, [ebp - 0x14]
call fcn.004e16da
push eax
call fcn.005002d0
push str.command
lea ecx, [ebp - 0x2c]
call fcn.004e16da
push eax
push str._s_shellprint_s
lea ecx, [ebp - 0x14]
push ecx
call fcn.0046652c
add esp, 0x10
lea ecx, [ebp - 0x14]
call fcn.004e16da
push eax
call fcn.005002d0
push str.command
lea ecx, [ebp - 0x2c]
call fcn.004e16da
push eax
push str._s_shellprintto_s
lea edx, [ebp - 0x14]
push edx
call fcn.0046652c
add esp, 0x10
lea ecx, [ebp - 0x14]
call fcn.004e16da
push eax
call fcn.005002d0
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.004e16bc
test eax, eax
jne 0x500859
push 0
lea ecx, [ebp - 0x28]
call fcn.004e18b3
movsx eax, al
cmp eax, 0x2e
je 0x5007bc
push 0xbb
push str.docmgr.cpp
call fcn.004e5110
test eax, eax
je 0x5007bc
int3
xor ecx, ecx
test ecx, ecx
jne 0x500796
mov dword [ebp - 0x30], 0x208
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0x14]
call fcn.004936f8
push eax
lea ecx, [ebp - 0x28]
call fcn.004e16da
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov dword [ebp - 0x34], eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.00493833
cmp dword [ebp - 0x34], 0
jne 0x500823
lea ecx, [ebp - 0x14]
call fcn.004e16bc
test eax, eax
jne 0x500823
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.004e191b
and eax, 0xff
test eax, eax
je 0x500859
lea ecx, [ebp - 0x28]
call fcn.004e16da
push eax
push str._sShellNew
lea eax, [ebp - 0x14]
push eax
call fcn.0046652c
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.004e16da
push eax
call fcn.005002d0
lea ecx, [ebp - 0x28]
call fcn.004e16da
push eax
call fcn.005002d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.00492f4c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00492f4c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00492f4c
jmp 0x50055c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00492f4c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00492f4c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret