Function at 0x40f560
Capabilities:
Hide graphical window
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x518ab8
mov eax, dword fs:[0]
push eax
sub esp, 0x3e8
mov eax, dword [0x5521f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], 0
mov word [ebp - 0x34], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x34]
push eax
push 2
call fcn.00429000
add esp, 8
test al, al
jne 0x40f5cc
or edi, 0xffffffff
jmp 0x40f862
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 3
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 4
push eax
call fcn.004402f0
lea eax, [ebp - 0x1c]
push eax
call fcn.0043d762
mov ecx, dword [ebp - 0x18]
add esp, 8
mov eax, dword [ecx]
push dword [ebp - 0x1c]
call dword [eax + 0x10]
push 0xe8
call fcn.00497eca
mov esi, eax
mov dword [ebp - 0x3ec], esi
push 0xe8
push 0
push esi
mov byte [ebp - 4], 6
call fcn.004b0ce0
mov byte [ebp - 4], 5
add esp, 0x10
mov dword [ebp - 0x3f0], 0
push 0
mov byte [ebp - 4], 8
lea eax, [ebp - 0x3f0]
push eax
mov dword [ebp - fcn.00402820], 0x544ae4
mov ecx, esi
mov byte [ebp - 4], 7
push str.ScreenSaver_18C785B0_8883_42AE_AF1F_ECB7AAA5DFBF
mov dword [ebp - 0x3f0], 0x544bc4
push 0x400000
mov byte [ebp - 4], 5
push dword [ebp - 0x18]
call fcn.004431af
mov esi, eax
mov byte [ebp - 4], 9
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 4
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 0xa
push eax
push 0
call fcn.004546a3
mov ecx, dword [ebp - 0x14]
add esp, 8
mov eax, dword [ecx]
push 0
push 0x400000
call dword [eax + 0xc]
push str.uidef:xml_init
push dword [ebp - 0x14]
lea ecx, [esi + 0x10]
call fcn.004424e2
mov byte [ebp - 4], 0xb
mov dword [ebp - method.SOUI::TplSObjectFactory_class_ArticleWindow_.virtual_0], vtable.SOUI::SObjectFactory.0
mov byte [ebp - 4], 0xa
mov dword [ebp - method.SOUI::TplSObjectFactory_class_ArticleWindow_.virtual_0], vtable.SOUI::TplSObjectFactory_class_ArticleWindow_.0
push 0
lea eax, [ebp - 0x3ec]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [esi + 4]
call fcn.0044fee4
mov byte [ebp - 4], 0xe
mov dword [ebp - method.SOUI::TplSObjectFactory_class_ArticleWindow_.virtual_0], vtable.SOUI::SObjectFactory.0
push 0x3ac
lea eax, [ebp - 0x3e8]
mov byte [ebp - 4], 0xf
push 0
push eax
call fcn.004b0ce0
add esp, 0xc
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x3e8]
push str.LAYOUT:default_window
call fcn.004502ca
mov byte [ebp - 4], 0x10
mov dword [ebp - method.DefaultWindow.1.virtual_0], vtable.DefaultWindow.1.0
mov dword [ebp - method.DefaultWindow.4.virtual_0], vtable.DefaultWindow.4.0
mov dword [ebp - method.ArticleWindow.1.virtual_0], vtable.DefaultWindow.3.0
mov dword [ebp - method.ArticleWindow.virtual_0], vtable.DefaultWindow.2.0
mov dword [ebp - method.DefaultWindow.virtual_0], vtable.DefaultWindow.0
mov byte [ebp - 0x44], 0
push 0
push 0
push 0
push 0
push 0
push 0x86880000
push 0
lea ecx, [ebp - 0x3e8]
mov byte [ebp - 4], 0x11
call fcn.00450ff9
push 0
push 0
push 0x110
push dword [ebp - 0x1a0]
call dword [sym.imp.USER32.dll_SendMessageW]
push 5
push dword [ebp - 0x1a0]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0x1a0]
mov ecx, esi
call fcn.00447be0
mov edi, eax
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x3e8]
mov dword [ebp - method.DefaultWindow.1.virtual_0], vtable.DefaultWindow.1.0
mov dword [ebp - method.DefaultWindow.4.virtual_0], vtable.DefaultWindow.4.0
mov dword [ebp - method.ArticleWindow.1.virtual_0], vtable.DefaultWindow.3.0
mov dword [ebp - method.ArticleWindow.virtual_0], vtable.DefaultWindow.2.0
mov dword [ebp - method.DefaultWindow.virtual_0], vtable.DefaultWindow.0
call fcn.00450651
mov byte [ebp - 4], 0xa
test esi, esi
je 0x40f832
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x40f842
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x40f852
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x40f862
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
cmp eax, 8
jb 0x40f87e
inc eax
lea ecx, [ebp - 0x34]
push eax
push dword [ebp - 0x34]
call fcn.00406490
xor eax, eax
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
mov eax, edi
mov dword [ebp - 0x24], 0
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.00497eb9
mov esp, ebp
pop ebp
ret