Function at 0x56dd50
Capabilities:
Delete file
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x214]
push ebx
lea ebx, [ebp - 0x110]
sub esp, 0x234
mov dword [esp + 4], esi
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
sub esp, 8
mov dword [esp], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x5fea7d
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov eax, dword [sym.imp.kernel32.dll_CreateFileA]
sub esp, 0x10
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xe0000000
mov dword [esp], ebx
mov dword [ebp - 0x224], eax
call eax
sub esp, 0x1c
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x1068
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 8], ebx
mov dword [esp + 4], str.CreateFile__s__error__ld_n
mov dword [esp + 0xc], eax
xor eax, eax
cmp esi, 0xffffffff
setne al
mov dword [esp], eax
call fcn.0055ab70
mov dword [esp + 0xc], 0
mov edi, dword [sym.imp.kernel32.dll_SetFilePointer]
mov dword [esp + 8], 0
mov eax, dword [0x8e0684]
mov dword [esp], esi
add eax, eax
mov dword [esp + 4], eax
call edi
sub esp, 0x10
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_SetEndOfFile]
xor ecx, ecx
mov edx, 0x8000000
mov eax, esi
sub esp, 4
call fcn.0056b9a0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call edi
sub esp, 0x10
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x1070
lea eax, [ebp - 0x218]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x21c]
mov dword [esp + 0x10], 0
mov dword [esp + 8], 4
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_ReadFile]
sub esp, 0x14
mov dword [esp], eax
mov dword [esp + 4], str.ReadFile_failed_n
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x1071
mov eax, dword [ebp - 0x218]
mov dword [esp + 4], str.num_bytes___ld_n
cmp eax, 4
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov edi, dword [0x8f0770]
call fcn.0057d110
mov ecx, dword [eax + 0x10]
mov dword [eax + 0x14], 1
lea edx, [ecx + ecx]
xor ecx, ecx
test edi, edi
setne cl
or edx, ecx
mov dword [eax + 0x10], edx
jmp 0x56df6c
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x1073
mov eax, dword [ebp - 0x21c]
mov dword [esp + 4], str.data___lx_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
shr dword [eax + 0x10], 1
call fcn.0057d110
mov edx, dword [eax + 0x14]
mov dword [eax + 0x14], 0
test edx, edx
jne 0x56df30
mov eax, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [esp], esi
mov edi, dword fs:[0x18]
mov dword [ebp - 0x220], eax
call eax
sub esp, 4
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
mov ecx, dword [ebp - 0x224]
call ecx
sub esp, 0x1c
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x1078
mov eax, dword [edi + 0x34]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
xor eax, eax
cmp esi, 0xffffffff
setne al
mov dword [esp + 4], str.CreateFile__s__error__ld_n
mov dword [esp], eax
call fcn.0055ab70
mov ecx, 1
mov edx, 0x8000000
mov eax, esi
call fcn.0056b9a0
mov dword [esp], esi
mov eax, dword [ebp - 0x220]
call eax
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_DeleteFileA]
sub esp, 4
mov dword [esp], ebx
mov dword [esp + 4], 0x104
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
sub esp, 8
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov edx, 0x6c
add eax, ebx
mov word [eax + 0xc], dx
mov dword [eax], 0x72656b5c
mov dword [eax + 4], 0x336c656e
mov dword [eax + 8], 0x6c642e32
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0xa0000000
mov ecx, dword [ebp - 0x224]
call ecx
sub esp, 0x1c
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x1084
mov eax, dword [edi + 0x34]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
xor eax, eax
cmp esi, 0xffffffff
setne al
mov dword [esp + 4], str.CreateFile__s__error__ld_n
mov dword [esp], eax
call fcn.0055ab70
xor ecx, ecx
mov edx, 0x1000000
mov eax, esi
call fcn.0056b9a0
mov dword [esp], esi
mov eax, dword [ebp - 0x220]
call eax
xor ecx, ecx
mov edx, 0x8000000
mov eax, 0xffffffff
sub esp, 4
call fcn.0056b9a0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret