Function at 0x10021a90
Capabilities:
Get file size
Move file
Read file on windows

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x1002b73e
push eax
mov eax, 0x10434
mov dword fs:[0], esp
call fcn.10010280
push ebx
push ebp
push esi
push edi
xor esi, esi
push 0x1003de54
mov dword [esp + 0x10450], esi
call fcn.10022ce0
add esp, 4
lea eax, [esp + 0x10454]
lea ecx, [esp + 0x14]
push eax
call fcn.10022fbe
mov eax, dword [esp + 0x10460]
mov byte [esp + 0x1044c], 1
cmp eax, esi
push 0x10032820
jne 0x10021af9
push 0x1003281c
jmp 0x10021afe
push 0x10032818
lea ecx, [esp + 0x1045c]
call sub.MFC42.DLL_CString::Replace
mov ecx, dword [esp + 0x10454]
mov edx, dword [esp + 0x14]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_rename]
add esp, 8
cmp eax, esi
je 0x10021b36
push 0x1003de54
call fcn.10006e70
add esp, 4
jmp 0x10021d3d
lea eax, [esp + 0x34]
lea edi, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [esp + 0x10454]
push esi
push esi
push 3
push esi
push 1
push bind
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
or ebp, 0xffffffff
test ebx, ebx
mov dword [esp + 0x10], ebp
je 0x10021d2b
cmp ebx, ebp
je 0x10021d2b
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
test ecx, ecx
jbe 0x10021ba1
or eax, 0x80000000
mov dword [esp + 0x10], eax
test eax, eax
jne 0x10021bae
mov dword [esp + 0x18], eax
jmp 0x10021d20
cmp eax, 0x3c00000
jbe 0x10021bc2
mov dword [esp + 0x18], 1
jmp 0x10021d20
cmp eax, 0x10000
mov dword [esp + 0x18], 2
jbe 0x10021be1
add eax, 0x400
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x10454]
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
push eax
push str.filename:__s_r_n
push edi
call ebp
add esp, 0xc
lea ecx, [esp + 0x24]
lea edx, [esp + 0x10454]
mov esi, eax
push 0xe
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.10022fbe
lea eax, [esp + 0x2c]
push eax
call fcn.100219d0
add esp, 8
mov ecx, eax
mov byte [esp + 0x10454], 2
call sub.MFC42.DLL_CString::Left
mov ecx, dword [eax]
lea edx, [esi + edi]
push ecx
push str.time:__s_r_n
push edx
call ebp
add esp, 0xc
lea ecx, [esp + 0x24]
add esi, eax
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x1044c], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
lea ecx, [esi + edi]
push eax
push str.content_length:__d_r_n
push ecx
call ebp
add esi, eax
mov eax, dword [esp + 0x1046c]
add esp, 0xc
test eax, eax
mov eax, str.screen
je 0x10021c8a
mov eax, str.video
push eax
lea edx, [esi + edi]
push str.monitortype:__s_r_n
push edx
call ebp
add esi, eax
add esp, 0xc
lea eax, [esi + edi]
push str.content_type:_file_r_n_r_n
push eax
call ebp
mov ecx, dword [esp + 0x10464]
mov edx, dword [esp + 0x10460]
add esi, eax
push ecx
push edx
push esi
push edi
call dword [0x1003dbb4]
mov ecx, dword [esp + 0x28]
add esp, 0x18
lea eax, [esp + 0x10]
push 0
push eax
push ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x30]
push eax
push edi
mov dword [esp + 0x38], edx
call fcn.1000ecc0
mov esi, dword [esp + 0x18]
add esp, 8
lea ecx, [esp + 0x28]
push ecx
push 0
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
push eax
call fcn.10021780
add esp, 8
lea edx, [esp + 0x28]
lea eax, [esp + 0x28]
lea ecx, [esp + 0x28]
push edx
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, dword [esp + 0x18]
push 0x1003de54
call fcn.10006e70
add esp, 4
cmp ebp, 2
je 0x10021d6d
lea ecx, [esp + 0x14]
mov byte [esp + 0x1044c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10454]
mov dword [esp + 0x1044c], 0xffffffff
call sub.MFC42.DLL_CString::CString
or eax, 0xffffffff
jmp 0x10021e0d
mov edx, dword [esp + 0x1045c]
mov eax, dword [esp + 0x10458]
push edx
push eax
push esi
push edi
call dword [0x1003dbb4]
add esp, 0x10
test eax, eax
je 0x10021da8
mov ecx, dword [esp + 0x10454]
push ecx
push str.SendFile__s_
call fcn.10022cd0
add esp, 8
mov esi, 1
jmp 0x10021dd2
mov edx, dword [esp + 0x10454]
push edx
push str.SendFile__s__
call fcn.10022cd0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1045c]
push eax
push ecx
xor esi, esi
call dword [sym.imp.MSVCRT.dll_rename]
add esp, 0x10
lea edx, [esp + 0x44]
cmp edi, edx
je 0x10021de3
push edi
call fcn.10010220
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x1044c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10454]
mov dword [esp + 0x1044c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
mov ecx, dword [esp + 0x10444]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x10440
ret