Function at 0x1006f790
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov edi, eax
call sym.inicrypto_v5.4.1.dll_ISC_Crypto_Initialize
test eax, eax
jne 0x1006f9f6
push str.inisafe_crypto_Lock
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
push 0x1388
push esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x1006f7e2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xb050061
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp dword [esp + 0x24], 0
jne 0x1006f9df
cmp dword [0x10101330], ebp
je 0x1006f7ff
mov dword [0x10101414], 0
call fcn.1006eff0
mov esi, eax
test esi, esi
jne 0x1006f820
lea esi, [esp + 0x14]
call fcn.1006efc0
mov eax, 0xb05003b
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov al, byte [0x100fd914]
mov edx, dword [esp + 0x2c]
xor ecx, ecx
test al, al
setne cl
lea ecx, [ecx + ecx + 1]
mov eax, ecx
push eax
push edx
push ebp
mov eax, esi
call fcn.1006f1c0
add esp, 0xc
test eax, eax
je 0x1006f864
mov eax, esi
call fcn.1006f060
lea esi, [esp + 0x14]
call fcn.1006efc0
mov eax, 0xb050063
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp dword [0x10101414], 0
jne 0x1006f8bd
test edi, edi
je 0x1006f88e
movzx eax, byte [edi + 0xc]
mov ecx, dword [edi + 0x18]
movzx edx, byte [edi + 8]
push 0
push 0
push eax
mov eax, dword [edi + 0x14]
push ecx
push edx
call fcn.1006f560
add esp, 0x14
mov eax, dword [esi + 0x30]
mov ecx, esi
call fcn.1006f210
test eax, eax
je 0x1006f95b
mov eax, esi
call fcn.1006f060
lea esi, [esp + 0x14]
call fcn.1006efc0
mov eax, 0xb050064
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp dword [esi + 0x34], 0
jne 0x1006f8e1
mov eax, dword [esi + 0x3c]
push eax
call fcn.10087e65
mov ecx, dword [esi + 0x3c]
add esp, 4
push ecx
push 0
push eax
mov dword [esi + 0x34], eax
call fcn.1008e320
add esp, 0xc
cmp dword [esi + 0x38], 0
jne 0x1006f905
mov eax, dword [esi + 0x3c]
push eax
call fcn.10087e65
mov edx, dword [esi + 0x3c]
add esp, 4
push edx
push 0
push eax
mov dword [esi + 0x38], eax
call fcn.1008e320
add esp, 0xc
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x34]
push eax
push 0x10101334
push ecx
call fcn.1008d020
mov edx, dword [esi + 0x3c]
mov eax, dword [esi + 0x38]
add esp, 0xc
push edx
push 0x101013a3
push eax
call fcn.1008d020
mov ecx, dword [0x10101460]
add esp, 0xc
push ecx
lea edx, [esi + 0x5c]
push 0x10101420
push edx
call fcn.1008d020
mov eax, dword [0x10101418]
mov dword [esi + 0x58], eax
mov cl, byte [0x10101460]
add esp, 0xc
mov byte [esi + 0x9c], cl
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
push edx
call fcn.1006f420
mov edi, eax
add esp, 4
test edi, edi
je 0x1006f999
mov eax, esi
call fcn.1006f060
lea esi, [esp + 0x14]
call fcn.1006efc0
movzx eax, di
sub eax, 0x67
neg eax
sbb eax, eax
add eax, 0xb050067
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ecx, dword [esi + 0x3c]
movzx eax, byte [esi + 0x9c]
lea edx, [esi + 0x5c]
push edx
mov edx, dword [esi + 0x58]
push edx
mov edx, dword [esi + 0x38]
push edx
mov edx, dword [esi + 0x34]
push edx
push ebp
mov ebx, ecx
call fcn.1006eee0
add esp, 0x14
mov eax, esi
call fcn.1006f060
lea esi, [esp + 0x14]
call fcn.1006efc0
neg eax
sbb eax, eax
and eax, 0xb050062
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
test esi, esi
je 0x1006f9f1
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xb050048
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret