Function at 0x1003d940
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c75f5
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x1010739c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x8c], edi
cmp byte [edi + 0x38], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
je 0x1003da64
call fcn.1004f380
push 2
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x1003da5d
push 0x58
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], eax
push 0x100db090
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], al
call fcn.10009030
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push 3
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0x100db014
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.10009030
mov byte [ebp - 4], 1
lea eax, [ebp - 0x44]
push 0x2f
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x128]
call fcn.100043b0
mov esi, eax
mov byte [ebp - 4], 2
push str.TaskBarWndImpl::Init____has_init___true__break.
push esi
call fcn.100064a0
add esp, 8
call fcn.1004f380
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x128]
call fcn.10006970
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10005550
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.10005550
xor al, al
jmp 0x1003e331
mov eax, dword [ebp + 8]
push dword [edi + 4]
mov esi, dword [sym.imp.USER32.dll_IsWindow]
mov byte [edi + 0x38], 1
mov dword [edi + 0x30], eax
mov byte [ebp - 0x86], 0
call esi
test eax, eax
jne 0x1003db65
call fcn.1004f380
push 2
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x1003e324
push 0x58
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], eax
push 0x100db0f0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], al
call fcn.10009030
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x28]
push 3
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0x100db0ec
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.10009030
mov byte [ebp - 4], 5
lea eax, [ebp - 0x44]
push 0x37
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x128]
call fcn.100043b0
mov esi, eax
mov byte [ebp - 4], 6
push str.TaskBarWndImpl::Init____CreateTaskBarMutex___fail__init_fail.
push esi
call fcn.100064a0
add esp, 8
call fcn.1004f380
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x128]
call fcn.10006970
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.10005550
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.10005550
jmp 0x1003e324
push dword [edi + 4]
call esi
test eax, eax
je 0x1003e236
lea eax, [ebp - 0x6c]
mov byte [ebp - 0x80], 0
push 9
push eax
call fcn.1002e730
add esp, 8
mov dword [ebp - 0x90], eax
mov dword [ebp - 4], 8
lea esi, [edi + 0x78]
cmp esi, eax
je 0x1003dc07
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x1003dbd7
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x1003dbc7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003e34e
mov eax, edx
push ecx
push eax
call fcn.10050f3a
mov eax, dword [ebp - 0x90]
add esp, 8
mov dword [esi + 0x10], 0
xor ecx, ecx
mov dword [esi + 0x14], 7
mov word [esi], cx
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], 7
mov word [eax], cx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.100055d0
lea eax, [ebp - 0x84]
push eax
push 0x100dc3fc
push dword [edi + 4]
call dword [sym.imp.SHELL32.dll_SHGetPropertyStoreForWindow]
test eax, eax
js 0x1003dc77
cmp dword [esi + 0x14], 8
jb 0x1003dc37
mov esi, dword [esi]
mov eax, 0x1f
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_SHStrDupW]
test eax, eax
js 0x1003dc77
mov ecx, dword [ebp - 0x84]
lea edx, [ebp - 0x20]
push edx
push 0x100dc474
push ecx
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, dword [ebp - 0x80]
test eax, eax
movzx ecx, cl
mov eax, 1
cmovns ecx, eax
mov dword [ebp - 0x80], ecx
mov ecx, dword [ebp - 0x84]
xorps xmm0, xmm0
movups xmmword [ebp - 0x20], xmm0
test ecx, ecx
je 0x1003dc8e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
cmp byte [ebp - 0x80], 0
je 0x1003e236
push 1
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
cmp dword [edi + 0x224], 0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x50], 0xc
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], eax
jne 0x1003e236
push str.TaskBarTpiSubWndExist
push 1
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi + 0x224], eax
test eax, eax
je 0x1003e236
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1003dd1c
push dword [edi + 0x224]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x224], 0
jmp 0x1003e236
call fcn.1004f380
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x1003ddf7
push 0x58
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x58], eax
push 0x100da288
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], 0xf
mov byte [ebp - 0x6c], al
call fcn.10009030
mov dword [ebp - 4], 9
lea ecx, [ebp - 0x44]
push 3
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
push 0x100da2e4
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
call fcn.10009030
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x6c]
push 0x2ea
push eax
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x128]
call fcn.100043b0
mov esi, eax
mov byte [ebp - 4], 0xb
push str.TaskBarWndImpl::CreateTaskBarMutex__
push esi
call fcn.100064a0
add esp, 8
call fcn.1004f380
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x128]
call fcn.10006970
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x44]
call fcn.10005550
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.10005550
xorps xmm0, xmm0
mov byte [ebp - 0x85], 0
lea ecx, [ebp - 0x6c]
movq qword [ebp - 0x5c], xmm0
movups xmmword [ebp - 0x6c], xmm0
call fcn.1005afe0
mov dword [ebp - 4], 0xd
lea ecx, [edi + 0xd0]
push dword [ebp - 0x2c]
call fcn.1001f190
movzx ecx, byte [ebp - 0x85]
test al, al
mov eax, 1
cmovne ecx, eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.10058510
cmp byte [ebp - 0x2c], 0
je 0x1003e236
lea eax, [ebp - 0x80]
push eax
push 0x100db6c4
push dword [edi + 4]
call dword [sym.imp.SHELL32.dll_SHGetPropertyStoreForWindow]
test eax, eax
js 0x1003e236
mov ecx, dword [ebp - 0x80]
lea edx, [ebp - 0x20]
mov eax, 0xb
mov word [ebp - 0x20], ax
or eax, 0xffffffff
push edx
mov word [ebp - 0x18], ax
mov eax, dword [ecx]
push 0x100dc44c
push ecx
call dword [eax + 0x18]
test eax, eax
mov eax, dword [ebp - 0x80]
push eax
mov ecx, dword [eax]
js 0x1003e233
call dword [ecx + 0x1c]
test eax, eax
mov eax, dword [ebp - 0x80]
push eax
mov ecx, dword [eax]
js 0x1003e233
call dword [ecx + 8]
mov ecx, edi
call fcn.1003e360
test al, al
jne 0x1003e096
call fcn.1004f380
push 2
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x1003e015
push 0x58
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], eax
push 0x100db238
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], al
call fcn.10009030
mov dword [ebp - 4], 0x13
lea ecx, [ebp - 0x28]
push 3
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0x100db1ec
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.10009030
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0x44]
push 0x42
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x128]
call fcn.100043b0
mov esi, eax
mov byte [ebp - 4], 0x15
push str.TaskBarWndImpl::Init____InitTaskBarLists_fail__break.
push esi
call fcn.100064a0
add esp, 8
call fcn.1004f380
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x128]
call fcn.10006970
mov byte [ebp - 4], 0x13
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x1003dfb6
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003dfac
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003e34e
push edx
push ecx
call fcn.10050f3a
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x1003e003
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003dff9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003e353
push edx
push ecx
call fcn.10050f3a
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
mov ecx, dword [0x1010cc34]
test ecx, ecx
jne 0x1003e081
push 0x1010702c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1010cc34], 0
jne 0x1003e070
push 4
call fcn.10050f0a
add esp, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0x17
test eax, eax
je 0x1003e05a
mov ecx, eax
mov dword [eax], 0
call fcn.10055290
jmp 0x1003e05c
xor eax, eax
mov dword [ebp - 4], 0xffffffff
xor edx, edx
lea ecx, [ebp - 0x2c]
lock or dword [ecx], edx
mov dword [0x1010cc34], eax
push 0x1010702c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x1010cc34]
push 0
push 0
push 1
push 0x100db2cc
push str.init_task_list_fail
call fcn.10055340
push 0
push 0
push 0
push 0
push 0
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0xfffffffffffffff0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0x40000000
mov dword [ebp - 0x2c], eax
je 0x1003e0d0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
mov dword [ebp - 0x80], esi
jmp 0x1003e0e0
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x20]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [ebp - 0x2c], 0
jne 0x1003e15f
test esi, esi
je 0x1003e10e
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0x30000000
cmp eax, 0x10000000
je 0x1003e14d
xor esi, esi
push 2
push dword [edi + 4]
call dword [sym.imp.USER32.dll_MonitorFromWindow]
test eax, eax
je 0x1003e22c
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x7c], 0x28
push ecx
push eax
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
test eax, eax
je 0x1003e22c
movups xmm0, xmmword [ebp - 0x68]
movups xmmword [ebp - 0x3c], xmm0
test esi, esi
jne 0x1003e152
movups xmmword [ebp - 0x54], xmm0
jmp 0x1003e196
push 2
push esi
jmp 0x1003e113
lea eax, [ebp - 0x54]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x1003e196
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetParent]
mov esi, dword [sym.imp.USER32.dll_GetClientRect]
mov edi, eax
lea eax, [ebp - 0x3c]
push eax
push edi
call esi
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x80]
call esi
push 2
lea eax, [ebp - 0x54]
push eax
push edi
push dword [ebp - 0x80]
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov edi, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
sub esi, dword [ebp - 0x20]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x4c]
add eax, dword [ebp - 0x54]
cdq
sub eax, edx
mov dword [ebp - 0x8c], esi
mov ecx, eax
mov eax, esi
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
sub ecx, eax
mov eax, dword [ebp - 0x48]
add eax, dword [ebp - 0x50]
cdq
sub eax, edx
mov dword [ebp - 0x84], ecx
mov esi, eax
mov eax, dword [ebp - 0x80]
cdq
sub eax, edx
sar esi, 1
mov edx, dword [ebp - 0x8c]
add ecx, edx
sar eax, 1
sub esi, eax
mov eax, dword [ebp - 0x34]
cmp ecx, eax
jle 0x1003e1f3
mov ecx, eax
sub ecx, edx
jmp 0x1003e1f9
mov ecx, dword [ebp - 0x84]
cmp ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x80]
cmovl ecx, dword [ebp - 0x3c]
add eax, esi
mov edx, dword [ebp - 0x30]
cmp eax, edx
jle 0x1003e211
mov esi, edx
sub esi, dword [ebp - 0x80]
mov eax, dword [ebp - 0x38]
cmp esi, eax
push 0x15
push 0xffffffffffffffff
push 0xffffffffffffffff
cmovl esi, eax
push esi
push ecx
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov al, 1
jmp 0x1003e331
call dword [ecx + 8]
call fcn.1004f380
push 2
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x1003e30e
push 0x58
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], eax
push 0x100db190
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.10009030
mov dword [ebp - 4], 0xf
lea ecx, [ebp - 0x6c]
push 3
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
push 0x100db18c
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0xf
mov byte [ebp - 0x6c], 0
call fcn.10009030
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x28]
push 0x3c
push eax
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x128]
call fcn.100043b0
mov esi, eax
mov byte [ebp - 4], 0x11
push str.TaskBarWndImpl::Init____ChangeRandomWindowAppUserModelID_fail__break.
push esi
call fcn.100064a0
add esp, 8
call fcn.1004f380
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x128]
call fcn.10006970
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x6c]
call fcn.10005550
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10005550
push dword [edi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1003e324
push dword [edi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, edi
call fcn.10040a70
mov al, byte [ebp - 0x86]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100512b9
mov esp, ebp
pop ebp
ret 8
call fcn.10092f59
call fcn.10092f59
int3