Function at 0x610251f7
Capabilities:
Check mutex on windows

Disassembly:
push 0x298
mov eax, 0x61040945
call fcn.6102b349
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
lea ecx, [ebp - 0x220]
call fcn.6100d83e
xor edi, edi
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x274]
call fcn.6100d565
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x21c]
call fcn.6100d83e
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x238], edi
call fcn.6100d83e
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28c]
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x23c], edi
call fcn.6100d565
mov byte [ebp - 4], 4
push 6
mov dword [ebx], edi
pop ecx
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x230], edi
xor eax, eax
lea edi, [ebp - 0x2a4]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x274]
push eax
push 4
mov ecx, esi
call fcn.6101dc8d
test eax, eax
jne 0x610252b1
push 0x61008058
push 3
call fcn.6101b566
pop ecx
pop ecx
mov edi, 0x65b
jmp 0x610256b9
cmp dword [ebp - 0x26c], 1
jbe 0x610252d0
push 0x61008418
push 3
call fcn.6101b566
pop ecx
pop ecx
push 0xd
pop edi
jmp 0x610256b9
cmp dword [ebp - 0x26c], 0
jne 0x610252e0
push 0x61007f88
jmp 0x610252bf
mov eax, dword [ebp - 0x274]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x610252fb
push 0x80004005
call fcn.6100cd98
add eax, 8
push eax
lea ecx, [ebp - 0x21c]
call fcn.6100dd8c
push dword [0x610480d8]
mov edi, 0x104
push edi
lea eax, [ebp - 0x218]
push eax
call fcn.6100d41c
test eax, eax
jl 0x610252a7
lea ecx, [ebp - 0x21c]
call fcn.61011da0
push eax
push edi
lea eax, [ebp - 0x218]
push eax
call fcn.61017b8e
test eax, eax
jl 0x610252a7
lea ecx, [ebp - 0x2a4]
call fcn.610217f5
mov edi, eax
test edi, edi
jne 0x610256b9
lea eax, [ebp - 0x218]
push eax
push edi
lea eax, [ebp - 0x2a4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x228], eax
test eax, eax
jne 0x61025388
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x610256b1
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x80
je 0x610253ad
test eax, eax
je 0x610253ad
cmp eax, 0x102
jne 0x6102537b
push 0x20
jmp 0x610252ca
and dword [ebp - 0x234], 0
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x234]
push eax
push ecx
lea eax, [ebp - 0x21c]
mov ecx, esp
mov dword [ebp - 0x240], esp
push eax
mov dword [ebp - 0x230], 1
call fcn.6100d869
mov byte [ebp - 4], 5
push esi
mov byte [ebp - 4], 4
call fcn.61023b3b
mov edi, eax
test edi, edi
jne 0x610256b9
mov eax, dword [ebp - 0x234]
push 0x61002058
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x238], eax
call fcn.61013bc2
test eax, eax
jne 0x61025562
cmp dword [ebp - 0x234], eax
je 0x6102550d
cmp dword [ebp + 0x10], eax
jne 0x6102550d
push 0x61008350
push 1
call fcn.6101b566
pop ecx
pop ecx
lea eax, [ebp - 0x21c]
push eax
call fcn.61022020
test eax, eax
je 0x6102546e
push eax
push 0x610082d8
push 3
call fcn.6101b566
add esp, 0xc
cmp dword [ebp - 0x230], 0
je 0x61025483
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp - 0x228], 0
je 0x61025498
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x2a4]
call fcn.61021936
cmp dword [ebp - 0x22c], 0
je 0x610254b8
push dword [ebp - 0x22c]
call fcn.6102ae57
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28c]
call fcn.6100d5a3
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x224]
call fcn.6100d793
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x21c]
call fcn.6100d793
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x274]
call fcn.6100d5a3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.6100d793
mov eax, edi
call fcn.6102b3db
ret 0x10
lea eax, [ebp - 0x220]
push eax
push 2
mov ecx, esi
call fcn.6101d028
test eax, eax
jne 0x61025539
push 0x610027c8
push 3
call fcn.6101b566
pop ecx
pop ecx
mov edi, 0x643
jmp 0x610256b9
cmp dword [ebp + 0xc], 9
jne 0x61025641
lea eax, [ebp - 0x28c]
push eax
push 8
mov ecx, esi
call fcn.6101dc8d
test eax, eax
jne 0x61025641
push 0x61008248
jmp 0x61025526
cmp dword [ebp + 0x10], 0
je 0x610256a1
lea ecx, [ebp - 0x25c]
call fcn.6101caee
mov byte [ebp - 4], 6
push 3
pop esi
push esi
push ecx
lea eax, [ebp - 0x224]
mov ecx, esp
mov dword [ebp - 0x240], esp
push eax
call fcn.6100d869
mov byte [ebp - 4], 7
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x25c]
call fcn.6101ceec
cmp eax, 0xb7
je 0x610255db
push dword [ebp - 0x224]
push 0x610081f8
push esi
call fcn.6101b566
add esp, 0xc
mov edi, 0x643
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x25c]
call fcn.6101c84c
jmp 0x610256b9
lea eax, [ebp - 0x220]
push eax
push 2
lea ecx, [ebp - 0x25c]
call fcn.6101d028
test eax, eax
jne 0x61025602
push 0x610027c8
push esi
call fcn.6101b566
pop ecx
pop ecx
jmp 0x610255c2
cmp dword [ebp + 0xc], 9
jne 0x61025627
lea eax, [ebp - 0x28c]
push eax
push 8
lea ecx, [ebp - 0x25c]
call fcn.6101dc8d
test eax, eax
jne 0x61025627
push 0x61008248
jmp 0x610255f8
lea ecx, [ebp - 0x25c]
call fcn.6101c694
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x25c]
call fcn.6101c84c
push dword [ebp + 0xc]
push dword [ebp - 0x220]
push 0x61007ae0
push 1
call fcn.6101b566
add esp, 0x10
cmp dword [ebp + 0xc], 5
je 0x61025689
cmp dword [ebp + 0xc], 9
jne 0x6102544e
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x21c]
push eax
mov edx, ebx
lea ecx, [ebp - 0x220]
call fcn.61022756
jmp 0x61025381
push ebx
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x21c]
call fcn.61022450
jmp 0x61025381
push 0x61008350
push 1
call fcn.6101b566
pop ecx
pop ecx
xor edi, edi
test edi, edi
je 0x6102544e
push 0x61007168
push edi
push 3
call fcn.6101b5fa
add esp, 0xc
cmp dword [ebp - 0x230], 0
je 0x61025483
cmp dword [ebp - 0x238], 0
jne 0x6102546e
push ebx
push dword [ebp - 0x23c]
lea eax, [ebp - 0x21c]
push dword [ebp - 0x22c]
push dword [ebp + 0xc]
push eax
call fcn.61024fd4
test eax, eax
je 0x6102546e
push eax
push 0x610070d8
jmp 0x61025464