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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c873b
mov eax, dword fs:[0]
push eax
sub esp, 0x5e4
mov eax, dword [0x64a3a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
push 4
call fcn.004268c1
mov edi, eax
add esp, 4
mov dword [ebp - 0x5e0], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x40e351
push str.imgdecoder_png
mov ecx, edi
call fcn.00409b20
jmp 0x40e353
xor edi, edi
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0xffffffff
push 0
push eax
call fcn.00492210
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x208
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.0049236a
add esp, 8
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test edi, edi
je 0x40e63b
mov dword [ebp - 0x5ec], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x5e8], 0
lea eax, [ebp - 0x5e8]
mov byte [ebp - 4], 2
push eax
call fcn.00419e9f
add esp, 4
lea eax, [ebp - 0x5ec]
mov ecx, edi
push eax
call fcn.0040e1e0
mov ecx, dword [ebp - 0x5e8]
push dword [ebp - 0x5ec]
mov eax, dword [ecx]
call dword [eax + 0x10]
push 0xe8
call fcn.004268c1
add esp, 4
mov dword [ebp - 0x5e0], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x40e447
push 0
lea ecx, [ebp - 0x5f0]
mov dword [ebp - 0x5f0], 0x5da86c
push ecx
push str.SOUIHOST
push dword [0x658308]
mov ecx, eax
push dword [ebp - 0x5e8]
call fcn.0043e804
mov ebx, eax
jmp 0x40e449
xor ebx, ebx
mov dword [ebp - method.SOUI::SObjectFactory.virtual_0], vtable.SOUI::TplSObjectFactory_class_SOUI::SGifPlayer_.0
push 0
lea eax, [ebp - 0x5e0]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebx + 4]
call fcn.0045071a
mov dword [ebp - method.SOUI::SObjectFactory.virtual_0], vtable.SOUI::TplSObjectFactory_class_SOUI::SSkinGif_.0
push 0
lea eax, [ebp - 0x5e0]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebx + 4]
call fcn.0045071a
mov dword [ebp - method.SOUI::SObjectFactory.virtual_0], vtable.SOUI::TplSObjectFactory_class_SOUI::SSkinAPNG_.0
push 0
lea eax, [ebp - 0x5e0]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebx + 4]
call fcn.0045071a
mov dword [ebp - method.SOUI::SObjectFactory.virtual_0], vtable.SOUI::TplSObjectFactory_class_CWelcomeBar_.0
push 0
lea eax, [ebp - 0x5e0]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebx + 4]
call fcn.0045071a
mov dword [ebp - method.SOUI::SObjectFactory.virtual_0], vtable.SOUI::TplSObjectFactory_class_CSetupBar_.0
push 0
lea eax, [ebp - 0x5e0]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebx + 4]
call fcn.0045071a
mov dword [ebp - method.SOUI::SObjectFactory.virtual_0], vtable.SOUI::TplSObjectFactory_class_CFinishBar_.0
push 0
lea eax, [ebp - 0x5e0]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebx + 4]
call fcn.0045071a
mov byte [ebp - 4], 2
call fcn.004116c0
mov dword [ebp - 0x5e4], 0
lea eax, [ebp - 0x5e4]
mov byte [ebp - 4], 0xa
push eax
push 0
call fcn.00450ea4
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, dword [ebp - 0x5e4]
push 0
push eax
mov edx, dword [ecx]
call dword [edx + 0xc]
push str.uidef:xml_init
push dword [ebp - 0x5e4]
lea ecx, [ebx + 0x10]
call fcn.0043d172
lea ecx, [ebp - 0x5dc]
call fcn.00409ba0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x5dc]
mov byte [ebp - 4], 0xb
call fcn.0044ce62
push 0
push 0
push 0x110
push dword [ebp - 0x398]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
lea ecx, [ebp - 0x3a4]
call fcn.0044b767
push 1
push dword [ebp - 0x398]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0x398]
mov ecx, ebx
call fcn.00443d73
lea ecx, [ebp - 0x5dc]
call fcn.00409c70
test ebx, ebx
je 0x40e5cc
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
mov ecx, dword [ebp - 0x5e4]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x40e5df
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x5e8]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x40e5f2
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x5ec]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x40e608
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [edi]
sub esi, 0xc
mov dword [ebp - 4], 0xc
cmp esi, dword [0x64a3f8]
je 0x40e630
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40e630
push esi
call fcn.00437566
add esp, 4
push 4
push edi
call fcn.004268f4
add esp, 8
call dword [sym.imp.ole32.dll_OleUninitialize]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00426902
mov esp, ebp
pop ebp
ret