Function at 0x10066f40
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10090e10
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x100c6580]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x16c], 0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.1000afe0
mov byte [ebp - 4], 2
push 0x100ab00c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x10066feb
push str.CriticalError
mov ecx, dword [ebp + 8]
call fcn.1000c990
mov eax, dword [ebp - 0x16c]
or eax, 1
mov dword [ebp - 0x16c], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.1000af00
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.1000af00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.1000af00
mov eax, dword [ebp + 8]
jmp 0x10067477
push 0x3a98
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x170], edx
cmp dword [ebp - 0x170], 0
je 0x10067024
cmp dword [ebp - 0x170], 0x102
je 0x1006741b
jmp 0x10067428
push 0x100ab044
lea ecx, [ebp - 0x148]
call fcn.10001280
mov dword [ebp - 0x174], eax
mov eax, dword [ebp - 0x174]
push eax
mov ecx, 0x100c8340
call fcn.10001e70
mov byte [ebp - 0x141], al
lea ecx, [ebp - 0x148]
call fcn.1001b440
movzx ecx, byte [ebp - 0x141]
test ecx, ecx
je 0x10067214
lea ecx, [ebp - 0x134]
call fcn.1004e120
mov byte [ebp - 4], 3
xor edx, edx
mov word [ebp - 0x12c], dx
push 0x7e
push 0
lea eax, [ebp - 0x12a]
push eax
call fcn.10072920
add esp, 0xc
push 0
push 0
push 0x2001f
push 0
push 0
mov ecx, dword [0x100c61c4]
push ecx
push SysReAllocStringLen
lea ecx, [ebp - 0x134]
call fcn.10011de0
mov dword [ebp - 0x138], 0x40
lea edx, [ebp - 0x138]
push edx
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [0x100c61c8]
push ecx
lea ecx, [ebp - 0x134]
call fcn.10019ec0
movzx edx, word [ebp - 0x12c]
test edx, edx
je 0x10067205
lea ecx, [ebp - 0x140]
call fcn.1004e120
mov byte [ebp - 4], 4
push 0
push 0
push 0x2001f
push 0
push 0
push 0x100c8340
lea eax, [ebp - 0x154]
push eax
push 0x100ab048
lea ecx, [ebp - 0x14c]
call fcn.10001280
mov dword [ebp - 0x178], eax
mov ecx, dword [ebp - 0x178]
mov dword [ebp - 0x17c], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x17c]
push edx
mov eax, dword [0x100c61c4]
push eax
lea ecx, [ebp - 0x150]
push ecx
call fcn.1001b390
add esp, 0xc
mov dword [ebp - 0x180], eax
mov edx, dword [ebp - 0x180]
mov dword [ebp - 0x184], edx
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x184]
call fcn.10001730
mov dword [ebp - 0x188], eax
mov ecx, dword [ebp - 0x188]
call fcn.10003e70
push eax
push SysReAllocStringLen
lea ecx, [ebp - 0x140]
call fcn.10011de0
lea ecx, [ebp - 0x154]
call fcn.1001b440
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x150]
call fcn.1001b440
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14c]
call fcn.1001b440
push 1
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [0x100c61c8]
push ecx
lea ecx, [ebp - 0x140]
call fcn.10011ee0
mov edx, dword [0x100c61c8]
push edx
lea ecx, [ebp - 0x134]
call fcn.10011d90
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x140]
call fcn.100125c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x134]
call fcn.100125c0
lea ecx, [ebp - 0xa4]
call fcn.1004e120
mov byte [ebp - 4], 7
xor eax, eax
mov word [ebp - 0x9c], ax
push 0x7e
push 0
lea ecx, [ebp - 0x9a]
push ecx
call fcn.10072920
add esp, 0xc
push 0
push 0
push 0x2001f
push 0
push 0
push 0x100c8340
lea edx, [ebp - 0x160]
push edx
push 0x100ab04c
lea ecx, [ebp - 0x158]
call fcn.10001280
mov dword [ebp - 0x18c], eax
mov eax, dword [ebp - 0x18c]
mov dword [ebp - 0x190], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x190]
push ecx
mov edx, dword [0x100c61c4]
push edx
lea eax, [ebp - 0x15c]
push eax
call fcn.1001b390
add esp, 0xc
mov dword [ebp - 0x194], eax
mov ecx, dword [ebp - 0x194]
mov dword [ebp - 0x198], ecx
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x198]
call fcn.10001730
mov dword [ebp - 0x19c], eax
mov ecx, dword [ebp - 0x19c]
call fcn.10003e70
push eax
push SysReAllocStringLen
lea ecx, [ebp - 0xa4]
call fcn.10011de0
lea ecx, [ebp - 0x160]
call fcn.1001b440
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x15c]
call fcn.1001b440
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x158]
call fcn.1001b440
mov dword [ebp - 0xa8], 0x40
lea edx, [ebp - 0xa8]
push edx
lea eax, [ebp - 0x9c]
push eax
mov ecx, dword [0x100c61c8]
push ecx
lea ecx, [ebp - 0xa4]
call fcn.10019ec0
movzx edx, word [ebp - 0x9c]
test edx, edx
je 0x10067350
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x14]
call fcn.1000b4d0
jmp 0x10067400
lea ecx, [ebp + 0xc]
call fcn.1000aec0
cmp eax, 0xe
jne 0x10067388
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x14]
call fcn.1003c470
push 1
lea ecx, [ebp - 0x14]
call fcn.10017d30
push eax
mov edx, dword [0x100c61c8]
push edx
lea ecx, [ebp - 0xa4]
call fcn.10011ee0
jmp 0x10067400
push ecx
mov ecx, esp
mov dword [ebp - 0x164], esp
lea eax, [ebp + 0x10]
push eax
call fcn.1000b000
mov dword [ebp - 0x1a0], eax
lea ecx, [ebp - 0x168]
push ecx
call fcn.10067490
add esp, 8
mov dword [ebp - 0x1a4], eax
mov edx, dword [ebp - 0x1a4]
mov dword [ebp - 0x1a8], edx
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x1a8]
push eax
lea ecx, [ebp - 0x14]
call fcn.1003c470
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x168]
call fcn.1000af00
push 1
lea ecx, [ebp - 0x14]
call fcn.10017d30
push eax
mov ecx, dword [0x100c61c8]
push ecx
lea ecx, [ebp - 0xa4]
call fcn.10011ee0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa4]
call fcn.100125c0
jmp 0x10067428
push str.AIDReqTimedOut
lea ecx, [ebp - 0x14]
call fcn.1000c530
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 8]
call fcn.1000b000
mov edx, dword [ebp - 0x16c]
or edx, 1
mov dword [ebp - 0x16c], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.1000af00
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.1000af00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.1000af00
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1007219d
mov esp, ebp
pop ebp
ret