Function at 0x4991a0
Capabilities:
Check if file exists
Create process on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov dword [ebp - 0x70], ecx
cmp dword [ebp - 0x70], 0
je 0x4991bc
mov eax, dword [ebp - 0x70]
sub eax, 0x2d8
mov dword [ebp - 0x74], eax
jmp 0x4991c3
mov dword [ebp - 0x74], 0
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 8], ecx
push 0
push str._Pcmaster_LunarCalendar_MytimeWeb
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x499210
push 0
push 0
push 0x541
mov edx, dword [0x5912f8]
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
push 5
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x499410
lea ecx, [ebp - 0x28]
call fcn.0042e670
push ecx
mov ecx, esp
push 0x55a554
call fcn.0041c8a0
push ecx
mov ecx, esp
push 0x591308
call fcn.0041c880
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x28]
call fcn.0042e910
lea ecx, [ebp - 0x10]
call fcn.0041cb20
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49931d
cmp dword [ebp + 0xc], 1
je 0x49931d
cmp dword [ebp + 0xc], 0
jne 0x499308
push str.plugins_text_plugin_mytimeweb
mov ecx, dword [ebp - 8]
add ecx, 0x20
call fcn.004dd71b
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x499294
push 0
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x180]
call eax
push str.plugins_progress_plugin_mytimeweb
mov ecx, dword [ebp - 8]
add ecx, 0x20
call fcn.004dd71b
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x4992bf
push 1
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x180]
call eax
push 0
push 0
push str._plugin_mytimeweb__notice__silent__from:_Pcmaster_LunarCalendar
push ecx
mov ecx, esp
push str._rmup.exe
call fcn.0041c8a0
push ecx
mov ecx, esp
push 0x591300
call fcn.0041c880
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0042e910
mov ecx, eax
call fcn.0041cb20
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x5c]
call fcn.0040f740
lea ecx, [ebp - 0x10]
call fcn.0040f740
lea ecx, [ebp - 0x28]
call fcn.0042e690
jmp 0x499410
push ecx
mov ecx, esp
push 0x55a554
call fcn.0041c8a0
push ecx
mov ecx, esp
push 0x591308
call fcn.0041c880
lea edx, [ebp - 0xc]
push edx
lea ecx, [ebp - 0x28]
call fcn.0042e910
push 5
push 0
push 0x554518
lea ecx, [ebp - 0xc]
call fcn.0041cb20
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
push 0
push 0x541
mov eax, dword [0x5912f8]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
movzx ecx, byte [0x591075]
test ecx, ecx
jne 0x4993f8
lea ecx, [ebp - 0x44]
call fcn.0042e050
push 1
push ecx
mov ecx, esp
push 0x55a860
call fcn.0041c8a0
push SysReAllocString
lea ecx, [ebp - 0x44]
call fcn.0042e1a0
push 1
push ecx
mov ecx, esp
push str.pmytimeweb
call fcn.0041c8a0
lea ecx, [ebp - 0x44]
call fcn.0045be50
test eax, eax
setne dl
mov byte [0x591075], dl
push str.plugins_mytimeweb_unused
mov ecx, dword [ebp - 8]
add ecx, 0x20
call fcn.004dd71b
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x4993f0
push 0
mov eax, dword [ebp - 0x48]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x48]
mov eax, dword [edx + 0x180]
call eax
lea ecx, [ebp - 0x44]
call fcn.0042e110
lea ecx, [ebp - 0xc]
call fcn.0040f740
lea ecx, [ebp - 0x10]
call fcn.0040f740
lea ecx, [ebp - 0x28]
call fcn.0042e690
mov esp, ebp
pop ebp
ret 8