Function at 0x1008d68
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [eax + 0x2c]
cmp eax, dword [edi + 0x2c]
je 0x1008847
cmp eax, ebx
je 0x100883c
jmp 0x1008867
mov ecx, dword [esi + 0x3c]
push edi
call fcn.01008ee5
cmp eax, ebx
jne 0x100881c
cmp dword [edi + 0x2c], ebx
je 0x1008867
push edi
lea ecx, [esi + 0x18]
call fcn.01008a64
jmp 0x1008867
cmp dword [ebp - 0x18], ebx
je 0x1008876
mov ecx, dword [esi + 0x3c]
lea eax, [ebp - 0x18]
push eax
call fcn.01007963
mov edi, eax
lea eax, [edi + 0x14]
push eax
call fcn.01004354
test eax, eax
je 0x100882a
mov ecx, dword [esi + 0x44]
lea eax, [edi + 0x20]
push eax
push edi
call fcn.0100471e
jmp 0x1008847
mov esi, dword [ebp - 0x24]
jmp 0x1016996
cmp dword [ebp - 0x24], ebx
jl 0x1008876
jmp 0x1008df2
xor eax, eax
jmp 0x1008e81
lea ecx, [ebp - 0x5c]
call fcn.010028a0
lea ecx, [ebp - 0x6c]
call fcn.010028a0
lea ecx, [ebp - 0x7c]
call fcn.010028a0
mov eax, esi
call fcn.01001740
ret
push pe_nt_image_headers32
mov eax, 0x104672e
call fcn.01001f29
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x44], 0x10032b4
mov dword [ebp - 0x40], ebx
push 0x1008dc8
push ebx
push ebx
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
jmp 0x1016981
mov edi, dword [esi + 0x3c]
push dword [edi]
mov ecx, edi
call fcn.010079ca
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x1008e1e
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.01007963
cmp dword [eax + 0x44], ebx
jne 0x1016a05
cmp dword [ebp - 0x18], ebx
jne 0x1008e05
cmp dword [ebp - 0x68], ebx
mov dword [ebp - 0x18], ebx
ja 0x1016a21
cmp dword [ebp - 0x78], ebx
mov dword [ebp - 0x18], ebx
ja 0x1016c89
cmp dword [ebp - 0x58], ebx
mov dword [ebp - 0x18], ebx
ja 0x1016d84
push 0xffffffffffffffff
push ebx
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 0x13
call fcn.01008ea6
lea edi, [esi + 0x44]
mov ecx, edi
call fcn.010028b6
push 0x20
call dword [0x1050b64]
mov ecx, eax
mov dword [ebp - 0x3c], ecx
cmp ecx, ebx
mov byte [ebp - 4], 0x14
je 0x1008888
lea eax, [esi + 0x10]
push eax
lea eax, [esi + 0x14]
push eax
call fcn.0100579e
cmp eax, ebx
mov byte [ebp - 4], 0x13
je 0x1016f3c
mov ecx, dword [esi + 0x3c]
mov dword [edi], eax
push dword [ecx]
call fcn.010079ca
mov dword [ebp - 0x18], eax
jmp 0x1008847
push eax
lea ecx, [ebp - 0x44]
call fcn.0100b77e
cmp dword [ebp - 0x40], ebx
jne 0x10169ab
call fcn.0100f5ae
mov esi, eax
push ebx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], 0x10032b4
call fcn.0100b77e
jmp 0x100888f
push 0xffffffffffffffff
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x7c]
push eax
push 0x1016fec
mov ecx, esi
call fcn.010090ac
cmp eax, ebx
mov dword [ebp - 0x24], eax
jl 0x10169f7
lea eax, [ebp - 0x6c]
push eax
push 0x1016fc4
mov ecx, esi
call fcn.010090ac
cmp eax, ebx
mov dword [ebp - 0x24], eax
jl 0x10169f7
lea eax, [ebp - 0x5c]
push eax
push 0x1016f8c
mov ecx, esi
call fcn.010090ac
mov dword [ebp - 0x24], eax
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x100887e
push eax
mov ecx, edi
call fcn.010382b5
mov edi, dword [esi + 0x3c]
push dword [edi]
mov ecx, edi
call fcn.010079ca
mov dword [ebp - 0x18], eax
jmp 0x1008e19
mov edi, 0x104d19c
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x18]
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 4
call fcn.01002989
push eax
mov ecx, esi
call fcn.0103825d
cmp eax, ebx
mov dword [ebp - 0x24], eax
jl 0x1016c78
cmp dword [ebp - 0x30], ebx
mov dword [ebp - 0x48], ebx
jbe 0x1016c58
push edi
lea ecx, [ebp - 0x20]
call fcn.01003395
push dword [ebp - 0x48]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 5
call fcn.01002989
push eax
lea ecx, [ebp - 0x20]
call fcn.0100523a
mov eax, dword [ebp - 0x20]
cmp dword [eax - 0xc], 2
jl 0x1016ada
push 2
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x20]
call fcn.01009243
or dword [ebp - 0x1c], 1
push 0x1011abc
push eax
mov byte [ebp - 4], 6
call fcn.01003e1c
test al, al
jne 0x1016ad4
push 2
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x20]
call fcn.01009243
or dword [ebp - 0x1c], 2
push 0x1011ab4
push eax
call fcn.01003e1c
test al, al
je 0x1016ada
mov byte [ebp - 0x11], 1
jmp 0x1016add
mov byte [ebp - 0x11], bl
test byte [ebp - 0x1c], 2
je 0x1016af2
mov ecx, dword [ebp - 0x4c]
and dword [ebp - 0x1c], 0xfffffffd
add ecx, 0xfffffff0
call fcn.01002480
test byte [ebp - 0x1c], 1
mov dword [ebp - 4], 5
je 0x1016b0e
mov ecx, dword [ebp - 0x3c]
and dword [ebp - 0x1c], 0xfffffffe
add ecx, 0xfffffff0
call fcn.01002480
cmp byte [ebp - 0x11], bl
je 0x1016b25
mov eax, dword [ebp - 0x20]
mov eax, dword [eax - 0xc]
push 1
dec eax
push eax
lea ecx, [ebp - 0x20]
call fcn.010359ae
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x9c]
call fcn.010077db
xor eax, eax
inc eax
push eax
push eax
push eax
push eax
push ebx
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 7
call fcn.01007829
push edi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 8
call fcn.01003395
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
mov byte [ebp - 4], 9
call fcn.01037a55
cmp eax, ebx
mov dword [ebp - 0x24], eax
jl 0x1016c2c
mov ecx, dword [esi + 0x3c]
lea eax, [ebp - 0x9c]
push eax
call fcn.01012015
cmp eax, ebx
je 0x1016b93
cmp dword [eax + 0x18], ebx
je 0x1016bec
mov ecx, dword [esi + 0x3c]
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.0100471e
push 0x1002ebc
lea ecx, [ebp - 0x38]
call fcn.01003e3a
test eax, eax
je 0x1016bec
lea ecx, [ebp - 0xf4]
call fcn.01005a7c
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0xf4]
push eax
push dword [ebp - 0x38]
mov byte [ebp - 4], 0xa
mov dword [ebp - 0xe0], ebx
call fcn.01005c9b
lea ecx, [ebp - 0xf4]
call fcn.0100253d
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff0
call fcn.01002480
lea ecx, [ebp - 0xc4]
call fcn.010026aa
lea ecx, [ebp - 0x9c]
call fcn.01002610
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov byte [ebp - 4], 4
call fcn.01002480
inc dword [ebp - 0x48]
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x30]
jae 0x1016c58
jmp 0x1016a64
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff0
call fcn.01002480
lea ecx, [ebp - 0xc4]
call fcn.010026aa
lea ecx, [ebp - 0x9c]
call fcn.01002610
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.01002480
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.010028a0
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x68]
jae 0x1008e2a
jmp 0x1016a26
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.010028a0
jmp 0x1008e2a
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x18]
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0xb
call fcn.01002989
push eax
mov ecx, esi
call fcn.0103825d
cmp eax, ebx
mov dword [ebp - 0x24], eax
jl 0x1016d73
xor edi, edi
cmp dword [ebp - 0x30], ebx
jbe 0x1016d53
push edi
lea ecx, [ebp - 0x34]
call fcn.01002989
push eax
lea ecx, [ebp - 0x9c]
call fcn.010077db
xor eax, eax
inc eax
push eax
push eax
push eax
push eax
push ebx
push ebx
push edi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xc
call fcn.01002989
push eax
lea ecx, [ebp - 0xc4]
call fcn.01007829
mov ecx, dword [esi + 0x3c]
lea eax, [ebp - 0x9c]
push eax
mov byte [ebp - 4], 0xd
call fcn.01012015
cmp eax, ebx
je 0x1016d19
cmp dword [eax + 0x18], ebx
je 0x1016d2f
mov ecx, dword [esi + 0x3c]
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.0100471e
lea ecx, [ebp - 0xc4]
call fcn.010026aa
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0xb
call fcn.01002610
inc edi
cmp edi, dword [ebp - 0x30]
jb 0x1016cc6
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.010028a0
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x78]
jae 0x1008e36
jmp 0x1016c89
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.010028a0
jmp 0x1008e36
push dword [ebp - 0x18]
lea ecx, [ebp - 0x5c]
call fcn.01002989
push eax
lea ecx, [ebp - 0x20]
call fcn.01005423
push 2
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xe
call fcn.01009243
or dword [ebp - 0x1c], 4
push 0x1011ab4
push eax
mov byte [ebp - 4], 0xf
call fcn.01003e1c
test al, al
jne 0x1016de5
push 2
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x20]
call fcn.01009243
or dword [ebp - 0x1c], 8
push 0x1011abc
push eax
call fcn.01003e1c
test al, al
mov byte [ebp - 0x11], bl
je 0x1016de9
mov byte [ebp - 0x11], 1
test byte [ebp - 0x1c], 8
je 0x1016dfe
mov ecx, dword [ebp - 0x3c]
and dword [ebp - 0x1c], 0xfffffff7
add ecx, 0xfffffff0
call fcn.01002480
test byte [ebp - 0x1c], 4
mov dword [ebp - 4], 0xe
je 0x1016e1a
mov ecx, dword [ebp - 0x4c]
and dword [ebp - 0x1c], 0xfffffffb
add ecx, 0xfffffff0
call fcn.01002480
cmp byte [ebp - 0x11], bl
je 0x1016e31
mov eax, dword [ebp - 0x20]
mov eax, dword [eax - 0xc]
push 1
dec eax
push eax
lea ecx, [ebp - 0x20]
call fcn.010359ae
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
mov byte [ebp - 4], 0x10
call fcn.0103825d
cmp eax, ebx
mov dword [ebp - 0x24], eax
jl 0x1016f24
xor edi, edi
cmp dword [ebp - 0x30], ebx
jbe 0x1016ef9
push edi
lea ecx, [ebp - 0x34]
call fcn.01002989
push eax
lea ecx, [ebp - 0x9c]
call fcn.010077db
push 1
push 1
push ebx
push 1
push ebx
push ebx
push edi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x11
call fcn.01002989
push eax
lea ecx, [ebp - 0xc4]
call fcn.01007829
mov ecx, dword [esi + 0x3c]
lea eax, [ebp - 0x9c]
push eax
mov byte [ebp - 4], 0x12
call fcn.010382b5
mov ecx, dword [esi + 0x3c]
lea eax, [ebp - 0x9c]
push eax
call fcn.01038359
mov ecx, dword [esi + 0x3c]
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.0100471e
lea ecx, [ebp - 0xc4]
call fcn.010026aa
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0x10
call fcn.01002610
inc edi
cmp edi, dword [ebp - 0x30]
jb 0x1016e66
lea ecx, [ebp - 0x34]
call fcn.010028a0
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.01002480
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x58]
jae 0x1008e42
jmp 0x1016d84
lea ecx, [ebp - 0x34]
call fcn.010028a0
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.01002480
jmp 0x1008e42
push ebx
lea ecx, [ebp - 0x44]
mov dword [esi + 0xc], 2
mov dword [ebp - 0x44], 0x10032b4
call fcn.0100b77e
lea ecx, [ebp - 0x5c]
call fcn.010028a0
lea ecx, [ebp - 0x6c]
call fcn.010028a0
mov esi, 0x8007000e
jmp 0x100889f