Function at 0x418730
Capabilities:
Check mutex on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2b0
mov eax, dword [0x6619c4]
xor eax, esp
mov dword [esp + 0x2ac], eax
push esi
mov esi, dword [ebp + 0x10]
lea ecx, [esp + 0xc]
push edi
push esi
call fcn.00406970
call fcn.00417f50
or edi, 0xffffffff
test al, al
je 0x41885a
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], 0
jl 0x418793
push str._downgrade_system
push eax
call fcn.005a150e
add esp, 8
test eax, eax
je 0x418793
sub eax, dword [esp + 0x10]
sar eax, 1
cmp eax, edi
jne 0x41885a
push 0x208
lea eax, [esp + 0xac]
push 0
push eax
call fcn.005a2910
add esp, 0xc
lea eax, [esp + 0xa8]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.00402bb0
mov ecx, eax
test ecx, ecx
je 0x418b01
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
push str._downgrade_system
mov dword [esp + 0x10], eax
lea eax, [esp + 0xac]
push esi
push eax
lea eax, [esp + 0x18]
push str._s__s__s
push eax
call fcn.00408880
mov esi, dword [esp + 0x20]
add esp, 0x14
mov ecx, esi
call fcn.00418110
test eax, eax
je 0x418843
push str.data0
push str.cancel
push 0x631218
call fcn.0046d610
or edi, 0xffffffff
add esp, 0xc
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x418ace
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x418ace
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41885a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push str.04462CC7_8D6D_4A5E_8249_94EAF0272490
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x66b4ec], eax
test eax, eax
je 0x418aa6
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
je 0x418aa1
call fcn.00418540
call fcn.00418640
test eax, eax
jne 0x4188d3
push str._checkActive
lea ecx, [esp + 0x10]
call fcn.00406970
lea ecx, [esp + 0xc]
call fcn.004184a0
mov edx, dword [esp + 0xc]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4188c9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.data2
jmp 0x418abc
sub esp, 0xc
call fcn.00417c60
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jns 0x418939
call fcn.00402bb0
mov ecx, eax
test ecx, ecx
je 0x418b0b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
call esi
push eax
lea eax, [esp + 0x10]
push str._______XD999_pdfEngine_start:_d
push eax
call fcn.00408880
mov esi, dword [esp + 0x18]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x418939
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 8
push eax
mov dword [esp + 0x1c], 0x404
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
lea eax, [esp + 0x30]
mov dword [esp + 0x1c], 0
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 1
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x2c], 0
push eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
push str.riched20.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [0x67c530]
lea eax, [esp + 0x38]
xorps xmm0, xmm0
mov dword [esp + 0x38], vtable.WTL::CMessageLoop.0
add esi, 0x10
mov dword [esp + 0x4c], 0
push esi
movups xmmword [esp + 0x40], xmm0
mov dword [esp + 0x54], 0
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x67c374]
mov dword [esp + 0x14], eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00418b70
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [0x67c960]
test esi, esi
jne 0x418a2b
push 0x6c
call fcn.00589bce
add esp, 4
mov ecx, eax
call fcn.00437840
mov esi, eax
mov dword [0x67c960], esi
sub esp, 0xc
mov ecx, esp
call fcn.004186a0
mov ecx, esi
call fcn.004378e0
lea ecx, [esp + 0x70]
call fcn.0041b6c0
push ecx
mov ecx, dword [esp + 0x14]
mov esi, esp
lea ecx, [ecx - 0x10]
call fcn.00407870
add eax, 0x10
lea ecx, [esp + 0x74]
mov dword [esi], eax
call fcn.0041bf80
lea ecx, [esp + 0x38]
call fcn.00417ae0
mov esi, eax
call fcn.00417d90
call fcn.00417d30
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [0x66b4ec]
test eax, eax
je 0x418a8d
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea ecx, [esp + 0x70]
call fcn.0041b7f0
lea ecx, [esp + 0x38]
call fcn.00418b20
jmp 0x418ad0
mov eax, dword [0x66b4ec]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x66b4ec], 0
push str.data1
push str.cancel
push 0x631218
call fcn.0046d610
add esp, 0xc
xor esi, esi
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x418ae9
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [esp + 0x2b4]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0058995a
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.00402480
push 0x80004005
call fcn.00402480
int3