Function at 0x495320
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x627748
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x6e4770]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [0x6f06b8]
mov ebx, dword [ebp + 8]
call dword [0x693b7c]
add esp, 4
push str.Riched20.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0
mov dword [ebp - 0x30], eax
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
mov esi, dword [0x6e4008]
mov ecx, dword [0x6e400c]
mov dword [0x6f54a0], 0
cmp esi, ecx
jae 0x4953ae
mov eax, dword [esi]
test eax, eax
je 0x4953a7
mov eax, dword [eax + 0x1c]
push 1
call eax
mov ecx, dword [0x6e400c]
add esi, 4
cmp esi, ecx
jb 0x495394
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x4955d9
lea ecx, [ebp - 0x29]
call fcn.0049ea10
mov dword [ebp - 4], 0
mov ecx, str.OpenUpdate
mov eax, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4953fa
test dx, dx
je 0x4953f6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4953fa
add eax, 4
add ecx, 4
test dx, dx
jne 0x4953d4
xor eax, eax
jmp 0x4953ff
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4954ad
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x34], esp
push str.softname
call fcn.0046e770
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.00478560
mov ecx, eax
mov byte [ebp - 4], 0
call fcn.0049cfd0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0
push 0
push 0
push 0x7530
push 0x7530
push 0x100
push 0x10ce0000
push eax
push 0
mov byte [ebp - 4], 2
call fcn.00476440
mov ecx, eax
call dword [0x693b64]
push ebx
call fcn.00476440
mov ecx, eax
call fcn.00477c60
push 0
call fcn.00476440
mov ecx, eax
call dword [0x693a60]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp - 0x14], 8
mov byte [ebp - 4], 0
jb 0x495585
push dword [ebp - 0x28]
call fcn.0052d900
add esp, 4
jmp 0x495585
mov ecx, 0x646660
mov eax, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4954da
test dx, dx
je 0x4954d6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4954da
add eax, 4
add ecx, 4
test dx, dx
jne 0x4954b4
xor eax, eax
jmp 0x4954df
sbb eax, eax
or eax, 1
test eax, eax
je 0x495585
lea ecx, [ebp - 0x29]
call sym.WnPicViewer.exe_public:_bool___thiscall_UiLib::CDuiTrayIcon::Enabled_void_
test al, al
je 0x4955ca
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x34], esp
push str.softname
call fcn.0046e770
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
call fcn.00478560
mov ecx, eax
mov byte [ebp - 4], 0
call fcn.0049cfd0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0
push 0x17c
push 0x258
push 0
push 0
push 0x100
push 0x10cf0000
push eax
push 0
mov byte [ebp - 4], 4
call fcn.004785e0
mov ecx, eax
call dword [0x693b64]
push ebx
call fcn.004785e0
mov ecx, eax
call fcn.004870d0
call fcn.004785e0
push 1
push 1
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 4]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.004a88e0
call dword [0x693b80]
call dword [0x693b84]
mov ecx, 0x6f5474
call fcn.00496c00
call dword [sym.imp.ole32.dll_OleUninitialize]
call dword [sym.imp.ole32.dll_CoUninitialize]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [0x6ee73c]
test ecx, ecx
je 0x4955c0
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [0x6ee73c], 0
lea ecx, [ebp - 0x29]
mov dword [ebp - 4], 0xffffffff
call fcn.0049ebc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052dfa4
mov esp, ebp
pop ebp
ret 4