Function at 0x1001f9a0
Capabilities:
Delete file

Disassembly:
sub esp, 8
mov edx, dword [esp + 0x10]
push esi
mov eax, edx
push edi
mov edi, ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1001f9c0
sub eax, esi
push eax
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push edx
mov ecx, edi
call sym.NativeMngUAC.dll_public:_int___thiscall_NativeFCMSWrapper::XMF_MultiByteToWideChar_unsigned_int__wchar_t____int___char___int_
test eax, eax
je 0x1001f9f2
pop edi
or eax, 0xffffffff
pop esi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x1c]
cmp eax, 2
mov esi, dword [esp + 8]
jne 0x1001fa79
push 0
push esi
call dword [sym.imp.MSVCR80.dll__waccess]
add esp, 8
test eax, eax
push 0
push 0x80
jne 0x1001fa36
push 3
push eax
push eax
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x1001fa4d
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1001fa86
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x1001fa67
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._NativeFCMSWrapper__XMF_File_Access__CreateFile_Error__d_
push edi
call sym.NativeMngUAC.dll_public:_void___cdecl_NativeFCMSWrapper::logDebug_char_const__
add esp, 0xc
or edi, 0xffffffff
jmp 0x1001fa86
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1001fa86
push eax
push esi
call dword [sym.imp.MSVCR80.dll__waccess]
add esp, 8
mov edi, eax
test esi, esi
je 0x1001fa94
push esi
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
mov eax, edi
pop edi
pop esi
add esp, 8
ret 0xc

Function at 0x1001faa0
Capabilities:
Check mutex on windows

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, ecx
call sym.NativeMngUAC.dll_public:_void____thiscall_NativeFCMSWrapper::openFileMap_void_
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
test esi, esi
je 0x1001fac2
push esi
mov ecx, edi
call sym.NativeMngUAC.dll_public:_int___thiscall_NativeFCMSWrapper::deleteFileMapInfo_void__
push esi
call ebx
push str.as4pc_fcms_sync
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1001fb3e
push str.as4pc_fcms_filemap
push 0x4010
push eax
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
test edi, edi
jne 0x1001fb0d
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call ebx
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
push 0x4010
push 0
push 0
push 0xf001f
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x1001fafc
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret
mov edi, dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret