Function at 0x1012a0f0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101981a5
mov eax, dword fs:[0]
push eax
sub esp, 0x408
mov eax, dword [0x101d8724]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov word [ebp - 0x2bc], ax
mov dword [ebp - 0x2c4], 0
cmp dword [ebp + 8], 0
jle 0x1012a433
cmp dword [0x101d7ed4], 0xffffffff
jne 0x1012a433
push 0xffffffffffffffff
push 0x101e7708
call fcn.1014e8a0
add esp, 4
push eax
push 0x101e7708
call fcn.101153c0
add esp, 0xc
mov dword [ebp - 0x340], eax
push str._1_08X:LocalCopy_count_
lea ecx, [ebp - 0xbc]
call fcn.10092950
mov dword [ebp - 0x3f8], eax
mov ecx, dword [ebp - 0x3f8]
mov dword [ebp - 0x358], ecx
mov dword [ebp - 4], 0
lea edx, [ebp - 0x340]
push edx
mov eax, dword [ebp - 0x358]
push eax
call fcn.1012aa10
add esp, 8
mov dword [ebp - 0x35c], eax
mov ecx, dword [ebp - 0x35c]
push ecx
lea edx, [ebp - 0x2e0]
push edx
call fcn.10092b00
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xbc]
call fcn.1008d3c0
cmp dword [ebp - 0x2cc], 0x10
jb 0x1012a1e9
mov eax, dword [ebp - 0x2e0]
mov dword [ebp - 0x3fc], eax
jmp 0x1012a1f5
lea ecx, [ebp - 0x2e0]
mov dword [ebp - 0x3fc], ecx
mov edx, dword [ebp - 0x3fc]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x2c0], eax
cmp dword [ebp - 0x2c0], 0
je 0x1012a3e1
push 0xbb8
mov eax, dword [ebp - 0x2c0]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x2e4], eax
cmp dword [ebp - 0x2e4], 0
je 0x1012a24a
cmp dword [ebp - 0x2e4], 0x80
jne 0x1012a3c7
mov dword [ebp - 0x2c4], 0
jmp 0x1012a265
mov ecx, dword [ebp - 0x2c4]
add ecx, 1
mov dword [ebp - 0x2c4], ecx
cmp dword [ebp - 0x2c4], 0x100
jge 0x1012a3c7
push 0xffffffffffffffff
push 0x101e7708
call fcn.1014e8a0
add esp, 4
push eax
push 0x101e7708
call fcn.101153c0
add esp, 0xc
mov dword [ebp - 0x344], eax
push str._1_08X:LocalCopy__2__
lea ecx, [ebp - 0x164]
call fcn.10092950
mov dword [ebp - 0x400], eax
mov edx, dword [ebp - 0x400]
mov dword [ebp - 0x368], edx
mov byte [ebp - 4], 3
lea eax, [ebp - 0x344]
push eax
mov ecx, dword [ebp - 0x368]
push ecx
call fcn.1012aa10
add esp, 8
mov dword [ebp - 0x36c], eax
lea edx, [ebp - 0x2c4]
push edx
mov eax, dword [ebp - 0x36c]
push eax
call fcn.1012ab60
add esp, 8
mov dword [ebp - 0x370], eax
mov ecx, dword [ebp - 0x370]
push ecx
lea edx, [ebp - 0x300]
push edx
call fcn.10092b00
add esp, 8
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x164]
call fcn.1008d3c0
cmp dword [ebp - 0x2ec], 0x10
jb 0x1012a332
mov eax, dword [ebp - 0x300]
mov dword [ebp - 0x404], eax
jmp 0x1012a33e
lea ecx, [ebp - 0x300]
mov dword [ebp - 0x404], ecx
mov edx, dword [ebp - 0x404]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x101e790c], eax
cmp dword [0x101e790c], 0
je 0x1012a3ab
push 0
mov eax, dword [0x101e790c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x2e4], eax
cmp dword [ebp - 0x2e4], 0
je 0x1012a386
cmp dword [ebp - 0x2e4], 0x80
jne 0x1012a3ab
mov ecx, dword [ebp - 0x2c4]
mov dword [0x101d7ed4], ecx
mov byte [ebp - 4], 6
push 0
push 1
lea ecx, [ebp - 0x300]
call fcn.10042350
mov byte [ebp - 4], 2
jmp 0x1012a3c7
mov byte [ebp - 4], 7
push 0
push 1
lea ecx, [ebp - 0x300]
call fcn.10042350
mov byte [ebp - 4], 2
jmp 0x1012a256
mov edx, dword [ebp - 0x2c0]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0x2c0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x101db640]
mov dword [ebp - 0x37c], ecx
mov edx, dword [ebp + 8]
push edx
push 0
mov ecx, dword [ebp - 0x37c]
call fcn.1008dae0
mov word [ebp - 0x346], ax
mov dword [ebp - 4], 8
push 0
push 1
lea ecx, [ebp - 0x2e0]
call fcn.10042350
mov dword [ebp - 4], 0xffffffff
mov ax, word [ebp - 0x346]
jmp 0x1012a7f3
cmp dword [ebp + 8], 0
jge 0x1012a48c
cmp dword [0x101d7ed4], 0xffffffff
je 0x1012a48c
mov eax, dword [0x101e790c]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [0x101e790c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x101d7ed4], 0xffffffff
mov edx, dword [0x101db640]
mov dword [ebp - 0x380], edx
mov eax, dword [ebp + 8]
push eax
push 0
mov ecx, dword [ebp - 0x380]
call fcn.1008dae0
jmp 0x1012a7f3
push 0xffffffffffffffff
push 0x101e7708
call fcn.1014e8a0
add esp, 4
push eax
push 0x101e7708
call fcn.101153c0
add esp, 0xc
mov dword [ebp - 0x34c], eax
push str._1_08X:LocalCopy_count_
lea ecx, [ebp - 0x20c]
call fcn.10092950
mov dword [ebp - 0x408], eax
mov ecx, dword [ebp - 0x408]
mov dword [ebp - 0x384], ecx
mov dword [ebp - 4], 9
lea edx, [ebp - 0x34c]
push edx
mov eax, dword [ebp - 0x384]
push eax
call fcn.1012aa10
add esp, 8
mov dword [ebp - 0x388], eax
mov ecx, dword [ebp - 0x388]
push ecx
lea edx, [ebp - 0x31c]
push edx
call fcn.10092b00
add esp, 8
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x20c]
call fcn.1008d3c0
cmp dword [ebp - 0x308], 0x10
jb 0x1012a530
mov eax, dword [ebp - 0x31c]
mov dword [ebp - 0x40c], eax
jmp 0x1012a53c
lea ecx, [ebp - 0x31c]
mov dword [ebp - 0x40c], ecx
mov edx, dword [ebp - 0x40c]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x2c0], eax
cmp dword [ebp - 0x2c0], 0
je 0x1012a791
push 0xbb8
mov eax, dword [ebp - 0x2c0]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x320], eax
cmp dword [ebp - 0x320], 0
je 0x1012a591
cmp dword [ebp - 0x320], 0x80
jne 0x1012a741
mov dword [ebp - 0x2c4], 0
jmp 0x1012a5ac
mov ecx, dword [ebp - 0x2c4]
add ecx, 1
mov dword [ebp - 0x2c4], ecx
cmp dword [ebp - 0x2c4], 0x100
jge 0x1012a741
mov edx, dword [ebp - 0x2c4]
cmp edx, dword [0x101d7ed4]
jne 0x1012a5e1
mov ax, word [ebp - 0x2bc]
add ax, 1
mov word [ebp - 0x2bc], ax
jmp 0x1012a73c
push 0xffffffffffffffff
push 0x101e7708
call fcn.1014e8a0
add esp, 4
push eax
push 0x101e7708
call fcn.101153c0
add esp, 0xc
mov dword [ebp - 0x350], eax
push str._1_08X:LocalCopy__2__
lea ecx, [ebp - 0x2b4]
call fcn.10092950
mov dword [ebp - 0x410], eax
mov ecx, dword [ebp - 0x410]
mov dword [ebp - 0x3a8], ecx
mov byte [ebp - 4], 0xc
lea edx, [ebp - 0x350]
push edx
mov eax, dword [ebp - 0x3a8]
push eax
call fcn.1012aa10
add esp, 8
mov dword [ebp - 0x3ac], eax
lea ecx, [ebp - 0x2c4]
push ecx
mov edx, dword [ebp - 0x3ac]
push edx
call fcn.1012ab60
add esp, 8
mov dword [ebp - 0x3c4], eax
mov eax, dword [ebp - 0x3c4]
push eax
lea ecx, [ebp - 0x33c]
push ecx
call fcn.10092b00
add esp, 8
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x2b4]
call fcn.1008d3c0
cmp dword [ebp - 0x328], 0x10
jb 0x1012a69e
mov edx, dword [ebp - 0x33c]
mov dword [ebp - 0x414], edx
jmp 0x1012a6aa
lea eax, [ebp - 0x33c]
mov dword [ebp - 0x414], eax
mov ecx, dword [ebp - 0x414]
push ecx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [ebp - 0x2b8], eax
cmp dword [ebp - 0x2b8], 0
je 0x1012a725
push 0
mov edx, dword [ebp - 0x2b8]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x320], eax
cmp dword [ebp - 0x320], 0x102
je 0x1012a6f7
cmp dword [ebp - 0x320], 0xffffffff
jne 0x1012a70b
mov ax, word [ebp - 0x2bc]
add ax, 1
mov word [ebp - 0x2bc], ax
jmp 0x1012a725
mov ecx, dword [ebp - 0x2b8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebp - 0x2b8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0xf
push 0
push 1
lea ecx, [ebp - 0x33c]
call fcn.10042350
mov byte [ebp - 4], 0xb
jmp 0x1012a59d
mov eax, dword [ebp - 0x2c0]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 0x2c0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dx, word [ebp - 0x2bc]
mov word [ebp - 0x352], dx
mov dword [ebp - 4], 0x10
push 0
push 1
lea ecx, [ebp - 0x31c]
call fcn.10042350
mov dword [ebp - 4], 0xffffffff
mov ax, word [ebp - 0x352]
jmp 0x1012a7f3
mov eax, dword [0x101db640]
mov dword [ebp - 0x3d4], eax
push 0
mov ecx, dword [ebp - 0x3d4]
call fcn.1008db90
mov word [ebp - 0x354], ax
mov dword [ebp - 4], 0x11
push 0
push 1
lea ecx, [ebp - 0x31c]
call fcn.10042350
mov dword [ebp - 4], 0xffffffff
mov ax, word [ebp - 0x354]
jmp 0x1012a7f3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014c68a
mov esp, ebp
pop ebp
ret