Function at 0x407c68
Capabilities:
Print debug messages
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
cmp byte [0x53ac8c], 0
jne 0x407f19
push 1
push 0x2000
push 0x10000
push 0x80800000
call sub.kernel32.dll_VirtualAlloc
mov dword [0x53a5dc], eax
call sub.kernel32.dll_GetCurrentProcessId
mov ebx, eax
xor eax, eax
mov ecx, eax
add ecx, ecx
add ecx, ecx
mov edx, ebx
shr edx, cl
and edx, 0xf
movzx edx, byte [edx + str.0123456789ABCDEF]
mov ecx, 0x18
sub ecx, eax
mov byte [ecx + str.LocalFastMM_PID_________], dl
mov ecx, 8
sub ecx, eax
mov byte [ecx + 0x5327e1], dl
mov byte [ecx + 0x5327f5], dl
inc eax
cmp eax, 8
jne 0x407c9f
push str._________PID_FastMM
push 0x407f20
call sub.user32.dll_FindWindowA
mov dword [0x53ac80], eax
push str._________PID_FastMM_BE
push 0x407f20
call sub.user32.dll_FindWindowA
mov dword [0x53ac84], eax
push str.LocalFastMM_PID_________
push 0
push 4
call sub.kernel32.dll_OpenFileMappingA
mov dword [0x53ac88], eax
mov eax, dword [0x53ac80]
or eax, dword [0x53ac84]
or eax, dword [0x53ac88]
jne 0x407e4d
mov eax, dword [sym.imp.rtl160.bpl__System_IsLibrary]
cmp byte [eax], 0
jne 0x407e05
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [0x537004]
push eax
push 0
mov edx, str._________PID_FastMM
mov eax, 0x407f20
mov ecx, 0x80000000
call fcn.004037b4
mov dword [0x53ac80], eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [0x537004]
push eax
push 0
mov edx, str._________PID_FastMM_BE
mov eax, 0x407f20
mov ecx, 0x80000000
call fcn.004037b4
mov dword [0x53ac84], eax
cmp dword [0x53ac80], 0
je 0x407db0
mov ecx, 0x53ac68
mov edx, 0xffffffeb
mov eax, dword [0x53ac80]
call fcn.00403650
cmp dword [0x53ac84], 0
je 0x407dcd
mov ecx, 0x53ac68
mov edx, 0xffffffeb
mov eax, dword [0x53ac84]
call fcn.00403650
push str.LocalFastMM_PID_________
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov dword [0x53ac88], eax
push 0
push 0
push 0
push 2
mov eax, dword [0x53ac88]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [eax], 0x53ac68
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov dword [0x53ac68], fcn.00405ab8
mov dword [0x53ac6c], 0x405c34
mov dword [0x53ac70], 0x405d20
mov dword [0x53ac74], 0x405e84
mov dword [0x53ac78], 0x406d34
mov dword [0x53ac7c], 0x406d84
mov byte [0x53ac8d], 1
jmp 0x407edf
cmp dword [0x53ac88], 0
je 0x407e81
push 0
push 0
push 0
push 4
mov eax, dword [0x53ac88]
push eax
call sub.kernel32.dll_MapViewOfFile
mov edx, dword [eax]
mov esi, edx
mov edi, 0x53ac68
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
push eax
call sub.kernel32.dll_UnmapViewOfFile
jmp 0x407ec6
cmp dword [0x53ac80], 0
je 0x407ea9
mov edx, 0xffffffeb
mov eax, dword [0x53ac80]
call fcn.004034b0
mov esi, eax
mov edi, 0x53ac68
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
jmp 0x407ec6
mov edx, 0xffffffeb
mov eax, dword [0x53ac84]
call fcn.004034b0
mov esi, eax
mov edi, 0x53ac68
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x53ac88]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
mov dword [0x53ac88], eax
mov byte [0x53ac8d], 0
mov eax, 0x53ac50
call sub.rtl160.bpl__System_GetMemoryManager_qqrr23System_TMemoryManagerEx
mov eax, 0x53ac68
call sub.rtl160.bpl__System_SetMemoryManager_qqrrx23System_TMemoryManagerEx
mov byte [0x53ac8c], 1
cmp byte [0x53ac8d], 0
je 0x407f0f
push 0x407f28
call sub.kernel32.dll_OutputDebugStringA
jmp 0x407f19
push 0x407f44
call sub.kernel32.dll_OutputDebugStringA
pop edi
pop esi
pop ebx
pop ebp
ret