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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6572ff
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x750990]
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 0x45532b
mov ecx, dword [ebp - 0x14]
add ecx, 0x44
call fcn.0041b380
test eax, eax
jne 0x45532b
mov edx, dword [ebp - 0x14]
movzx eax, byte [edx + 0x1e]
test eax, eax
jne 0x45532b
mov ecx, dword [ebp - 0x14]
mov byte [ecx + 0x1e], 1
push str._TMP_
lea ecx, [ebp - 0x34]
call fcn.0041aa50
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x14]
add edx, 0x10
push edx
lea ecx, [ebp - 0x34]
call fcn.0041ada0
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.0041ae70
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 0x4551f3
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.0041ae70
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x45524e
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 0x45527f
mov ecx, dword [ebp - 0x14]
add ecx, 0x44
call fcn.0041ae70
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4552da
push 0
push 2
push 3
push 0
push 0
push 0x40000000
mov ecx, dword [ebp - 0x14]
add ecx, 0x44
call fcn.0041ae70
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x4552da
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 0x4552e2
mov dword [ebp - 4], 0
jmp 0x4552f2
cmp dword [ebp - 0x1c], 0
je 0x45530c
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 0x45531c
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.0041a9d0
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x50], 0
je 0x455358
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