Function at 0x41d300
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438e2c
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x44a00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
push ecx
mov ecx, esp
push 0x4404e8
call fcn.004075c0
mov ecx, edi
call fcn.0041f920
mov dword [ebp - 4], 0
mov ebx, dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push str.DetachRequestDone
mov dword [edi + 0x3c], vtable.CRequestDetachReceiver.0
call ebx
mov dword [edi + 0x40], eax
push 0x4424cc
mov dword [edi + 0x48], vtable.CRequestGetUserReceiver.0
call ebx
mov dword [edi + 0x4c], eax
mov dword [edi], vtable.CStandAloneApp.0
mov dword [edi + 0x3c], vtable.CStandAloneApp.2.0
mov dword [edi + 0x48], vtable.CStandAloneApp.1.0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov byte [ebp - 4], 3
call fcn.00406c60
mov ecx, eax
test ecx, ecx
jne 0x41d3b2
push 0x80004005
call fcn.00406fc0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x7c], eax
mov byte [ebp - 4], 4
call fcn.00406c60
mov ecx, eax
test ecx, ecx
jne 0x41d3d6
push 0x80004005
call fcn.00406fc0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x80], eax
lea ecx, [edi + 0x85]
mov byte [ebp - 4], 5
call fcn.0040f270
lea esi, [edi + 0xa8]
mov dword [ebp - 0x18], esi
lea ecx, [esi + 8]
mov dword [esi + 4], 0
mov dword [esi], vtable.CAsyncRequest.0
call fcn.00412aa0
mov byte [ebp - 4], 6
lea ecx, [esi + 0x7c]
mov dword [esi], vtable.CRequestDetach.0
call fcn.0040f270
push str.DetachRequestDone
mov dword [esi + 0x9c], 0
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
mov dword [esi + 0xa0], eax
lea esi, [edi + 0x14c]
mov dword [ebp - 0x18], esi
lea ecx, [esi + 8]
mov dword [esi + 4], 0
mov dword [esi], vtable.CAsyncRequest.0
call fcn.00412aa0
mov byte [ebp - 4], 8
lea ecx, [esi + 0x7c]
mov dword [esi], vtable.CRequestGetUser.0
call fcn.0040f270
push 0x4424cc
mov dword [esi + 0x9c], 0
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
mov dword [esi + 0xa0], eax
push ecx
mov byte [ebp - 4], 9
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.win_Lightshot.exe_
call fcn.004075c0
push ecx
mov ecx, esp
mov byte [ebp - 4], 0xa
push str.UA_31173726_1
call fcn.004075c0
lea ecx, [edi + 0x1f8]
mov byte [ebp - 4], 9
call fcn.00408090
mov byte [ebp - 4], 0xb
push str.LightshotStandAloneAppMainMutex
push 1
push 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x60], 0
mov byte [edi + 0x84], 0
mov byte [edi + 0x1f0], 0
mov dword [edi + 0x1f4], 0
mov word [edi + 0x23c], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push 0
push eax
mov dword [edi + 0x60], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x41d65c
call fcn.0040d330
mov ecx, edi
call fcn.0041e0e0
cmp eax, 1
jne 0x41d65c
call fcn.0040aa20
mov eax, dword [edi + 0x68]
call eax
lea eax, [ebp - 0x10]
push eax
call fcn.00409ed0
mov byte [ebp - 4], 0xc
push dword [eax]
mov eax, dword [edi + 0x78]
call eax
mov byte [ebp - 4], 0xb
or esi, 0xffffffff
mov edx, dword [ebp - 0x10]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41d58a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x67
push dword [0x44b9b8]
call dword [sym.imp.USER32.dll_LoadMenuW]
mov dword [edi + 0x58], eax
lea eax, [ebp - 0x18]
push ecx
push eax
lea ecx, [edi + 0x58]
call fcn.0041f710
mov ebx, dword [eax]
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x41d5bc
cmp eax, ebx
je 0x41d5bc
push eax
call dword [sym.imp.USER32.dll_DestroyMenu]
mov ecx, edi
mov dword [edi + 0x5c], ebx
call fcn.0041e220
mov ecx, edi
call fcn.0041e430
push 0x66
push dword [0x44b9b8]
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x442630
push eax
mov ecx, edi
mov dword [edi + 0x54], eax
call fcn.0041fb00
mov ecx, edi
call fcn.0041d8c0
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.0041f460
mov ecx, edi
push dword [eax]
call fcn.0041fdd0
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x41d61e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, edi
call fcn.0041d7e0
inc dword [edi + 0x1f4]
cmp byte [edi + 0x1f0], 0
je 0x41d664
mov eax, dword [edi + 4]
lea ecx, [edi + 0x14c]
mov dword [edi + 0x1e8], eax
call fcn.0041c430
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret