Function at 0x48a9b6
Capabilities:
Check mutex on windows

Disassembly:
push 0x274
mov eax, 0x46f788
call fcn.0046791c
mov ebx, ecx
xor ecx, ecx
mov eax, ecx
mov dword [ebp - 0x1d4], eax
mov dword [ebp - 0x1b8], eax
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x220], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov dword [ebp - 0x208], ecx
mov dword [ebp - 0x204], ecx
mov dword [ebp - 0x200], ecx
push 0x40ac90
push ecx
push ecx
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateMutexW]
mov esi, eax
mov dword [ebp - 0x1dc], esi
lea ecx, [ebp - 0x1dc]
mov byte [ebp - 4], 3
call fcn.0043baca
test al, al
jne 0x48aa61
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x48aaab
movzx edi, di
or edi, 0x80070000
jmp 0x48aaa9
push 0xffffffffffffffff
push esi
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
lea eax, [ebp - 0x22c]
mov ecx, ebx
push eax
call fcn.00459150
mov edi, eax
test edi, edi
js 0x48aaa2
lea eax, [ebp - 0x21c]
mov ecx, ebx
push eax
call fcn.0045916e
mov edi, eax
test edi, edi
js 0x48aaa2
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.0045918c
mov edi, eax
push esi
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseMutex]
test edi, edi
js 0x48b3c6
lea eax, [ebx + 0x2c]
push eax
lea eax, [ebx + 0x30]
push eax
lea ecx, [ebp - 0x280]
call fcn.00453a99
mov byte [ebp - 4], 4
jmp 0x48ab03
push eax
mov ecx, esi
mov dword [ebp - 0x1b4], eax
call fcn.0041a51e
mov ecx, dword [ebp - 0x1b4]
cmp dword [ecx + 0x44], 0
je 0x48ab0f
lea eax, [ecx + 0x20]
push eax
push ecx
lea ecx, [ebp - 0x280]
call fcn.0041a765
mov ecx, dword [ebp - 0x1b4]
push ecx
mov ecx, dword [ebx + 0x58]
call fcn.0048b9b5
mov esi, dword [ebx + 0x58]
mov ecx, esi
push dword [esi]
call fcn.0041a4f3
test eax, eax
jne 0x48aaca
mov dword [ebp - 0x1cc], eax
cmp dword [ebp - 0x218], eax
jbe 0x48ae2a
and dword [ebp - 0x1c8], 0
and dword [ebp - 0x1c4], 0
and dword [ebp - 0x1c0], 0
and dword [ebp - 0x1bc], 0
lea ecx, [ebp - 0x1c8]
mov byte [ebp - 4], 5
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.00450fe1
push eax
mov ecx, ebx
call fcn.0045b5d9
mov edi, eax
mov dword [ebp - 0x1d0], edi
test edi, edi
js 0x48ae1b
and dword [ebp - 0x1d4], 0
cmp dword [ebp - 0x1c4], 0
jbe 0x48adf1
mov edi, dword [ebp - 0x1d4]
lea ecx, [ebp - 0x1b4]
call fcn.00437ff1
push edi
lea ecx, [ebp - 0x1c8]
mov byte [ebp - 4], 6
call fcn.00450fe1
push eax
lea ecx, [ebp - 0x1b4]
call fcn.0043815c
mov esi, dword [ebp - 0x1b4]
cmp dword [esi - 0xc], 2
jl 0x48ac2e
push 2
lea eax, [ebp - 0x1d8]
push eax
lea ecx, [ebp - 0x1b4]
call fcn.0045aa03
mov byte [ebp - 4], 7
mov edx, 0x40b164
mov ecx, dword [ebp - 0x1b8]
or ecx, 1
mov dword [ebp - 0x1b8], ecx
mov dword [ebp - 0x1d4], ecx
mov ecx, eax
call fcn.00453e29
test al, al
jne 0x48ac25
push 2
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x1b4]
call fcn.0045aa03
or dword [ebp - 0x1b8], 2
mov edx, 0x40649c
mov ecx, eax
call fcn.00453e29
test al, al
je 0x48ac2e
mov byte [ebp - 0x1ad], 1
jmp 0x48ac35
mov byte [ebp - 0x1ad], 0
mov eax, dword [ebp - 0x1b8]
test al, 2
je 0x48ac59
and eax, 0xfffffffd
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x1b8], eax
call fcn.00438070
mov eax, dword [ebp - 0x1b8]
mov dword [ebp - 4], 6
test al, 1
je 0x48ac78
and eax, 0xfffffffe
lea ecx, [ebp - 0x1d8]
mov dword [ebp - 0x1b8], eax
call fcn.00438070
cmp byte [ebp - 0x1ad], 0
je 0x48ac98
mov eax, dword [esi - 0xc]
push ecx
dec eax
lea ecx, [ebp - 0x1b4]
push eax
call fcn.00455cb5
mov esi, dword [ebp - 0x1b4]
lea ecx, [ebp - 0x1ac]
call fcn.0041b890
mov ecx, esi
mov byte [ebp - 4], 8
call fcn.00467421
test al, al
je 0x48acdb
mov ecx, dword [ebx + 0xa0]
lea eax, [ebp - 0x1ac]
push eax
mov edx, esi
call fcn.004675ab
test eax, eax
js 0x48acdb
push dword [ebp - 0x1a8]
lea ecx, [ebp - 0x1b4]
call fcn.00438179
lea eax, [ebp - 0x1b4]
push eax
lea ecx, [ebp - 0x1fc]
call fcn.00453ae1
xor eax, eax
mov byte [ebp - 4], 9
push eax
push eax
xor ecx, ecx
inc ecx
push ecx
push ecx
push ecx
push ecx
push eax
push ecx
lea eax, [ebp - 0x1b4]
push eax
lea ecx, [ebp - 0x260]
call fcn.00453a34
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x1fc]
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.0048b9e2
mov ecx, dword [ebx + 0x58]
lea eax, [ebp - 0x1fc]
push eax
call fcn.0041a890
test eax, eax
je 0x48ad4c
add eax, 0x20
je 0x48ad4c
cmp dword [eax + 0x18], 0
je 0x48ad62
mov ecx, dword [ebx + 0x58]
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x1fc]
push eax
call fcn.0041a765
lea ecx, [ebp - 0x258]
mov dword [ebp - 0x260], 0x401670
call fcn.00438070
lea ecx, [ebp - 0x25c]
call fcn.00438070
lea ecx, [ebp - 0x1e8]
mov dword [ebp - fcn.004218f0], 0x40231c
call fcn.00438070
lea ecx, [ebp - 0x1ec]
call fcn.00438070
lea ecx, [ebp - 0x1fc]
call fcn.0041de5f
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x1ac], 0x401104
push eax
lea ecx, [ebp - 0x1ac]
call fcn.00434927
lea ecx, [ebp - 0x1b4]
mov dword [ebp - fcn.004218f0], 0x401b08
call fcn.00438070
inc edi
cmp edi, dword [ebp - 0x1c4]
jb 0x48ab8a
mov edi, dword [ebp - 0x1d0]
lea ecx, [ebp - 0x1c8]
mov byte [ebp - 4], 4
call fcn.00450fbd
mov eax, dword [ebp - 0x1cc]
inc eax
mov dword [ebp - 0x1cc], eax
cmp eax, dword [ebp - 0x218]
jb 0x48ab25
jmp 0x48ae2a
lea ecx, [ebp - 0x1c8]
mov byte [ebp - 4], 4
call fcn.00450fbd
xor eax, eax
mov dword [ebp - 0x1cc], eax
cmp dword [ebp - 0x228], eax
jbe 0x48b034
and dword [ebp - 0x1c8], 0
and dword [ebp - 0x1c4], 0
and dword [ebp - 0x1c0], 0
and dword [ebp - 0x1bc], 0
lea ecx, [ebp - 0x1c8]
mov byte [ebp - 4], 0xb
push ecx
push eax
lea ecx, [ebp - 0x22c]
call fcn.00450fe1
push eax
mov ecx, ebx
call fcn.0045b5d9
mov edi, eax
test edi, edi
js 0x48b025
xor esi, esi
cmp dword [ebp - 0x1c4], esi
jbe 0x48affb
lea ecx, [ebp - 0x1ac]
call fcn.0041b890
push esi
lea ecx, [ebp - 0x1c8]
mov byte [ebp - 4], 0xc
call fcn.00450fe1
mov ecx, dword [eax]
call fcn.00467421
test al, al
je 0x48aef4
push esi
lea ecx, [ebp - 0x1c8]
call fcn.00450fe1
lea ecx, [ebp - 0x1ac]
push ecx
mov ecx, dword [ebx + 0xa0]
mov edx, dword [eax]
call fcn.004675ab
test eax, eax
js 0x48aef4
push dword [ebp - 0x1a8]
lea ecx, [ebp - 0x1c8]
push esi
call fcn.00450fe1
mov ecx, eax
call fcn.00438179
push esi
lea ecx, [ebp - 0x1c8]
call fcn.00450fe1
push eax
lea ecx, [ebp - 0x1fc]
call fcn.00453ae1
xor eax, eax
mov byte [ebp - 4], 0xd
push eax
push eax
xor ecx, ecx
inc ecx
push ecx
push ecx
push ecx
push ecx
push eax
push eax
push esi
lea ecx, [ebp - 0x1c8]
call fcn.00450fe1
push eax
lea ecx, [ebp - 0x260]
call fcn.00453a34
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x1fc]
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.0048b9e2
mov ecx, dword [ebx + 0x58]
lea eax, [ebp - 0x1fc]
push eax
call fcn.0041a890
test eax, eax
je 0x48af71
add eax, 0x20
je 0x48af71
cmp dword [eax + 0x18], 0
je 0x48af87
mov ecx, dword [ebx + 0x58]
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x1fc]
push eax
call fcn.0041a765
lea ecx, [ebp - 0x258]
mov dword [ebp - 0x260], 0x401670
call fcn.00438070
lea ecx, [ebp - 0x25c]
call fcn.00438070
lea ecx, [ebp - 0x1e8]
mov dword [ebp - fcn.004218f0], 0x40231c
call fcn.00438070
lea ecx, [ebp - 0x1ec]
call fcn.00438070
lea ecx, [ebp - 0x1fc]
call fcn.0041de5f
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x1ac], 0x401104
push eax
lea ecx, [ebp - 0x1ac]
call fcn.00434927
inc esi
cmp esi, dword [ebp - 0x1c4]
jb 0x48ae91
lea ecx, [ebp - 0x1c8]
mov byte [ebp - 4], 4
call fcn.00450fbd
mov eax, dword [ebp - 0x1cc]
inc eax
mov dword [ebp - 0x1cc], eax
cmp eax, dword [ebp - 0x228]
jb 0x48ae3e
jmp 0x48b034
lea ecx, [ebp - 0x1c8]
mov byte [ebp - 4], 4
call fcn.00450fbd
xor eax, eax
mov dword [ebp - 0x1cc], eax
cmp dword [ebp - 0x208], eax
jbe 0x48b343
push eax
lea ecx, [ebp - 0x20c]
call fcn.00450fe1
push eax
lea ecx, [ebp - 0x1b4]
call fcn.00437fc6
push 2
lea eax, [ebp - 0x1d8]
mov byte [ebp - 4], 0xf
push eax
lea ecx, [ebp - 0x1b4]
call fcn.0045aa03
mov byte [ebp - 4], 0x10
mov edx, 0x40649c
mov esi, dword [ebp - 0x1b8]
mov ecx, eax
or esi, 4
mov dword [ebp - 0x1b8], esi
mov dword [ebp - 0x1d4], esi
call fcn.00453e29
test al, al
jne 0x48b0d5
push 2
lea eax, [ebp - 0x1d0]
push eax
lea ecx, [ebp - 0x1b4]
call fcn.0045aa03
or esi, 8
mov edx, 0x40b164
mov ecx, eax
mov dword [ebp - 0x1b8], esi
call fcn.00453e29
mov byte [ebp - 0x1ad], 0
test al, al
je 0x48b0dc
mov byte [ebp - 0x1ad], 1
mov eax, dword [ebp - 0x1b8]
test al, 8
je 0x48b100
and eax, 0xfffffff7
lea ecx, [ebp - 0x1d0]
mov dword [ebp - 0x1b8], eax
call fcn.00438070
mov eax, dword [ebp - 0x1b8]
mov dword [ebp - 4], 0xf
test al, 4
je 0x48b11f
and eax, 0xfffffffb
lea ecx, [ebp - 0x1d8]
mov dword [ebp - 0x1b8], eax
call fcn.00438070
cmp byte [ebp - 0x1ad], 0
je 0x48b13f
mov eax, dword [ebp - 0x1b4]
push ecx
lea ecx, [ebp - 0x1b4]
mov eax, dword [eax - 0xc]
dec eax
push eax
call fcn.00455cb5
xor eax, eax
mov dword [ebp - 0x1c8], eax
mov dword [ebp - 0x1c4], eax
mov dword [ebp - 0x1c0], eax
mov dword [ebp - 0x1bc], eax
lea eax, [ebp - 0x1c8]
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp - 0x1b4]
mov ecx, ebx
push eax
call fcn.0045b5d9
mov edi, eax
test edi, edi
js 0x48b329
xor esi, esi
cmp dword [ebp - 0x1c4], esi
jbe 0x48b2f4
lea ecx, [ebp - 0x1ac]
call fcn.0041b890
push esi
lea ecx, [ebp - 0x1c8]
mov byte [ebp - 4], 0x12
call fcn.00450fe1
mov ecx, dword [eax]
call fcn.00467421
test al, al
je 0x48b1ed
push esi
lea ecx, [ebp - 0x1c8]
call fcn.00450fe1
lea ecx, [ebp - 0x1ac]
push ecx
mov ecx, dword [ebx + 0xa0]
mov edx, dword [eax]
call fcn.004675ab
test eax, eax
js 0x48b1ed
push dword [ebp - 0x1a8]
lea ecx, [ebp - 0x1c8]
push esi
call fcn.00450fe1
mov ecx, eax
call fcn.00438179
push esi
lea ecx, [ebp - 0x1c8]
call fcn.00450fe1
push eax
lea ecx, [ebp - 0x1fc]
call fcn.00453ae1
xor eax, eax
mov byte [ebp - 4], 0x13
push eax
push eax
push 1
push 1
push eax
push 1
push eax
push eax
push esi
lea ecx, [ebp - 0x1c8]
call fcn.00450fe1
push eax
lea ecx, [ebp - 0x260]
call fcn.00453a34
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 0x14
push eax
lea eax, [ebp - 0x1fc]
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.0048b9e2
mov ecx, dword [ebx + 0x58]
lea eax, [ebp - 0x1fc]
push eax
call fcn.0048b9b5
mov ecx, dword [ebx + 0x58]
lea eax, [ebp - 0x1fc]
push eax
call fcn.0048b8b1
mov ecx, dword [ebx + 0x58]
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x1fc]
push eax
call fcn.0041a765
lea ecx, [ebp - 0x258]
mov dword [ebp - 0x260], 0x401670
call fcn.00438070
lea ecx, [ebp - 0x25c]
call fcn.00438070
lea ecx, [ebp - 0x1e8]
mov dword [ebp - fcn.004218f0], 0x40231c
call fcn.00438070
lea ecx, [ebp - 0x1ec]
call fcn.00438070
lea ecx, [ebp - 0x1fc]
call fcn.0041de5f
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x1ac], 0x401104
push eax
lea ecx, [ebp - 0x1ac]
call fcn.00434927
inc esi
cmp esi, dword [ebp - 0x1c4]
jb 0x48b18a
lea ecx, [ebp - 0x1c8]
call fcn.00450fbd
lea ecx, [ebp - 0x1b4]
mov byte [ebp - 4], 4
call fcn.00438070
mov eax, dword [ebp - 0x1cc]
inc eax
mov dword [ebp - 0x1cc], eax
cmp eax, dword [ebp - 0x208]
jb 0x48b048
jmp 0x48b343
lea ecx, [ebp - 0x1c8]
call fcn.00450fbd
lea ecx, [ebp - 0x1b4]
mov byte [ebp - 4], 4
call fcn.00438070
cmp dword [ebp - 0x27c], 0
jbe 0x48b353
mov byte [ebx + 0x96], 1
push dword [ebp - 0x280]
lea ecx, [ebp - 0x280]
call fcn.0041a4f3
jmp 0x48b38b
push eax
lea ecx, [ebp - 0x280]
mov esi, eax
call fcn.0041a51e
push dword [esi + 0x14]
lea ecx, [ebx + 0x44]
mov dword [ebp - 0x1d0], eax
call fcn.00451008
mov eax, dword [ebp - 0x1d0]
test eax, eax
jne 0x48b366
lea ecx, [ebp - 0x264]
call fcn.00438070
lea ecx, [ebp - 0x268]
call fcn.00438070
lea ecx, [ebp - 0x280]
call fcn.0041a23b
cmp dword [ebp - 0x26c], 0
je 0x48b3c6
push dword [ebp - 0x26c]
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_free]
pop ecx
lea ecx, [ebp - 0x1dc]
call fcn.0041c7e7
lea ecx, [ebp - 0x20c]
call fcn.00450fbd
lea ecx, [ebp - 0x21c]
call fcn.00450fbd
lea ecx, [ebp - 0x22c]
call fcn.00450fbd
mov eax, edi
call fcn.004678b9
ret