Function at 0x4526c0
Capabilities:
Check mutex on windows
Delete file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63483f
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x721970]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 0x1c]
test ecx, ecx
jle 0x4528cb
mov ecx, dword [ebp - 0x14]
add ecx, 0x44
call fcn.00419670
test eax, eax
jne 0x4528cb
mov edx, dword [ebp - 0x14]
movzx eax, byte [edx + 0x1e]
test eax, eax
jne 0x4528cb
mov ecx, dword [ebp - 0x14]
mov byte [ecx + 0x1e], 1
push str._TMP_
lea ecx, [ebp - 0x34]
call fcn.00418d40
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x14]
add edx, 0x10
push edx
lea ecx, [ebp - 0x34]
call fcn.00419090
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00419160
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xb7
jne 0x452793
push 0x7d0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 2
push 3
push 0
push 0
push SysReAllocStringLen
mov ecx, dword [ebp - 0x14]
add ecx, 0x44
call fcn.00419160
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x4527ee
mov dword [ebp - 0x24], 0
push 0
lea ecx, [ebp - 0x24]
push ecx
push 2
mov edx, dword [ebp - 0x14]
add edx, 0x1c
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 0xffffffff
mov edx, dword [ebp - 0x14]
mov ax, word [edx + 0x1c]
sub ax, 1
mov ecx, dword [ebp - 0x14]
mov word [ecx + 0x1c], ax
mov edx, dword [ebp - 0x14]
movzx eax, word [edx + 0x1c]
test eax, eax
jne 0x45281f
mov ecx, dword [ebp - 0x14]
add ecx, 0x44
call fcn.00419160
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x45287a
push 0
push 2
push 3
push 0
push 0
push 0x40000000
mov ecx, dword [ebp - 0x14]
add ecx, 0x44
call fcn.00419160
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x45287a
mov dword [ebp - 0x28], 0
push 0
lea ecx, [ebp - 0x28]
push ecx
push 2
mov edx, dword [ebp - 0x14]
add edx, 0x1c
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 0xffffffff
jmp 0x452882
mov dword [ebp - 4], 0
jmp 0x452892
cmp dword [ebp - 0x1c], 0
je 0x4528ac
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], 0xffffffff
je 0x4528bc
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00418cc0
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x50], 0
je 0x4528f8
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x50], 0
mov edx, dword [ebp - 0x14]
mov ax, word [edx + 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret