Function at 0x100100f1
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3fc
mov eax, dword [0x1002f060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
mov ebx, edx
push ebx
mov edi, ecx
mov dword [ebp - 0x3f8], ebx
call esi
add eax, 3
cmp eax, 0x3e8
jae 0x100104b4
push ebx
call esi
push dword [ebp - 0x3f8]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ebx, [ebp + eax - 0x3f0]
lea eax, [ebp - 0x3f0]
push eax
mov dword [ebp - 0x3f4], ebx
call esi
push 0x10029e74
push ebx
call esi
lea ebx, [edi + 8]
lea ecx, [ebp - 0x3f0]
mov dword [ebp - 0x3fc], ebx
call fcn.10016d70
test eax, eax
je 0x100104b4
push 0x10029e78
push dword [ebp - 0x3f4]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
call fcn.10015c20
mov ecx, dword [eax + 0xc]
neg ecx
sbb ecx, ecx
and ecx, eax
lea eax, [ebp - 0x3f0]
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [edi + 0x60], eax
test eax, eax
je 0x100104a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1001049c
mov ecx, dword [ebp - 0x3f8]
lea ebx, [edi + 0x54]
push 0x1bb0
call fcn.10016bb0
test eax, eax
je 0x1001049c
push 0x10029cb8
push dword [ebp - 0x3f4]
call esi
call fcn.10015c20
mov ecx, dword [eax + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
neg ecx
sbb ecx, ecx
and ecx, eax
lea eax, [ebp - 0x3f0]
push eax
push 0
push 1
push ecx
call ebx
push 0x10029d08
push dword [ebp - 0x3f4]
mov dword [edi + 0x64], eax
call esi
call fcn.10015c20
mov ecx, dword [eax + 0xc]
neg ecx
sbb ecx, ecx
and ecx, eax
lea eax, [ebp - 0x3f0]
push eax
push 0
push 1
push ecx
call ebx
push 0x10029d10
push dword [ebp - 0x3f4]
mov dword [edi + 0x68], eax
call esi
call fcn.10015c20
mov ecx, dword [eax + 0xc]
neg ecx
sbb ecx, ecx
and ecx, eax
lea eax, [ebp - 0x3f0]
push eax
push 0
push 1
push ecx
call ebx
push 0x10029b98
push dword [ebp - 0x3f4]
mov dword [edi + 0x6c], eax
call esi
call fcn.10015c20
mov ecx, dword [eax + 0xc]
neg ecx
sbb ecx, ecx
and ecx, eax
lea eax, [ebp - 0x3f0]
push eax
push 0
push 1
push ecx
call ebx
push 0x10029d0c
push dword [ebp - 0x3f4]
mov dword [edi + 0x70], eax
call esi
call fcn.10015c20
mov ecx, dword [eax + 0xc]
neg ecx
sbb ecx, ecx
and ecx, eax
lea eax, [ebp - 0x3f0]
push eax
xor esi, esi
push esi
push 1
push ecx
call ebx
mov dword [edi + 0x74], eax
cmp dword [edi + 0x64], esi
je 0x1001044d
cmp dword [edi + 0x68], esi
je 0x1001044d
cmp dword [edi + 0x6c], esi
je 0x1001044d
mov ecx, dword [edi + 0x70]
cmp ecx, esi
je 0x1001044d
push 0xffffffffffffffff
lea esi, [edi + 0x128]
mov edx, 0x25e
call fcn.10016e70
test eax, eax
je 0x1001044b
mov ecx, dword [edi + 0x74]
test ecx, ecx
je 0x1001044b
push 0xffffffffffffffff
lea esi, [edi + 0x114]
mov edx, 0x25d
call fcn.10016e70
test eax, eax
je 0x1001044b
mov esi, dword [edi + 0x58]
xor ebx, ebx
cmp dword [edi + 0x5c], ebx
je 0x10010443
cmp esi, ebx
je 0x10010443
mov eax, 0x10034200
call fcn.10001a09
push 1
call fcn.10001a59
pop ecx
call fcn.10001a22
push eax
call fcn.10001a59
mov eax, 0xffffff38
mov dword [esi], eax
mov dword [ebp - 0x3f4], eax
mov dword [esi + 0x10], ebx
mov dword [edi + 0xa8], ebx
mov ebx, dword [esi + 0x404]
lea eax, [esi + 0xfe4]
cmp byte [eax], 0
pop ecx
je 0x100103a5
lea ecx, [esi + 0xbfc]
push ecx
push eax
call fcn.10011b48
pop ecx
pop ecx
test eax, eax
je 0x100103a5
add ebx, dword [esi + 0x1ba4]
xor eax, eax
inc eax
and dword [edi + 0xc4], 0
mov dword [edi + 0xb4], eax
jmp 0x100103b2
push 2
mov dword [edi + 0xac], 1
pop eax
mov ecx, edi
call fcn.10011a75
mov eax, ebx
push 0x32
cdq
pop ecx
idiv ecx
mov dword [edi + 0xa0], eax
test eax, eax
jne 0x100103d5
mov dword [edi + 0xa0], 1
cmp dword [esi + 0x414], 0
mov eax, dword [edi + 0xa0]
lea ebx, [ebx + eax*2]
mov dword [esi + 0x14], ebx
jne 0x100103f6
mov eax, dword [edi + 0xa0]
lea eax, [ebx + eax*2]
mov dword [esi + 0x14], eax
cmp dword [edi + 0x7c], 0x3e8
jb 0x1001043b
push edi
lea eax, [edi + 0x28]
call fcn.100025ea
test eax, eax
je 0x10010431
call fcn.100104c5
lea eax, [ebp - 0x3f4]
push eax
lea eax, [ebp - 0x3f0]
push eax
push esi
call fcn.100104fc
test eax, eax
je 0x1001043b
xor eax, eax
inc eax
jmp 0x100104b6
mov dword [ebp - 0x3f4], 0xffffff35
mov eax, dword [ebp - 0x3f4]
mov dword [esi], eax
lea esi, [edi + 0x54]
call fcn.10016d30
xor esi, esi
mov eax, dword [edi + 0x64]
cmp eax, esi
je 0x1001045e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x64], esi
mov eax, dword [edi + 0x68]
cmp eax, esi
je 0x1001046f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x68], esi
mov eax, dword [edi + 0x6c]
cmp eax, esi
je 0x10010480
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x6c], esi
mov eax, dword [edi + 0x74]
cmp eax, esi
je 0x10010491
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x74], esi
lea esi, [edi + 0x114]
call fcn.10016ed0
push dword [edi + 0x60]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [edi + 0x60], 0
mov esi, dword [ebp - 0x3fc]
call fcn.10016e10
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10017a76
leave
ret