Function at 0x1017fb2
Capabilities:
Check mutex on windows

Disassembly:
push 0xd0
mov eax, 0x1044208
call fcn.01001630
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x40], 0x10026d4
mov dword [ebp - 0x3c], ebx
push 0x10181d4
push ebx
push ebx
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push eax
lea ecx, [ebp - 0x40]
call fcn.0100272d
cmp dword [ebp - 0x3c], ebx
je 0x101f113
push 0xffffffffffffffff
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x64]
push eax
push 0x10181a8
mov ecx, esi
call fcn.01018203
cmp eax, ebx
mov dword [ebp - 0x20], eax
jl 0x1018068
lea eax, [ebp - 0x54]
push eax
push 0x1018180
mov ecx, esi
call fcn.01018203
cmp eax, ebx
mov dword [ebp - 0x20], eax
jl 0x1018068
lea eax, [ebp - 0x74]
push eax
push 0x1018148
mov ecx, esi
call fcn.01018203
mov dword [ebp - 0x20], eax
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp - 0x20], ebx
jl 0x1018116
lea eax, [esi + 0x10]
push eax
lea eax, [esi + 0x14]
push eax
lea ecx, [ebp - 0xdc]
call fcn.01007356
mov edi, dword [esi + 0x3c]
push dword [edi]
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.01007a94
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x10180c0
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.01007a33
mov dword [ebp - 0x34], eax
cmp dword [eax + 0x44], ebx
jne 0x101f120
cmp dword [ebp - 0x18], ebx
jne 0x10180a4
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x50], ebx
ja 0x101f14f
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x60], ebx
ja 0x101f32f
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x70], ebx
ja 0x101f446
cmp dword [ebp - 0xd8], ebx
ja 0x101f61e
push dword [ebp - 0xdc]
lea ecx, [ebp - 0xdc]
call fcn.01007a94
mov edi, eax
cmp edi, ebx
jne 0x101f627
lea ecx, [ebp - 0xdc]
call fcn.01002969
push ebx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x10026d4
call fcn.0100272d
lea ecx, [ebp - 0x74]
call fcn.010028c5
lea ecx, [ebp - 0x54]
call fcn.010028c5
lea ecx, [ebp - 0x64]
call fcn.010028c5
mov eax, dword [ebp - 0x20]
call fcn.01001600
ret
call fcn.0100f26b
mov dword [ebp - 0x20], eax
jmp 0x1018071
lea ecx, [eax + 0x20]
push ecx
push eax
lea ecx, [ebp - 0xdc]
call fcn.010052ce
push dword [ebp - 0x34]
mov ecx, dword [esi + 0x3c]
call fcn.0103ac73
mov edi, dword [esi + 0x3c]
push dword [edi]
mov ecx, edi
call fcn.01007a94
mov dword [ebp - 0x18], eax
jmp 0x10180bb
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x18]
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 5
call fcn.01003203
push eax
mov ecx, esi
call fcn.0103ac1b
cmp eax, ebx
mov dword [ebp - 0x20], eax
jl 0x101f31e
mov dword [ebp - 0x34], ebx
cmp dword [ebp - 0x2c], ebx
jbe 0x101f2fe
push 0x104a154
lea ecx, [ebp - 0x1c]
call fcn.010038e0
push dword [ebp - 0x34]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 6
call fcn.01003203
push eax
lea ecx, [ebp - 0x1c]
call fcn.01003ffb
mov eax, dword [ebp - 0x1c]
push 2
pop edi
cmp dword [eax - 0xc], edi
jl 0x101f206
push edi
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x1c]
call fcn.01007c9d
or dword [ebp - 0x14], 1
push 0x1007dbc
push eax
mov byte [ebp - 4], 7
call fcn.01004551
test al, al
jne 0x101f200
push edi
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x1c]
call fcn.01007c9d
or dword [ebp - 0x14], edi
push 0x1007db4
push eax
call fcn.01004551
test al, al
je 0x101f206
mov byte [ebp - 0xd], 1
jmp 0x101f209
mov byte [ebp - 0xd], bl
test byte [ebp - 0x14], 2
je 0x101f21e
mov ecx, dword [ebp - 0x44]
and dword [ebp - 0x14], 0xfffffffd
add ecx, 0xfffffff0
call fcn.01002400
test byte [ebp - 0x14], 1
mov dword [ebp - 4], 6
je 0x101f23a
mov ecx, dword [ebp - 0x38]
and dword [ebp - 0x14], 0xfffffffe
add ecx, 0xfffffff0
call fcn.01002400
cmp byte [ebp - 0xd], bl
je 0x101f251
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax - 0xc]
push 1
dec eax
push eax
lea ecx, [ebp - 0x1c]
call fcn.010080bb
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x94]
call fcn.01007d69
xor eax, eax
inc eax
push eax
push eax
push eax
push eax
push ebx
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 8
call fcn.01015a9b
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0xdc]
push eax
mov ecx, esi
mov byte [ebp - 4], 9
call fcn.0103b624
mov ecx, dword [esi + 0x3c]
lea eax, [ebp - 0x94]
push eax
call fcn.01019631
cmp eax, ebx
je 0x101f2b4
cmp dword [eax + 0x18], ebx
je 0x101f2ca
mov ecx, dword [esi + 0x3c]
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.010052ce
lea ecx, [ebp - 0xbc]
call fcn.0100284e
lea ecx, [ebp - 0x94]
call fcn.010027b4
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 5
call fcn.01002400
inc dword [ebp - 0x34]
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x2c]
jb 0x101f18d
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call fcn.010028c5
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x50]
jae 0x10180cc
jmp 0x101f14f
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call fcn.010028c5
jmp 0x10180cc
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x18]
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0xa
call fcn.01003203
push eax
mov ecx, esi
call fcn.0103ac1b
cmp eax, ebx
mov dword [ebp - 0x20], eax
jl 0x101f435
xor edi, edi
cmp dword [ebp - 0x2c], ebx
jbe 0x101f415
push edi
lea ecx, [ebp - 0x30]
call fcn.01003203
push eax
lea ecx, [ebp - 0x94]
call fcn.01007d69
xor eax, eax
inc eax
push eax
push eax
push eax
push eax
push ebx
push ebx
push edi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xb
call fcn.01003203
push eax
lea ecx, [ebp - 0xbc]
call fcn.01015a9b
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0xdc]
push eax
mov ecx, esi
mov byte [ebp - 4], 0xc
call fcn.0103b624
mov ecx, dword [esi + 0x3c]
lea eax, [ebp - 0x94]
push eax
call fcn.01019631
cmp eax, ebx
je 0x101f3db
cmp dword [eax + 0x18], ebx
je 0x101f3f1
mov ecx, dword [esi + 0x3c]
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.010052ce
lea ecx, [ebp - 0xbc]
call fcn.0100284e
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0xa
call fcn.010027b4
inc edi
cmp edi, dword [ebp - 0x2c]
jb 0x101f36c
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call fcn.010028c5
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x60]
jae 0x10180d8
jmp 0x101f32f
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call fcn.010028c5
jmp 0x10180d8
push dword [ebp - 0x18]
lea ecx, [ebp - 0x74]
call fcn.01003203
push eax
lea ecx, [ebp - 0x1c]
call fcn.01003e4b
push 2
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xd
call fcn.01007c9d
or dword [ebp - 0x14], 4
push 0x1007db4
push eax
mov byte [ebp - 4], 0xe
call fcn.01004551
test al, al
jne 0x101f4a7
push 2
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x1c]
call fcn.01007c9d
or dword [ebp - 0x14], 8
push 0x1007dbc
push eax
call fcn.01004551
mov byte [ebp - 0xd], bl
test al, al
je 0x101f4ab
mov byte [ebp - 0xd], 1
test byte [ebp - 0x14], 8
je 0x101f4c0
mov ecx, dword [ebp - 0x38]
and dword [ebp - 0x14], 0xfffffff7
add ecx, 0xfffffff0
call fcn.01002400
test byte [ebp - 0x14], 4
mov dword [ebp - 4], 0xd
je 0x101f4dc
mov ecx, dword [ebp - 0x44]
and dword [ebp - 0x14], 0xfffffffb
add ecx, 0xfffffff0
call fcn.01002400
cmp byte [ebp - 0xd], bl
je 0x101f4f3
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax - 0xc]
push 1
dec eax
push eax
lea ecx, [ebp - 0x1c]
call fcn.010080bb
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
mov byte [ebp - 4], 0xf
call fcn.0103ac1b
cmp eax, ebx
mov dword [ebp - 0x20], eax
jl 0x101f602
xor edi, edi
cmp dword [ebp - 0x2c], ebx
jbe 0x101f5d7
push edi
lea ecx, [ebp - 0x30]
call fcn.01003203
push eax
lea ecx, [ebp - 0x94]
call fcn.01007d69
push 1
push 1
push ebx
push 1
push ebx
push ebx
push edi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x10
call fcn.01003203
push eax
lea ecx, [ebp - 0xbc]
call fcn.01015a9b
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0xdc]
push eax
mov ecx, esi
mov byte [ebp - 4], 0x11
call fcn.0103b624
mov ecx, dword [esi + 0x3c]
lea eax, [ebp - 0x94]
push eax
call fcn.0103ac73
mov ecx, dword [esi + 0x3c]
lea eax, [ebp - 0x94]
push eax
call fcn.0103ad21
mov ecx, dword [esi + 0x3c]
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.010052ce
lea ecx, [ebp - 0xbc]
call fcn.0100284e
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0xf
call fcn.010027b4
inc edi
cmp edi, dword [ebp - 0x2c]
jb 0x101f528
lea ecx, [ebp - 0x30]
call fcn.010028c5
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 4
call fcn.01002400
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x70]
jae 0x10180e4
jmp 0x101f446
lea ecx, [ebp - 0x30]
call fcn.010028c5
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 4
call fcn.01002400
jmp 0x10180e4
mov byte [esi + 0x5a], 1
jmp 0x10180f0
add esi, 0x28
mov dword [ebp - 0x38], esi
push edi
lea ecx, [ebp - 0xdc]
mov esi, edi
call fcn.01007ae2
push dword [esi + 0x14]
mov ecx, dword [ebp - 0x38]
mov edi, eax
call fcn.010158f9
cmp edi, ebx
je 0x101810b
jmp 0x101f62d