Function at 0x4b9040
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56a21c
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x5b7de4]
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 edi, ecx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x40]
push 0x15
push str.AllowDiscountCardOrgs
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.0040a4a0
push 0
push 0x5707b4
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0040a4a0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
sub esp, 0x18
lea eax, [ebp - 0x40]
mov ecx, esp
push eax
call fcn.0040b5a0
mov ecx, dword [edi + 0x1b0]
call fcn.0049c300
push str.FSS_OPERATORAPP_WAIT_MUTEX
push 1
push 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], vtable.WindowUtilites::WindowSyncHelper.0
mov dword [ebp - 0x8c], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x8c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4b9168
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x4b9168
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4b9168
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0xb0], 0x578ee4
mov dword [ebp - 0x90], 0x578ef8
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
push 0x1a
push 0x578efc
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 2
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0xf
mov byte [ebp - 0xc8], 0
call fcn.0040a4a0
cmp dword [ebp - 0xb4], 0x10
lea eax, [ebp - 0xc8]
push dword [ebp - 0xb8]
cmovae eax, dword [ebp - 0xc8]
lea ecx, [ebp - 0x88]
push eax
mov byte [ebp - 4], 3
call fcn.0040a4a0
mov edx, dword [ebp - 0xb4]
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x4b924e
mov ecx, dword [ebp - 0xc8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4b9244
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b947d
push edx
push ecx
call fcn.005189ee
add esp, 8
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xc8]
call fcn.0040b5a0
cmp dword [ebp - 0xb4], 0x10
lea eax, [ebp - 0xc8]
push dword [ebp - 0xb8]
cmovae eax, dword [ebp - 0xc8]
lea ecx, [ebp - 0x70]
push eax
mov byte [ebp - 4], 4
call fcn.0040a4a0
mov edx, dword [ebp - 0xb4]
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x4b92c2
mov ecx, dword [ebp - 0xc8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4b92b8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b9482
push edx
push ecx
call fcn.005189ee
add esp, 8
mov eax, dword [ebp - 0x9c]
mov esi, dword [edi + 4]
test eax, eax
jne 0x4b92e8
call fcn.00503a66
mov dword [ebp - 0x9c], eax
test eax, eax
jne 0x4b92e8
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4b934f
push 0
push 0
push eax
call fcn.00503b65
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xa8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x5b7124
mov dword [ebp - 0xa4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x5b713c]
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0xa8]
push 0x5b7124
mov dword [0x5b713c], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push 0x418be0
push esi
push 0xe8
push dword [0x5c89a0]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
push dword [ebp - 0x48]
cmovae eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x28]
push eax
call fcn.0040a4a0
lea eax, [ebp - 0x28]
push eax
sub esp, 0x18
lea eax, [ebp - 0x40]
mov ecx, esp
push eax
call fcn.0040b5a0
mov ecx, dword [edi + 0x1b0]
call fcn.00491830
cmp dword [ebp - 0x18], 0
jne 0x4b9398
push 0x1d
push 0x578f18
lea ecx, [ebp - 0x28]
call fcn.0040a4a0
lea ecx, [edi + 0xd8]
call fcn.0042dc90
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0xdc]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0041dd10
lea eax, [ebp - 0xdc]
mov byte [ebp - 4], 5
push eax
push dword [ebx + 0xc]
lea ecx, [edi + 0xd8]
call fcn.004ca8c0
lea eax, [ebp - 0xdc]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [ebp - 0xb0]
call fcn.0048be50
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4b941b
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4b9411
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b9487
push edx
push ecx
call fcn.005189ee
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp edx, 0x10
jb 0x4b945d
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4b9453
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b948c
push edx
push ecx
call fcn.005189ee
add esp, 8
xor eax, eax
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.005189ad
mov esp, ebp
pop ebp
ret 4
call fcn.00545078
call fcn.00545078
call fcn.00545078
call fcn.00545078
int3