Function at 0x46ed85
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push 0x170
mov eax, 0x514725
call fcn.004b9729
mov eax, ecx
mov dword [ebp - 0x94], eax
xor ecx, ecx
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xa0], ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [ebp - 4], ecx
lea ebx, [eax + 0x14]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
call fcn.0040cacd
push eax
mov ecx, ebx
call fcn.00466c6a
xor ebx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0xa8], ebx
call fcn.0040cacd
push eax
lea ecx, [ebp - 0xa8]
call fcn.00466c6a
mov byte [ebp - 4], 2
mov dword [ebp - 0xa4], ebx
call fcn.0040cacd
push eax
lea ecx, [ebp - 0xa4]
call fcn.00466c6a
mov byte [ebp - 4], 3
mov dword [ebp - 0x9c], ebx
call fcn.0040cacd
push eax
lea ecx, [ebp - 0x9c]
call fcn.00466c6a
xor eax, eax
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
mov ecx, 0x54ec38
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
xor eax, eax
lea edi, [ebp - 0x48]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ebx
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x68]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x68]
call fcn.0046e8a8
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x88]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x88]
call fcn.0046e8a8
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 0xa
push eax
push 0x67
mov byte [ebp - 0x95], bl
call fcn.00473b74
lea eax, [ebp - 0xa4]
push eax
push 0x65
call fcn.00473b74
mov ebx, dword [ebp - 0xa8]
add esp, 0x10
push ebx
push 0
push ecx
mov ecx, esp
push str.xLmJvAqiixVjhsA5_IsETbJx5nc2LBAjwbnBTk6JTQ_Hn0gAGQIH3d5Zgw0MwsGBBkgYBIgZ2Edez4KDyYYLDkcAhEiMh8aNjoWMCQOIiYTCz0fPDIINzMwDgYbFRsGMSYfZmk9D2MSawQALho8FiE0KBQvExAAajYgFzknPDZpMTw2ZGA3MhwBIww5MWQRChEjAGQnPSJrNAtkCRZqewkaNiRoEhs1KjYGZWAAHxw4DxoZHxQxKBQmOQk0AS0ZJStgIgQmBxYCJz4AKCY8Lh0afwcFExwwIzM8By8DYR8hLSkoCjwdBzk9JxQ6MBciFGAyc3U8MBsJZw5iLikjMSwIE2AiHhcOAovAWcPP2QyKgAcFB0_EBI_ZiEtDgYvKy0BNxgSCzYNdRkSKWIDABokYSc8NSkgGzoXNSUKOCwOACAVHWV_CTw8KDc6ciEkJTgUDBM5JhU2cScgJmEHamY7NhQFFXg2cxMBFywbAAABSgCTjfh1hDFV7_ZfLDnQ
call fcn.00466d59
lea eax, [ebp - 0xb8]
push eax
call fcn.00470f89
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 0xb
call fcn.0046929c
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.004717e7
add esp, 0xc
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xb8]
call fcn.004690f8
mov esi, dword [ebp - 0x9c]
push esi
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov edi, dword [ebp - 0x94]
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0x17c]
push eax
call fcn.004771b9
pop ecx
xor ecx, ecx
mov byte [ebp - 4], 0xc
inc ecx
push 0
push 0x100000
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0xa0], ecx
lea ecx, [ebp - 0x68]
push eax
call fcn.004702e3
test al, al
je 0x46efa6
lea eax, [ebp - 0x11c]
push eax
call fcn.00476914
pop ecx
push 3
pop ecx
push 0
push 0x100000
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0xa0], ecx
lea ecx, [ebp - 0x68]
push eax
mov dword [ebp - 4], 0xd
call fcn.004702e3
mov byte [ebp - 0x89], 1
test al, al
jne 0x46efad
mov byte [ebp - 0x89], 0
mov eax, dword [ebp - 0x90]
test al, 2
je 0x46efd1
and eax, 0xfffffffd
lea ecx, [ebp - 0x11c]
mov dword [ebp - 0x90], eax
call fcn.0046f68c
mov eax, dword [ebp - 0x90]
mov dword [ebp - 4], 0xa
test al, 1
je 0x46eff0
and eax, 0xfffffffe
lea ecx, [ebp - 0x17c]
mov dword [ebp - 0x90], eax
call fcn.0046f68c
cmp byte [ebp - 0x89], 0
je 0x46f02b
push 1
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x20]
call fcn.00475a82
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x28]
call fcn.0046fa0e
mov eax, dword [ebp - 0x24]
mov cl, 1
mov dword [ebp - 0x34], 0xc
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 1
jmp 0x46f031
mov cl, byte [ebp - 0x95]
cmp dword [ebp - 0xac], 2
jne 0x46f053
xor edx, edx
lea eax, [ebp - 0x34]
push esi
test cl, cl
push 0
cmove eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi + 8], eax
jmp 0x46f098
test cl, cl
je 0x46f098
cmp dword [esi - 4], 1
jle 0x46f071
push dword [esi - 0xc]
lea ecx, [ebp - 0x9c]
call fcn.004677a0
mov esi, dword [ebp - 0x9c]
push 0
lea ecx, [ebp - 0x68]
call fcn.0047254a
push eax
push 0
push 0
push 4
push 6
push esi
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x9c]
call fcn.004744de
push 0
lea eax, [edi + 0x14]
push eax
push 0x23
call fcn.00472423
mov ecx, dword [ebp - 0x94]
add esp, 0xc
mov edi, dword [ebp - 0xa4]
push edi
lea ecx, [ecx + 0x14]
call fcn.004705b2
mov eax, dword [ebp - 0x94]
add eax, 0x14
push eax
call fcn.00470bb0
pop ecx
push 0
push ecx
mov ecx, esp
push str.JcM7o16euQGd6UutHAOWm7ocNady5xowHPDNjA4NzkiM2AFFAMYHQMJBz8cPAMvOhcGYQIUPSkDFR8HFj4GOjYLZSogOBkNIx9sCyEiezocYxIFFGU9JRE4EhoSDDwAChcCEDcFBCYyEBkRASwWKz1nNzsgDix4CTkRKBYVHCQOOQs9OBIcykhBCYLBCBhJhMDg0aI2UdewgCOh4dZg5iOgodCgFwAAMgF3kE2UWJjQPDDw_czYyMgcqIC82GzoJCCgmBWcFPyIyY2Z7FToHf2EnKCshOTkcHWglEio7BRcxOzUBNDUQEyY4cj8edGRncmFnFSoACTYHHjY0K3gIeGN6Pi0dGgY8MXgKc2MZM28EC2IQNRN6JR0sCzgEOWAgIDczK30MDDQ6NGAYDyAGRE7JQAAARcEH_1Aq6CZwgqeq4iEy
call fcn.00466d59
lea eax, [ebp - 0xb8]
push eax
call fcn.00470f89
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 0xe
call fcn.0046929c
mov ecx, dword [ebp - 0x94]
push eax
lea ecx, [ecx + 0x14]
call fcn.004705b2
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 0xa
call fcn.004690f8
lea eax, [ebp - 0x11c]
push eax
call fcn.004771b9
pop ecx
mov ecx, dword [ebp - 0x90]
or ecx, 4
mov byte [ebp - 4], 0xf
push 0
push 0x101f0000
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0xa0], ecx
lea ecx, [ebp - 0x88]
push eax
call fcn.004702e3
test al, al
je 0x46f197
lea eax, [ebp - 0x17c]
push eax
call fcn.00476914
pop ecx
mov ecx, dword [ebp - 0x90]
or ecx, 8
mov dword [ebp - 4], 0x10
push 0
push 0x101f0000
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0xa0], ecx
lea ecx, [ebp - 0x88]
push eax
call fcn.004702e3
mov byte [ebp - 0x89], 1
test al, al
jne 0x46f19e
mov byte [ebp - 0x89], 0
mov eax, dword [ebp - 0x90]
test al, 8
je 0x46f1c2
and eax, 0xfffffff7
lea ecx, [ebp - 0x17c]
mov dword [ebp - 0x90], eax
call fcn.0046f68c
mov eax, dword [ebp - 0x90]
mov dword [ebp - 4], 0xa
test al, 4
je 0x46f1d8
lea ecx, [ebp - 0x11c]
call fcn.0046f68c
cmp byte [ebp - 0x89], 0
je 0x46f279
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x18]
call fcn.00475a82
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0046fa0e
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x48], 0xc
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x94]
push dword [ecx + 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46f257
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x94]
push 4
push dword [ecx + 0x14]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x46f279
xor ecx, ecx
lea eax, [ebp - 0x48]
push ecx
push ecx
push 1
push eax
push ecx
push ecx
mov ecx, dword [ebp - 0x94]
push dword [ecx + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x88]
call fcn.0046f632
lea ecx, [ebp - 0x68]
call fcn.0046f632
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0x54ec38
call fcn.00470892
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0x54ec38
call fcn.00470892
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x54ec38
call fcn.00470892
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], 0x54ec38
call fcn.00470892
lea ecx, [esi - 0x10]
call fcn.0040ce73
lea ecx, [edi - 0x10]
call fcn.0040ce73
lea ecx, [ebx - 0x10]
call fcn.0040ce73
mov eax, dword [ebp - 0x94]
call fcn.004b96d8
ret