Function at 0x45a6d0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8b2b
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x4db06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x7c], esi
cmp dword [esi + 0x10], 0
mov ebx, dword [ebp + 0x1c]
je 0x45a9f5
cmp word [esi + 0xe], 1
je 0x45a9f5
push 0
push dword [esi]
call dword [sym.imp.KERNEL30.dll_WaitForSingleObject]
test eax, eax
jne 0x45a9f5
mov dword [ebp - 0x98], esi
mov byte [ebp - 0x94], 1
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL30.dll_GetTickCount]
test ebx, ebx
mov dword [ebp - 0x84], eax
push 0
lea edi, [ebp - 0xb8]
mov dword [ebp - 0xac], 0
cmovne edi, ebx
mov dword [ebp - 0xb0], 0
mov ebx, dword [ebp + 0xc]
xorps xmm0, xmm0
push edi
push ebx
push dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0xb4], 0
push eax
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xa8], 0xffffffff
mov dword [ebp - 0xa4], 0xffffffff
movlpd qword [ebp - 0xa0], xmm0
call fcn.0045aca0
mov edx, dword [edi + 0x14]
mov ecx, esi
mov eax, dword [ecx + 8]
cmp edx, 0xffffffff
jne 0x45a7be
test eax, eax
jne 0x45a7c6
test edx, edx
js 0x45a7d1
test eax, eax
jne 0x45a815
call fcn.0045af90
mov ecx, dword [ebp - 0x7c]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x45a815
mov ecx, dword [ecx + 0x10]
mov esi, dword [ebp - 0x7c]
mov ax, word [ecx + 0xc]
inc ax
movzx eax, ax
push eax
mov word [ecx + 0xc], ax
mov word [esi + 0xc], ax
lea eax, [ebp - 0x78]
push str.fastcopy__x
push eax
call fcn.0040e1a0
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
push 1
push 0
call dword [sym.imp.KERNEL30.dll_CreateMutexA]
mov ecx, esi
mov dword [ecx + 8], eax
test eax, eax
je 0x45a82e
mov edx, dword [edi + 0x14]
cmp edx, 0xffffffff
jne 0x45a84c
mov eax, dword [ecx + 0x10]
mov edx, 0x1c6
movzx eax, word [eax + 8]
cmp ax, dx
jb 0x45a83f
push dword [ecx]
xor bl, bl
call dword [sym.imp.KERNEL30.dll_ReleaseMutex]
mov al, bl
jmp 0x45a9f7
mov dword [edi + 0x14], eax
mov eax, dword [ecx + 0x10]
inc word [eax + 8]
mov edx, dword [edi + 0x14]
mov eax, dword [ebp - 0x84]
add edx, 0x2a
mov esi, dword [ebp + 0x18]
shl edx, 4
add edx, dword [ecx + 0x10]
mov dword [edx + 4], eax
mov ax, word [ecx + 0xc]
mov word [edx], ax
cmp esi, 1
je 0x45a893
mov eax, dword [edi]
cmp eax, dword [ebp + 0x14]
jge 0x45a88c
cmp esi, 2
je 0x45a893
cmp dword [edi + 8], 0
jne 0x45a88c
mov eax, dword [edi + 0x10]
cmp eax, 0xffffffff
je 0x45a893
cmp dword [edi + 0x14], eax
jl 0x45a893
mov eax, 2
jmp 0x45a898
mov eax, 1
mov word [ecx + 0xe], ax
mov word [edx + 2], ax
mov eax, dword [ebp + 8]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ebx
cmp word [ecx + 0xe], 1
jne 0x45a9e6
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jle 0x45a9e1
mov ecx, 0xffff
call fcn.00460360
mov ecx, 0x100
mov esi, 0xff
cmp eax, ecx
cmovg eax, ecx
mov ecx, dword [ebp - 0x7c]
xor edx, edx
mov dword [ebp - 0x80], eax
xor edi, edi
mov dword [ebp - 0x88], edx
mov dword [ebp - 0x84], edi
mov dword [ecx + 0x24], 0xffffffff
mov dword [ecx + 0x20], 0xffffffff
nop dword [eax]
cmp edi, 0xff
jge 0x45a9e1
xor edi, edi
test eax, eax
jle 0x45a9d1
lea eax, [edx + 8]
xor ebx, ebx
lea eax, [ecx + eax*4]
mov dword [ebp - 0x8c], eax
mov eax, ebx
cdq
idiv dword [ebp - 0x80]
add eax, ebx
cdq
idiv dword [ebp - 0x80]
mov eax, dword [ecx + 0x10]
add eax, 0x1f00
add eax, edx
mov dword [ebp - 0x90], eax
mov al, byte [eax]
movzx ecx, al
cmp ecx, dword [ebp - 0x84]
mov dword [ebp - 0x94], ecx
mov ecx, dword [ebp - 0x7c]
jg 0x45a9a4
mov ecx, dword [ebp - 0x90]
inc al
inc dword [ebp - 0x88]
mov byte [ecx], al
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x7c]
mov dword [eax], edx
add eax, 4
mov dword [ebp - 0x8c], eax
mov eax, dword [ecx + 0x10]
movzx eax, byte [edx + eax + 0x1f00]
push eax
push edx
push str.cpu__d__set__d__n
call fcn.0045f780
mov eax, dword [ebp + 0x10]
add esp, 0xc
dec eax
mov dword [ebp + 0x10], eax
test eax, eax
jle 0x45a9c2
mov ecx, dword [ebp - 0x7c]
jmp 0x45a9b1
cmp dword [ebp - 0x94], esi
cmovl esi, dword [ebp - 0x94]
mov eax, dword [ebp - 0x80]
inc edi
add ebx, 2
cmp edi, eax
jl 0x45a924
jmp 0x45a9c5
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x7c]
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0x84], esi
mov edi, esi
test ebx, ebx
jg 0x45a900
cmp word [ecx + 0xe], 1
push dword [ecx]
sete bl
call dword [sym.imp.KERNEL30.dll_ReleaseMutex]
mov al, bl
jmp 0x45a9f7
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00487555
mov esp, ebp
pop ebp
ret 0x18