Function at 0x45b8b0
Capabilities:
Check mutex on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4f07e4
mov eax, dword fs:[0]
push eax
sub esp, 0x174
mov eax, dword [0x52a6ec]
xor eax, esp
mov dword [esp + 0x170], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x188]
mov dword fs:[0], eax
push str.A946A6A9_917E_4949_B9BC_6BADA8C7FD63
xor esi, esi
push esi
mov edi, ecx
xor bl, bl
push esi
mov dword [esp + 0x58], edi
mov byte [esp + 0x50], bl
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebp, eax
push ebp
mov dword [esp + 0x4c], ebp
call fcn.0045c080
add esp, 4
test al, al
je 0x45b92e
push 0x1388
push ebp
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete bl
mov byte [esp + 0x44], bl
mov dword [esp + 0x190], esi
test bl, bl
je 0x45b990
mov dword [esp + 0x34], VariantClear
mov byte [esp + 0x190], 1
call fcn.0045d9a0
test al, al
jne 0x45b973
call fcn.0045da90
test al, al
je 0x45b99e
mov dword [esp + 0x24], esi
lea esi, [esp + 0x24]
call fcn.0045d950
test eax, eax
js 0x45b973
cmp dword [esp + 0x24], 1
jg 0x45b99e
mov eax, dword [esp + 0x34]
test eax, eax
je 0x45b989
cmp eax, 0x80000001
je 0x45b989
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x45be83
lea eax, [esp + 0x20]
push eax
mov ecx, edi
call fcn.0045ec30
lea ecx, [esp + 0x40]
push ecx
mov byte [esp + 0x194], 2
or esi, 0xffffffff
mov ecx, edi
mov dword [esp + 0x44], esi
call fcn.0045b6d0
add esp, 4
test al, al
jne 0x45b9f3
mov byte [esp + 0x190], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], esi
dec esi
test esi, esi
jg 0x45b973
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x45b973
cmp dword [esp + 0x40], 0
jne 0x45ba18
mov byte [esp + 0x190], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jmp 0x45be51
mov edx, dword [0x52a1ec]
mov eax, dword [edx + 0xc]
mov ecx, 0x52a1ec
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
mov byte [esp + 0x190], 3
mov edx, dword [0x52a1ec]
mov eax, dword [edx + 0xc]
mov ecx, 0x52a1ec
call eax
add eax, 0x10
mov dword [esp + 0x3c], eax
push str.events
push str._s:
lea eax, [esp + 0x38]
mov byte [esp + 0x198], 4
call fcn.0045e200
push 0x50bca0
push str._s:
lea eax, [esp + 0x4c]
call fcn.0045e200
add esp, 0x10
mov ecx, 0x50add8
call fcn.0045dc80
mov dword [esp + 0x50], eax
lea ecx, [ecx]
inc esi
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx - 0xc]
js 0x45babb
cmp esi, eax
jg 0x45babb
lea eax, [ecx + esi*2]
mov ebx, 0x506a80
call fcn.0045e4a0
test eax, eax
je 0x45babb
sub eax, dword [esp + 0x20]
sar eax, 1
mov dword [esp + 0x28], eax
jmp 0x45bac3
mov dword [esp + 0x28], 0xffffffff
mov edi, dword [esp + 0x28]
test edi, edi
jns 0x45bacf
mov edi, dword [esp + 0x40]
cmp edi, esi
jle 0x45bd98
mov edx, dword [0x52a1ec]
mov eax, dword [edx + 0xc]
mov ecx, 0x52a1ec
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x20]
mov eax, edi
push ecx
mov bl, 5
sub eax, esi
mov ecx, esi
lea edx, [esp + 0x58]
mov byte [esp + 0x194], bl
call fcn.00414c00
lea edi, [esp + 0x1c]
mov byte [esp + 0x190], 6
call fcn.00403900
mov byte [esp + 0x190], bl
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45bb43
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x1c]
mov ecx, 0x50add8
mov esi, ebp
call fcn.0045db60
test al, al
je 0x45bc93
cmp dword [ebp - 0xc], 0
jl 0x45bd70
mov ebx, 0x50beb4
mov eax, ebp
call fcn.0045e4a0
test eax, eax
je 0x45bd70
sub eax, ebp
sar eax, 1
mov esi, eax
js 0x45bd70
sub eax, dword [esp + 0x50]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, 3
lea edx, [esp + 0x3c]
call fcn.00414c00
mov byte [esp + 0x190], 7
mov ecx, dword [esp + 0x38]
lea ebx, [esp + 0x24]
mov dword [esp + 0x24], 0
call fcn.0045c440
test al, al
je 0x45bc1c
cmp dword [esp + 0x24], 0
je 0x45bc1c
mov eax, dword [ebp - 0xc]
sub eax, esi
lea edx, [esp + 0x1c]
sub eax, 2
push edx
lea ecx, [esp + 0x30]
call fcn.0045e0f0
lea eax, [esp + 0x2c]
push eax
mov ebx, 0x506a64
mov byte [esp + 0x194], 8
call fcn.0045e010
mov esi, dword [esp + 0x2c]
mov edi, 0x50be4c
mov eax, esi
call fcn.0045e440
test eax, eax
je 0x45bc0b
sub eax, esi
sar eax, 1
jns 0x45bc0e
mov eax, dword [esi - 0xc]
cmp eax, 0x40
jbe 0x45bc3b
lea ecx, [esp + 0x2c]
call fcn.0045ef50
lea ecx, [esp + 0x38]
call fcn.0045ef50
lea ecx, [esp + 0x1c]
mov byte [esp + 0x190], 4
call fcn.0045ef50
jmp 0x45bd94
mov esi, dword [esp + 0x24]
cmp esi, 0x44
ja case.0x45bc4b.1
movzx ecx, byte [esi + 0x45beb4]
jmp dword [ecx*4 + 0x45beac]
lea ecx, [esp + 0x58]
lea edx, [esp + 0x2c]
call fcn.004144c0
mov byte [esp + 0x190], 9
mov eax, dword [eax]
push eax
push esi
call fcn.0045b0a0
add esp, 8
lea ecx, [esp + 0x58]
call fcn.0045ef50
lea ecx, [esp + 0x2c]
call fcn.0045ef50
lea ecx, [esp + 0x38]
call fcn.0045ef50
jmp 0x45bd70
mov ecx, dword [esp + 0x30]
call fcn.0045db60
test al, al
je 0x45bd00
xor edi, edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x34]
push eax
lea edx, [esp + 0x24]
mov byte [esp + 0x198], 0xa
call fcn.00459e10
mov esi, dword [esp + 0x68]
mov ebx, dword [esp + 0x64]
add esp, 8
cmp esi, edi
jbe 0x45bd63
cmp edi, esi
jae 0x45bda8
mov ecx, dword [ebx + edi*8 + 4]
mov edx, dword [ebx + edi*8]
push ecx
push edx
call fcn.0045a6d0
inc edi
add esp, 8
cmp edi, esi
jb 0x45bce8
jmp 0x45bd63
mov ecx, dword [esp + 0x3c]
call fcn.0045db60
test al, al
je 0x45bd70
xor edi, edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edi
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x24]
mov byte [esp + 0x198], 0xb
call fcn.00459e10
mov esi, dword [esp + 0x78]
mov ebx, dword [esp + 0x74]
add esp, 8
cmp esi, edi
jbe 0x45bd63
cmp edi, esi
jae 0x45bda8
mov edx, dword [ebx + edi*8 + 4]
mov eax, dword [ebx + edi*8]
push edx
push eax
call fcn.0045a120
inc edi
add esp, 8
cmp edi, esi
jb 0x45bd4d
test ebx, ebx
je 0x45bd70
push ebx
call fcn.004c9971
add esp, 4
lea eax, [ebp - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x190], 4
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45bd94
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x48]
cmp dword [esp + 0x28], 0
jl 0x45bdb2
mov esi, dword [esp + 0x28]
jmp 0x45ba90
push 0x80070057
call fcn.004065a0
lea ecx, [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x50]
lea edx, [esp + 0x1f]
mov byte [esp + 0x1f], 0
call fcn.0045cd60
add esp, 4
test al, al
je 0x45bde0
cmp byte [esp + 0x1b], 0
je 0x45bde0
lea ecx, [esp + 0x7c]
call fcn.0045c910
call fcn.00459740
mov byte [esp + 0x190], 3
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45be0d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x190], 2
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45be35
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x190], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45be5d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x45be73
cmp eax, 0x80000001
je 0x45be73
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [esp + 0x188]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x170]
xor ecx, esp
call fcn.004c9392
add esp, 0x180
ret