Function at 0x50824e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x557204
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.004ea5f1
test eax, eax
je 0x508292
push 0xd3
push str.docmgr.cpp
call fcn.004ec450
test eax, eax
je 0x508292
int3
xor eax, eax
test eax, eax
jne 0x50826f
lea ecx, [ebp - 0x1c]
call fcn.004e8977
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004e8977
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
push ecx
call fcn.004f576d
push eax
call fcn.004a1004
mov ecx, dword [ebp - 0x50]
add ecx, 4
call fcn.004ea6fe
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 1
jmp 0x5082e2
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x18], 0
je 0x508b30
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x50]
add ecx, 4
call fcn.004ea720
mov ecx, dword [eax]
mov dword [ebp - 0x24], ecx
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x34]
call fcn.0049ad2a
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x30]
call fcn.0049ad2a
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x38]
call fcn.0049ad2a
mov byte [ebp - 4], 4
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x2c]
call fcn.0049ad2a
mov byte [ebp - 4], 5
cmp dword [ebp + 8], 0
je 0x5083c0
lea ecx, [ebp - 0x44]
call fcn.004e8977
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004e8a1a
push eax
call fcn.004f576d
push eax
call dword [sym.imp.SHELL32.dll_ExtractIconA]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x508395
mov ecx, dword [ebp - 0x10]
push ecx
push 0x5e86d8
lea edx, [ebp - 0x44]
push edx
call fcn.00467cbc
add esp, 0xc
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
jmp 0x5083a8
push 0
push 0x5e86d8
lea ecx, [ebp - 0x44]
push ecx
call fcn.00467cbc
add esp, 0xc
lea edx, [ebp - 0x44]
push edx
lea ecx, [ebp - 0x2c]
call fcn.0049b87e
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x44]
call fcn.0049b0fc
lea ecx, [ebp - 0x28]
call fcn.004e8977
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x3c]
call fcn.004e8977
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x20]
call fcn.004e8977
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 0x508ad7
lea ecx, [ebp - 0x3c]
call fcn.004e89fc
test eax, eax
jne 0x508ad7
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 0x50842e
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x20]
call fcn.0049b2f6
push 0x20
lea ecx, [ebp - 0x3c]
call fcn.0049bc35
cmp eax, 0xffffffff
je 0x508451
push 0xfc
push str.docmgr.cpp
call fcn.004ec450
test eax, eax
je 0x508451
int3
xor ecx, ecx
test ecx, ecx
jne 0x50842e
push 0
lea ecx, [ebp - 0x20]
call fcn.004e8a1a
push eax
lea ecx, [ebp - 0x3c]
call fcn.004e8a1a
push eax
call fcn.00507d5d
test eax, eax
jne 0x5084cd
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x20]
call fcn.0049b0fc
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x3c]
call fcn.0049b0fc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.0049b0fc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.0049b0fc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.0049b0fc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.0049b0fc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.0049b0fc
jmp 0x5082d9
cmp dword [ebp + 8], 0
je 0x508567
lea ecx, [ebp - 0x3c]
call fcn.004e8a1a
push eax
push str._sDefaultIcon
lea edx, [ebp - 0x14]
push edx
call fcn.00467cbc
add esp, 0xc
push 0
lea ecx, [ebp - 0x2c]
call fcn.004e8a1a
push eax
lea ecx, [ebp - 0x14]
call fcn.004e8a1a
push eax
call fcn.00507d5d
test eax, eax
jne 0x508567
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x20]
call fcn.0049b0fc
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x3c]
call fcn.0049b0fc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.0049b0fc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.0049b0fc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.0049b0fc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.0049b0fc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.0049b0fc
jmp 0x5082d9
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 0x50858c
lea ecx, [ebp - 0x14]
call fcn.004e89fc
test eax, eax
je 0x508781
push str.ddeexec
lea ecx, [ebp - 0x3c]
call fcn.004e8a1a
push eax
push str._s_shellopen_s
lea eax, [ebp - 0x14]
push eax
call fcn.00467cbc
add esp, 0x10
push 0
push str._open___1___
lea ecx, [ebp - 0x14]
call fcn.004e8a1a
push eax
call fcn.00507d5d
test eax, eax
jne 0x50861d
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x20]
call fcn.0049b0fc
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x3c]
call fcn.0049b0fc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.0049b0fc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.0049b0fc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.0049b0fc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.0049b0fc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.0049b0fc
jmp 0x5082d9
cmp dword [ebp + 8], 0
je 0x508772
push str.ddeexec
lea ecx, [ebp - 0x3c]
call fcn.004e8a1a
push eax
push str._s_shellprint_s
lea ecx, [ebp - 0x14]
push ecx
call fcn.00467cbc
add esp, 0x10
push 0
push str._print___1___
lea ecx, [ebp - 0x14]
call fcn.004e8a1a
push eax
call fcn.00507d5d
test eax, eax
jne 0x5086b8
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x20]
call fcn.0049b0fc
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x3c]
call fcn.0049b0fc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.0049b0fc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.0049b0fc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.0049b0fc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.0049b0fc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.0049b0fc
jmp 0x5082d9
push str.ddeexec
lea ecx, [ebp - 0x3c]
call fcn.004e8a1a
push eax
push str._s_shellprintto_s
lea edx, [ebp - 0x14]
push edx
call fcn.00467cbc
add esp, 0x10
push 0
push str._printto___1____2____3____4___
lea ecx, [ebp - 0x14]
call fcn.004e8a1a
push eax
call fcn.00507d5d
test eax, eax
jne 0x508749
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x20]
call fcn.0049b0fc
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x3c]
call fcn.0049b0fc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.0049b0fc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.0049b0fc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.0049b0fc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.0049b0fc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.0049b0fc
jmp 0x5082d9
push str.__dde
lea ecx, [ebp - 0x34]
call fcn.0049b805
push str.__dde
lea ecx, [ebp - 0x30]
call fcn.0049b805
push str.__dde
lea ecx, [ebp - 0x38]
call fcn.0049b805
jmp 0x50877f
push str.___1_
lea ecx, [ebp - 0x34]
call fcn.0049b805
jmp 0x5087ae
push str.___1_
lea ecx, [ebp - 0x34]
call fcn.0049b805
cmp dword [ebp + 8], 0
je 0x5087ae
push str.__p___1_
lea ecx, [ebp - 0x30]
call fcn.0049b805
push str.__pt___1____2____3____4_
lea ecx, [ebp - 0x38]
call fcn.0049b805
push str.command
lea ecx, [ebp - 0x3c]
call fcn.004e8a1a
push eax
push str._s_shellopen_s
lea eax, [ebp - 0x14]
push eax
call fcn.00467cbc
add esp, 0x10
push 0
lea ecx, [ebp - 0x34]
call fcn.004e8a1a
push eax
lea ecx, [ebp - 0x14]
call fcn.004e8a1a
push eax
call fcn.00507d5d
test eax, eax
jne 0x508843
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x20]
call fcn.0049b0fc
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x3c]
call fcn.0049b0fc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.0049b0fc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.0049b0fc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.0049b0fc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.0049b0fc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.0049b0fc
jmp 0x5082d9
cmp dword [ebp + 8], 0
je 0x508977
push str.command
lea ecx, [ebp - 0x3c]
call fcn.004e8a1a
push eax
push str._s_shellprint_s
lea ecx, [ebp - 0x14]
push ecx
call fcn.00467cbc
add esp, 0x10
push 0
lea ecx, [ebp - 0x30]
call fcn.004e8a1a
push eax
lea ecx, [ebp - 0x14]
call fcn.004e8a1a
push eax
call fcn.00507d5d
test eax, eax
jne 0x5088e2
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x20]
call fcn.0049b0fc
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x3c]
call fcn.0049b0fc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.0049b0fc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.0049b0fc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.0049b0fc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.0049b0fc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.0049b0fc
jmp 0x5082d9
push str.command
lea ecx, [ebp - 0x3c]
call fcn.004e8a1a
push eax
push str._s_shellprintto_s
lea edx, [ebp - 0x14]
push edx
call fcn.00467cbc
add esp, 0x10
push 0
lea ecx, [ebp - 0x38]
call fcn.004e8a1a
push eax
lea ecx, [ebp - 0x14]
call fcn.004e8a1a
push eax
call fcn.00507d5d
test eax, eax
jne 0x508977
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x20]
call fcn.0049b0fc
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x3c]
call fcn.0049b0fc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.0049b0fc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.0049b0fc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.0049b0fc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.0049b0fc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.0049b0fc
jmp 0x5082d9
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.004e89fc
test eax, eax
jne 0x508ad7
push 0
lea ecx, [ebp - 0x28]
call fcn.004e8bf3
movsx eax, al
cmp eax, 0x2e
je 0x5089be
push 0x153
push str.docmgr.cpp
call fcn.004ec450
test eax, eax
je 0x5089be
int3
xor ecx, ecx
test ecx, ecx
jne 0x508998
mov dword [ebp - 0x48], 0x208
lea edx, [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x48]
push eax
lea ecx, [ebp - 0x14]
call fcn.0049b8a8
push eax
lea ecx, [ebp - 0x28]
call fcn.004e8a1a
push eax
push OleUIInsertObjectA
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov dword [ebp - 0x4c], eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.0049b9e3
cmp dword [ebp - 0x4c], 0
jne 0x508a29
lea ecx, [ebp - 0x14]
call fcn.004e89fc
test eax, eax
jne 0x508a29
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.004e8c5b
and eax, 0xff
test eax, eax
je 0x508ad7
push 0
lea ecx, [ebp - 0x3c]
call fcn.004e8a1a
push eax
lea ecx, [ebp - 0x28]
call fcn.004e8a1a
push eax
call fcn.00507d5d
test eax, eax
jne 0x508a9f
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x20]
call fcn.0049b0fc
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x3c]
call fcn.0049b0fc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.0049b0fc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.0049b0fc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.0049b0fc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.0049b0fc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.0049b0fc
jmp 0x5082d9
cmp dword [ebp + 8], 0
je 0x508ad7
lea ecx, [ebp - 0x28]
call fcn.004e8a1a
push eax
push str._sShellNew
lea eax, [ebp - 0x14]
push eax
call fcn.00467cbc
add esp, 0xc
push str.NullFile
push 0x5e8640
lea ecx, [ebp - 0x14]
call fcn.004e8a1a
push eax
call fcn.00507d5d
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x20]
call fcn.0049b0fc
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x3c]
call fcn.0049b0fc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.0049b0fc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.0049b0fc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.0049b0fc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.0049b0fc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.0049b0fc
jmp 0x5082d9
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0049b0fc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0049b0fc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4