Function at 0x412260
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x5a7074]
xor eax, esp
mov dword [esp + 0x130], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
push str._swifdoo_screencapture
push 1
push 0
mov dword [esp + 0x30], eax
mov dword [0x5bf3a4], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
je 0x4122c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4122c5
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0050a055
mov esp, ebp
pop ebp
ret 0x10
push edi
lea ecx, [esp + 0x24]
call fcn.00412880
mov eax, dword [esp + 0x20]
cmp dword [eax - 0xc], 0
jl 0x412308
push str.fullscreeenmode
push eax
call fcn.0050d153
add esp, 8
test eax, eax
je 0x412308
sub eax, dword [esp + 0x20]
mov edx, 1
mov ecx, dword [0x5bf5b8]
sar eax, 1
cmp eax, 0xffffffff
cmovne ecx, edx
mov dword [0x5bf5b8], ecx
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [0x5bf360]
test eax, eax
jne 0x41232f
push 0x34
call fcn.0050a09e
add esp, 4
mov ecx, eax
call fcn.00402320
mov dword [0x5bf360], eax
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsSwifdooPDF.exe
mov ecx, eax
call fcn.00402770
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 8
push eax
mov dword [esp + 0x1c], 4
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DefWindowProcW]
sub esp, 0xc
call fcn.00413f10
push edi
lea ecx, [esp + 0x30]
call fcn.00412880
cmp dword [0x5d0458], 0
jne 0x412394
push 4
call fcn.0050a09e
add esp, 4
mov dword [0x5d0458], eax
mov dword [eax], vtable.CSkinMgr.0
mov esi, dword [0x5bf80c]
test esi, esi
jne 0x4123b7
push 0x78
call fcn.0050a09e
add esp, 4
mov ecx, eax
call fcn.00457e40
mov esi, eax
mov dword [0x5bf80c], esi
sub esp, 0xc
push esp
call fcn.0042bbd0
mov ecx, esi
call fcn.004580e0
push 0
push 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.00412da0
mov ebx, eax
mov eax, 0x20
mov word [esp + 0x1c], ax
lea eax, [esp + 0x1c]
push eax
push edi
mov dword [esp + 0x1c], ebx
call fcn.0052b9ce
add esp, 8
lea ecx, [esp + 0x10]
mov edi, eax
push edi
call fcn.00412880
push eax
push dword [ebx + 4]
push ebx
call fcn.00413120
mov edx, dword [esp + 0x18]
mov ecx, 0x15555554
sub ecx, edx
mov esi, eax
cmp ecx, 1
jb 0x412627
mov dword [ebx + 4], esi
inc edx
mov eax, dword [esi + 4]
or ebx, 0xffffffff
mov dword [esp + 0x18], edx
mov dword [eax], esi
mov eax, ebx
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x41246e
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x412631
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
test edi, edi
je 0x412562
test esi, esi
je 0x4124cb
cmp esi, 1
jne 0x4124cb
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 0x5811ec
push edi
call fcn.00413d30
add esp, 0xc
lea eax, [esp + 0x30]
push 0x105
push 0
push eax
call fcn.005111c0
add esp, 0xc
lea eax, [esp + 0x30]
push dword [esp + 0x10]
push 0x5811ec
push 0x104
push eax
call fcn.00413ca0
add esp, 0x10
lea eax, [esp + 0x1c]
push eax
push 0
call fcn.0052b9ce
add esp, 8
lea ecx, [esp + 0x28]
mov edi, eax
push edi
call fcn.00412880
mov ecx, dword [esp + 0x14]
push eax
mov dword [esp + 0x14], ecx
push dword [ecx + 4]
push ecx
call fcn.00413120
mov edx, dword [esp + 0x18]
mov ecx, 0x15555554
sub ecx, edx
mov ebx, eax
cmp ecx, 1
jb 0x412627
mov eax, dword [esp + 0x10]
inc edx
mov dword [esp + 0x18], edx
mov dword [eax + 4], ebx
mov eax, dword [ebx + 4]
mov dword [eax], ebx
or ebx, 0xffffffff
mov ecx, dword [esp + 0x28]
mov eax, ebx
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x412559
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x41263a
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
or ebx, 0xffffffff
inc esi
test edi, edi
jne 0x412478
push 0x6b
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [0x5bf3ac], eax
call fcn.00412030
mov ecx, dword [0x5bf3ac]
mov dword [esp + 0x24], eax
test ecx, ecx
je 0x41258d
push ecx
call dword [sym.imp.USER32.dll_DestroyCursor]
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [esp + 0x14]
call fcn.00412b00
push dword [esp + 0x14]
call fcn.0050a050
mov ecx, dword [esp + 0x30]
add esp, 4
add ecx, 0xfffffff0
mov eax, ebx
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4125dc
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x412643
mov eax, dword [edx + 4]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [eax + 4]
call esi
jmp 0x4125e2
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x41260c
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x412649
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call esi
mov ecx, dword [esp + 0x13c]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0050a055
mov esp, ebp
pop ebp
ret 0x10
push str.list_T__too_long
call fcn.004f0075
mov ecx, edx
call esi
jmp 0x41246e
mov ecx, edx
call ebx
jmp 0x412556
mov ecx, edx
call esi
jmp 0x4125dc
mov ecx, edx
call edi
jmp 0x41260c