Function at 0x10015cd0
Capabilities:
Delete file
Move file
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100900c0
push 0x1005aa50
mov eax, dword fs:[0]
push eax
sub esp, 0x45c
mov eax, dword [0x1009cbc0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x454], edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x45c], eax
mov eax, dword [0x100e2810]
mov edi, 0x32
mov dword [ebp - 0x460], 0xffffffff
mov dword [ebp - 0x458], 0
mov dword [ebp - 4], 0
mov dword [ebp - 4], 1
test eax, eax
je 0x10016122
cmp dword [eax], 0x1234abcd
jne 0x10016122
push str.mbae_protector.xpe
push 0x100e1fb0
push 0x10086350
lea eax, [ebp - 0x224]
push eax
call fcn.10004ed0
add esp, 0x10
lea eax, [ebp - 0x450]
push eax
push 0
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x10015ded
xor ecx, ecx
mov eax, dword [ebp - 0x434]
add ecx, dword [ebp - 0x430]
adc eax, 0
mov dword [ebp - 0x468], eax
jne 0x10015db1
cmp ecx, 0x800000
jbe 0x10015ded
lea eax, [ebp - 0x224]
push eax
push str._s.bak
lea eax, [ebp - 0x42c]
push eax
call fcn.10004ed0
add esp, 0xc
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0
push 0x80
push 4
push 0
push 1
push 4
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x460], esi
cmp esi, 0xffffffff
jne 0x10015e2e
push str.Retry_XPE_file_open_n
call ebx
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
dec edi
mov dword [ebp - 0x464], edi
cmp esi, 0xffffffff
jne 0x10015eff
test edi, edi
jg 0x10015df3
cmp esi, esi
jne 0x10015eff
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
add eax, 0x1e
mov dword [ebp - 0x45c], eax
call esi
lea edi, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
jne 0x10015e89
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call ebx
jmp 0x10015ee1
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x10015ec4
mov byte [esi + 0xffff], 0
push esi
push str.SaveIPCMessage
push 1
mov edx, 0x61a
mov ecx, str...ServerIpcNA.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x10015ed8
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
call ebx
push esi
call fcn.10052152
add esp, 4
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
mov eax, dword [ebp - 0x45c]
jmp 0x1001627e
push 0
lea eax, [ebp - 0x458]
push eax
push 8
push dword [ebp - 0x45c]
push esi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
call edi
test eax, eax
je 0x1001606d
cmp dword [ebp - 0x458], 8
jne 0x1001606d
push 0
lea eax, [ebp - 0x458]
push eax
push 4
lea eax, [ebp + 8]
push eax
push esi
call edi
test eax, eax
je 0x10016002
cmp dword [ebp - 0x458], 4
jne 0x10016002
push 0
lea eax, [ebp - 0x458]
push eax
push dword [ebp + 8]
push dword [ebp - 0x454]
push esi
call edi
test eax, eax
je 0x10015f93
mov eax, dword [ebp - 0x458]
cmp eax, dword [ebp + 8]
jne 0x10015f93
mov dword [ebp - 4], 0
call fcn.100161cf
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x1001627e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
add eax, 0x1e
mov dword [ebp - 0x454], eax
call esi
lea edi, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
je 0x10016096
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x100160e7
mov byte [esi + 0xffff], 0
push esi
push str.SaveIPCMessage
push 1
mov edx, 0x629
mov ecx, str...ServerIpcNA.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x100160fb
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
add eax, 0x1e
mov dword [ebp - 0x454], eax
call esi
lea edi, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
je 0x10016096
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x100160e7
mov byte [esi + 0xffff], 0
push esi
push str.SaveIPCMessage
push 1
mov edx, 0x624
mov ecx, str...ServerIpcNA.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x100160fb
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
add eax, 0x1e
mov dword [ebp - 0x454], eax
call esi
lea edi, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
jne 0x100160ac
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call ebx
jmp 0x10016104
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x100160e7
mov byte [esi + 0xffff], 0
push esi
push str.SaveIPCMessage
push 1
mov edx, 0x61f
mov ecx, str...ServerIpcNA.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x100160fb
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
call ebx
push esi
call fcn.10052152
add esp, 4
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
mov eax, dword [ebp - 0x454]
jmp 0x1001627e
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
jne 0x1001614f
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x100161ac
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push 8
test eax, eax
jle 0x1001618b
mov byte [esi + 0xffff], 0
push esi
push str.SaveIPCMessage
push 1
mov edx, 0x5fa
mov ecx, str...ServerIpcNA.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x100161a3
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.10052152
add esp, 4
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
mov eax, 8
jmp 0x1001627e
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1005132c
mov esp, ebp
pop ebp
ret