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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2b4
mov eax, dword [0x6609c4]
xor eax, esp
mov dword [esp + 0x2b0], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
lea ecx, [esp + 0x14]
push edi
push esi
call fcn.00406470
call fcn.004179d0
or ebx, 0xffffffff
test al, al
je 0x418406
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
jl 0x418344
push str._downgrade_system
push eax
call fcn.005a1c1e
add esp, 8
test eax, eax
je 0x418344
sub eax, dword [esp + 0x18]
sar eax, 1
cmp eax, ebx
jne 0x418406
push 0x208
lea eax, [esp + 0xb4]
push 0
push eax
call fcn.005a3020
add esp, 0xc
lea eax, [esp + 0xb0]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.00402b70
mov ecx, eax
test ecx, ecx
je 0x418837
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
push str._downgrade_system
mov dword [esp + 0x14], eax
lea eax, [esp + 0xb4]
push esi
push eax
lea eax, [esp + 0x1c]
push str._s__s__s
push eax
call fcn.004082f0
mov esi, dword [esp + 0x24]
add esp, 0x14
mov ecx, esi
call fcn.00417b90
test eax, eax
je 0x4183ef
push str.data0
push str.cancel
push 0x6311e8
call fcn.0046ca70
or ebx, 0xffffffff
add esp, 0xc
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x418803
mov ecx, dword [esi]
push esi
jmp 0x4187fe
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x418406
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 edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41842c
call edi
cmp eax, 0xb7
jne 0x4185e6
push 0x632b28
lea ecx, [esp + 0x14]
call fcn.00406470
cmp dword [0x67b758], 0
jne 0x418458
push 4
call fcn.0058a26e
add esp, 4
mov dword [0x67b758], eax
mov dword [eax], vtable.CAutoRunManager.0
push 0
push ecx
mov ecx, dword [esp + 0x18]
mov esi, esp
add ecx, 0xfffffff0
call fcn.004072d0
add eax, 0x10
mov dword [esi], eax
call fcn.00488450
test eax, eax
je 0x4184a3
push str.Speedup
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push ecx
mov ecx, dword [esp + 0x14]
mov esi, esp
lea ecx, [ecx - 0x10]
call fcn.004072d0
add eax, 0x10
mov dword [esi], eax
call fcn.00488500
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00402b70
mov ecx, eax
test ecx, ecx
je 0x418841
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push ecx
mov ecx, esp
push str.PDFEngine
call fcn.00406470
call fcn.00488450
mov esi, dword [esp + 0x14]
test eax, eax
je 0x418590
xor edx, edx
lea ecx, [esp + 0xc]
call fcn.0047bdb0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x418511
cmp dword [esi - 0xc], 0
jl 0x418511
push eax
push esi
call fcn.005a1c1e
add esp, 8
test eax, eax
je 0x418511
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x418575
push ecx
mov ecx, dword [esp + 0x14]
mov edi, esp
lea ecx, [ecx - 0x10]
call fcn.004072d0
add eax, 0x10
mov dword [edi], eax
call fcn.00488500
mov edx, 0x632bfc
lea ecx, [esp + 0x14]
call fcn.0047bdb0
push ecx
mov ecx, dword [esp + 0x18]
mov edi, esp
lea ecx, [ecx - 0x10]
call fcn.004072d0
add eax, 0x10
mov dword [edi], eax
call fcn.00473cb0
mov edx, dword [esp + 0x18]
add esp, 4
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41856f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0xc]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x418590
mov ecx, dword [edx]
push edx
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]
test eax, eax
je 0x4187ba
call edi
cmp eax, 0xb7
je 0x4187ba
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4185cb
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esp + 0x10]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4185e6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00417fc0
call fcn.004181f0
test eax, eax
jne 0x418642
push str._checkActive
lea ecx, [esp + 0x10]
call fcn.00406470
lea ecx, [esp + 0xc]
call fcn.00417f20
mov edx, dword [esp + 0xc]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x418626
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.data2
push str.cancel
push 0x6311e8
call fcn.0046ca70
add esp, 0xc
jmp 0x418803
sub esp, 0xc
call fcn.004176f0
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 8
push eax
mov dword [esp + 0x24], 0x404
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
lea eax, [esp + 0x38]
mov dword [esp + 0x24], 0
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 1
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x34], 0
push eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
push str.riched20.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [0x67b39c]
lea eax, [esp + 0x40]
xorps xmm0, xmm0
mov dword [esp + 0x40], vtable.WTL::CMessageLoop.0
add esi, 0x10
mov dword [esp + 0x54], 0
push esi
movups xmmword [esp + 0x48], xmm0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x67b218]
mov dword [esp + 0x14], eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004188a0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [0x67b7a4]
test esi, esi
jne 0x418744
push 0x6c
call fcn.0058a26e
add esp, 4
mov ecx, eax
call fcn.00437400
mov esi, eax
mov dword [0x67b7a4], esi
sub esp, 0xc
mov ecx, esp
call fcn.00418250
mov ecx, esi
call fcn.004374a0
lea ecx, [esp + 0x78]
call fcn.0041b300
push ecx
mov ecx, dword [esp + 0x1c]
mov esi, esp
lea ecx, [ecx - 0x10]
call fcn.004072d0
add eax, 0x10
lea ecx, [esp + 0x7c]
mov dword [esi], eax
call fcn.0041bbc0
lea ecx, [esp + 0x40]
call fcn.00417570
mov esi, eax
call fcn.00417820
call fcn.004177c0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [0x66a3c0]
test eax, eax
je 0x4187a6
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea ecx, [esp + 0x78]
call fcn.0041b430
lea ecx, [esp + 0x40]
call fcn.00418850
jmp 0x418805
push str.data1
push str.cancel
push 0x6311e8
call fcn.0046ca70
add esp, 0xc
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4187e8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esp + 0x10]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x418803
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x41881e
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [esp + 0x2bc]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00589ffa
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.00402440
push 0x80004005
call fcn.00402440
int3