Function at 0x10039a70
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101714a8
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x10207514]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, 0x102125a8
mov dword [ebp - 0x68], 0
call fcn.10063730
mov ecx, 0x10212260
call fcn.1002b960
mov eax, dword [0x1021227c]
inc eax
mov dword [0x1021227c], eax
cmp eax, 1
jne 0x10039b29
mov ecx, 0x10212268
call fcn.1000e6b0
push str.SdConfigCenter.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x10039b29
push str.CreateInsItpAdapter
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10039b22
call eax
mov ebx, eax
test ebx, ebx
je 0x10039b22
mov edx, dword [ebx]
mov ecx, ebx
push 2
push 0x10212268
push fcn.1002c2a0
mov edx, dword [edx + 8]
call edx
test al, al
jne 0x10039ed8
push ebx
push esi
call fcn.1002c260
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, 0x10212268
call fcn.1002c400
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov ebx, dword [edi + 4]
mov esi, dword [edi + 0xc]
cmp dword [ebx + 0x74], 0
jne 0x10039c23
mov dword [ebp - 4], 0
push 0x14
call fcn.10161f74
mov edx, eax
add esp, 4
mov dword [ebp - 0x5c], edx
mov byte [ebp - 4], 1
lea ecx, [edx + 0xc]
mov dword [edx + 4], 1
mov dword [edx + 8], 1
mov dword [edx], vtable.std::_Ref_count_obj_class_RC::RCInslptSafeRecommend_.0
mov byte [ecx + 4], 0
mov dword [ecx], esi
mov byte [ebp - 4], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x64], xmm0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 1
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov byte [ebp - 4], 2
mov eax, dword [ebx + 0x74]
mov dword [ebx + 0x74], ecx
mov esi, dword [ebx + 0x78]
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], eax
mov dword [ebx + 0x78], edx
mov byte [ebp - 4], 0
test esi, esi
je 0x10039c0b
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x10039c0b
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x10039c0b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, 1
mov dword [ebp - 0x68], eax
and eax, 0xfffffffe
mov dword [ebp - 0x68], eax
mov dword [ebp - 4], 0xffffffff
mov esi, dword [edi + 0xc]
lea ecx, [ebp - 0xac]
call fcn.10144160
mov dword [ebp - 4], 3
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0xac], vtable.Poco::NObserver_class_RC::RCInsIptUIControl__class_RC::RCInsIptNotification_.0
mov dword [ebp - 0xa8], esi
mov dword [ebp - 0xa4], 0x10040c70
call fcn.10143ab0
mov dword [ebp - 4], 5
lea eax, [ebp - 0xac]
mov ecx, dword [edi + 4]
push eax
add ecx, 0xc
call fcn.10144640
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0xac], vtable.Poco::NObserver_class_RC::RCInsIptUIControl__class_RC::RCInsIptNotification_.0
mov dword [ebp - 4], 6
lea ecx, [ebp - 0xa0]
call fcn.10143af0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.10144170
lea ecx, [ebp - 0xd0]
call fcn.10144160
mov dword [ebp - 4], 8
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0xd0], vtable.Poco::NObserver_class_RC::SdInstallProtectMgr__class_RC::RCIptSwitchNotification_.0
mov dword [ebp - 0xcc], edi
mov dword [ebp - 0xc8], 0x1003a540
call fcn.10143ab0
mov dword [ebp - 4], 0xa
lea eax, [ebp - 0xd0]
push eax
mov ecx, 0x10207674
call fcn.10144640
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0xd0], vtable.Poco::NObserver_class_RC::SdInstallProtectMgr__class_RC::RCIptSwitchNotification_.0
mov dword [ebp - 4], 0xb
lea ecx, [ebp - 0xc4]
call fcn.10143af0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd0]
call fcn.10144170
mov ecx, 0x10207628
call fcn.1001f270
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], 0xe
lea ecx, [ebp - 0x88]
push 0xa
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
push str.2345PCSafe
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
call fcn.100094b0
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x88]
cmp dword [ebp - 0x74], 8
lea ecx, [ebp - 0x40]
push dword [ebp - 0x78]
cmovae eax, dword [ebp - 0x88]
push eax
call fcn.100094b0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x88]
call fcn.10009450
lea ecx, [ebp - 0x40]
call fcn.100951a0
lea ecx, [edi + 0x10]
test al, al
je 0x10039ee9
mov al, 1
xchg byte [ecx], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10009450
push str.A496FA08_DBB5_4914_A013_E3B8E2894EEE
push 0
push 0
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
movzx ecx, bl
mov edx, 1
cmove ecx, edx
mov dword [ebp - 0x5c], ecx
mov byte [ebp - 0x60], cl
test esi, esi
je 0x10039e18
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x60]
mov ecx, 0x10207670
call fcn.1002b680
cmp dword [0x10212884], 0
je 0x10039ffb
push 0
mov ecx, 0x10212884
call fcn.1012e070
mov eax, dword [0x10212884]
cmp byte [eax + 0x54], 0
je 0x10039ffb
cmp dword [eax + 0x58], 4
jb 0x10039ffb
mov bl, byte [eax + 0x5c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 0x12
mov eax, dword [ebp - 0x5c]
movzx eax, al
push eax
lea eax, [ebp - 0x28]
push 0x101b6710
push eax
call fcn.1012ee80
add esp, 0xc
lea eax, [ebp - 0x28]
mov ecx, 0x10212884
push 0x54
push str.RC::SdInstallProtectMgr::Init
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_src_sdinstallprotectinstallprotect_sdinstallprotectmgr.cpp
push eax
push 4
call fcn.1012e9e0
test bl, bl
je 0x10039ec9
lea eax, [ebp - 0x28]
mov ecx, 0x10212884
push eax
call fcn.1012ed00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
jmp 0x10039ff6
mov dword [0x10212284], ebx
mov dword [0x10212280], esi
jmp 0x10039b29
xor al, al
xchg byte [ecx], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10009450
xor al, al
mov ecx, 0x10207673
xchg byte [ecx], al
push 0xc
call fcn.10161f74
mov esi, eax
add esp, 4
mov dword [ebp - 0x5c], esi
mov dword [ebp - 4], 0x13
mov ecx, esi
call fcn.101440b0
mov byte [ebp - 4], 0x14
mov dword [esi], vtable.RC::RCIptSwitchNotification.0
mov word [esi + 8], 0x100
mov dword [ebp - 4], 0xffffffff
push ecx
mov eax, esp
mov dword [ebp - 0x5c], esp
mov dword [eax], esi
mov dword [ebp - 4], 0x15
mov dword [ebp - 4], 0xffffffff
mov ecx, 0x10207674
call fcn.10144740
cmp dword [0x10212884], 0
je 0x10039ffb
push 0
mov ecx, 0x10212884
call fcn.1012e070
mov eax, dword [0x10212884]
cmp byte [eax + 0x54], 0
je 0x10039ffb
cmp dword [eax + 0x58], 4
jb 0x10039ffb
mov bl, byte [eax + 0x5c]
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov dword [ebp - 4], 0x16
lea ecx, [ebp - 0x58]
push 0x15
push 0x101b9ddc
call fcn.100094b0
push 0x5a
push str.RC::SdInstallProtectMgr::Init
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_src_sdinstallprotectinstallprotect_sdinstallprotectmgr.cpp
lea eax, [ebp - 0x58]
mov ecx, 0x10212884
push eax
push 4
call fcn.1012e9e0
test bl, bl
je 0x10039fec
lea eax, [ebp - 0x58]
mov ecx, 0x10212884
push eax
call fcn.1012ed00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.10009450
mov al, byte [0x10207670]
test al, al
je 0x1003a01a
mov al, byte [0x10207672]
test al, al
je 0x1003a01a
mov al, byte [0x10207671]
test al, al
je 0x1003a01a
mov al, 1
jmp 0x1003a01c
xor al, al
test al, al
jne 0x1003a057
mov al, byte [0x10207670]
test al, al
jne 0x1003a030
push 0x3ea
jmp 0x1003a04e
mov al, byte [0x10207672]
test al, al
jne 0x1003a040
push 0x3ec
jmp 0x1003a04e
mov al, byte [0x10207671]
test al, al
jne 0x1003a057
push 0x3eb
push 0
mov ecx, edi
call fcn.1003a620
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10161f63
mov esp, ebp
pop ebp
ret