Function at 0x406390
Capabilities:
Get installed programs
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424430
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x43000c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 1
lea eax, [ebp - 0x44c]
mov dword [ebp - 0x43c], 0
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x44c], xmm0
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x44c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push str.Globalmasterpdf_server_event_C33B7EE9753C
lea eax, [ebp - 0x44c]
mov dword [ebp - 0x430], 0xc
push 0
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x430]
push 0
push eax
mov dword [ebp - 0x428], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push str.Globalmasterpdf_server_mapping_C33B7EE9753C
push 0x1000
push 0
mov dword [edi + 4], eax
lea eax, [ebp - 0x430]
push 4
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [edi], eax
test eax, eax
je 0x406639
cmp dword [edi + 4], 0
je 0x406639
cmp byte [edi + 0x10], 0
mov esi, 0x927c0
jne 0x406635
nop
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push dword [edi + 4]
mov dword [ebp - 0x434], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [edi + 0x10], 0
jne 0x406635
test eax, eax
je 0x406614
cmp eax, 0x102
jne 0x40662b
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0040ec50
add esp, 0xc
mov dword [ebp - 0x424], 0
lea eax, [ebp - 0x424]
mov dword [ebp - 0x438], 0
push eax
push 0xf003f
push 0
push 0x42c3b0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406549
lea eax, [ebp - 0x434]
mov dword [ebp - 0x438], 1
push eax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x434], 0x208
push eax
lea eax, [ebp - 0x438]
push eax
push 0
push str.InstallLocation
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x424], 0
lea eax, [ebp - 0x420]
jmp 0x406586
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0040ec50
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push str.QYRunningHelper.exe
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x428], 0
push 0
push str._check_updateserver
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x430]
call fcn.00406910
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x430]
test eax, eax
je 0x4065f2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x430], 0
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x40660d
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov dword [ebp - 0x428], 0
mov esi, 0x6ddd00
jmp 0x40662b
mov ecx, edi
call fcn.00406660
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x434]
sub ecx, eax
add esi, ecx
cmp byte [edi + 0x10], 0
je 0x406470
xor eax, eax
jmp 0x40663e
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040ce5c
mov esp, ebp
pop ebp
ret