Function at 0x4023f0
Capabilities:
Check mutex on windows
Get common file path
Get file size
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x260
mov eax, dword [0x45e070]
xor eax, esp
mov dword [esp + 0x25c], eax
push esi
push edi
push 0x208
lea eax, [esp + 0x5c]
push 0
push eax
call fcn.00427af0
add esp, 0xc
lea eax, [esp + 0x58]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.AxDeamon.log
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, 0x45ea84
lea esi, [esp + 0x58]
mov edx, 0x104
sub esi, ecx
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x40246e
movzx eax, word [esi + ecx]
test ax, ax
je 0x40246e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x402450
lea eax, [ecx - 2]
test edx, edx
cmovne eax, ecx
xor ecx, ecx
push ecx
push 0x80
push 4
push ecx
push 1
push 0xc0000000
push 0x45ea84
mov word [eax], cx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x45ea80], eax
cmp eax, 0xffffffff
jne 0x4024b0
push str.Minilog:_Create_log_file_Failed_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x402530
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [esp + 0xc], 0
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jne 0x4024de
cmp eax, 0xa00000
ja 0x4024de
test eax, eax
jne 0x402522
jmp 0x4024f8
push 0
push 0
push 0
push dword [0x45ea80]
call esi
push dword [0x45ea80]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x18], 0xfeff
push eax
push 2
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0
push eax
push dword [0x45ea80]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 2
push 0
push 0
push dword [0x45ea80]
call esi
push str.MemProtectDeamon_start.
push 0x45ea80
call fcn.00401f20
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.0040bd50
add esp, 4
test eax, eax
jne 0x402580
push str.verify_parent_process_get_parent_process_id_failed.
push 0x45ea80
call fcn.00401f20
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.0040fcd6
mov esp, ebp
pop ebp
ret 0x10
push eax
lea eax, [esp + 0x44]
push eax
call fcn.0040be00
add esp, 8
cmp dword [esp + 0x50], 0
jne 0x4025af
push str.verify_parent_process_get_parent_process_path_from_id_failed.
push 0x45ea80
call fcn.00401f20
add esp, 8
or edi, 0xffffffff
jmp 0x40276f
lea eax, [esp + 0x28]
push eax
call fcn.0040c660
add esp, 4
cmp dword [esp + 0x38], 0
jne 0x4025ca
mov eax, str.verify_parent_process_get_install_path_failed.
jmp 0x4025f7
cmp dword [esp + 0x3c], 8
lea ecx, [esp + 0x28]
lea eax, [esp + 0x40]
cmovae ecx, dword [esp + 0x28]
cmp dword [esp + 0x54], 8
push ecx
cmovae eax, dword [esp + 0x44]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x40260d
mov eax, str.verify_parent_process_path_match_failed.
push eax
push 0x45ea80
call fcn.00401f20
add esp, 8
or edi, 0xffffffff
jmp 0x402720
push str.MemProtectDeamon_verify_parent_process_success.
push 0x45ea80
call fcn.00401f20
add esp, 8
xor esi, esi
push str.GlobalV01MemProtectDeamon32
push esi
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x402652
push str.MemProtectDeamon_already_started.
push 0x45ea80
mov esi, eax
call fcn.00401f20
add esp, 8
or edi, 0xffffffff
jmp 0x402715
lea eax, [esp + 0x1c]
xorps xmm0, xmm0
push eax
movups xmmword [esp + 0x1c], xmm0
call fcn.00408f50
add esp, 4
lea ecx, [esp + 0x1c]
test al, al
lea eax, [esp + 0x1c]
cmove ecx, dword [esp + 0x18]
push str.GlobalV01MemProtectDeamon32
push 0
push eax
mov dword [esp + 0x24], ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
je 0x4026f1
push str.MemProtectDeamon_ready_to_start_dump_server.
push 0x45ea80
mov esi, eax
call fcn.00401f20
add esp, 8
mov ecx, 0x461740
push 0
call fcn.0040b9d0
push str.MemProtectDeamon_dump_server_start_complete.
push 0x45ea80
call fcn.00401f20
add esp, 8
call fcn.0040c390
test eax, eax
jne 0x4026cc
call fcn.00401540
push str.MemProtectDeamon_MemProtect_manager_start_complete.
push 0x45ea80
call fcn.00401f20
add esp, 8
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor edi, edi
jmp 0x402706
push str.MemProtectDeamon_failed_to_create_mutex.
push 0x45ea80
call fcn.00401f20
add esp, 8
or edi, 0xffffffff
mov eax, dword [esp + 0x20]
test eax, eax
je 0x402715
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x402720
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x3c]
cmp edx, 8
jb 0x402758
mov ecx, dword [esp + 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40274e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4027bf
push edx
push ecx
call fcn.0040fd67
add esp, 8
xor eax, eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 7
mov word [esp + 0x28], ax
mov edx, dword [esp + 0x54]
cmp edx, 8
jb 0x4027a7
mov ecx, dword [esp + 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40279d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4027bf
push edx
push ecx
call fcn.0040fd67
add esp, 8
mov ecx, dword [esp + 0x264]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0040fcd6
mov esp, ebp
pop ebp
ret 0x10
call fcn.0042ddfe
int3