Function at 0x401ed0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x21c
push ebx
push 0
push 0x40d940
push 0x40d66c
push str.SUSPENDSVC
push str.PSSPNDSVC.EXE
push str.PSSPNDSVC
push 0x40a5cc
push 0x40d564
push 1
call fcn.00401af0
add esp, 0x24
test al, al
jne 0x401f14
xor eax, eax
pop ebx
add esp, 0x21c
ret
call fcn.004018b0
push 0x40d564
push str._rConnecting_with_PsSuspend_service_on__s...
call fcn.00402a5b
push 0x40d564
lea eax, [esp + 0x128]
push str._spipepsspndsvc
push eax
call fcn.00402a09
add esp, 0x14
lea ecx, [esp + 0x11c]
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401fb9
call fcn.004018b0
push 0x40d564
push str._rError_establishing_communication_with_PsSuspend_service_on__s:_n
call fcn.00402a5b
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00401820
add esp, 4
push str.PSSPNDSVC.EXE
push str.PSSPNDSVC
push 0x40d564
push 1
call fcn.004019f0
push 0x40a3bc
call fcn.00402a5b
add esp, 0x14
xor eax, eax
pop ebx
add esp, 0x21c
ret
call fcn.004018b0
mov ecx, dword [0x40d774]
mov al, byte [0x40a3cc]
test ecx, ecx
mov byte [esp + 8], al
je 0x40202b
test al, al
mov eax, str.Suspending
jne 0x401fdf
mov eax, str.Resuming
mov edx, dword [0x40dc84]
push esi
push edi
push 0x40d564
push edx
push eax
push str._r_s_process__d_on__s...
call fcn.00402a5b
mov edi, dword [0x40d774]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x12]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov byte [esp + 0xd], 1
pop esi
jmp 0x402065
test al, al
mov eax, str.Suspending
jne 0x402039
mov eax, str.Resuming
mov ecx, dword [0x40dc84]
push 0x40d564
push ecx
push eax
push str._r_s_process__d_on__s...
call fcn.00402a5b
mov edx, dword [0x40dc84]
add esp, 0x10
mov byte [esp + 9], 0
mov dword [esp + 0x110], edx
lea eax, [esp + 4]
push 0
push eax
lea ecx, [esp + 0x10]
push 0x114
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x402095
call fcn.004018b0
push 0x40d564
push str._rError_communicating_with_PsSuspend_service_on__s:_n
jmp 0x401f75
lea edx, [esp + 4]
push 0
push edx
lea eax, [esp + 0x10]
push 0x114
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4020e1
call fcn.004018b0
mov al, byte [0x40a3cc]
test al, al
mov eax, str.suspended
jne 0x4020c9
mov eax, str.resumed
push eax
push 0x40d564
push str._rError_communicating_with_PsSuspend_service_on__s._The_process_may_nnot_have_been__s:_n
call fcn.00402a5b
add esp, 0xc
jmp 0x401f7d
mov eax, dword [esp + 0x114]
test eax, eax
je 0x402192
call fcn.004018b0
mov ecx, dword [0x40d774]
mov al, byte [0x40a3cc]
test ecx, ecx
je 0x402120
test al, al
mov eax, str.suspending
jne 0x402112
mov eax, str.resuming
push 0x40d564
push ecx
push eax
push str._rError__s_process_es__named__s_on__s:_n
jmp 0x402140
test al, al
mov eax, str.suspending
jne 0x40212e
mov eax, str.resuming
mov ecx, dword [0x40dc84]
push 0x40d564
push ecx
push eax
push str._rError__s_process__d_on__s:_n
call fcn.00402a5b
mov eax, dword [esp + 0x124]
add esp, 0x10
cmp eax, 0x57
jne 0x401f83
mov eax, dword [0x40d774]
push 0x40d564
test eax, eax
je 0x402179
push eax
push str.Process__s_does_not_exist_on__s._n
call fcn.00402a5b
add esp, 0xc
jmp 0x401f8c
mov edx, dword [0x40dc84]
push edx
push str.Process__d_does_not_exist_on__s._n
call fcn.00402a5b
add esp, 0xc
jmp 0x401f8c
mov eax, dword [esp + 0x224]
mov ecx, dword [esp + 0x118]
push str.PSSPNDSVC.EXE
push str.PSSPNDSVC
push 0x40d564
push 1
mov dword [eax], ecx
call fcn.004019f0
add esp, 0x10
mov eax, 1
pop ebx
add esp, 0x21c
ret