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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48ff87
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1290
call fcn.0048f4a0
mov eax, dword [0x4a1d78]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1294], edx
mov ebx, ecx
mov dword [ebp - 0x1298], ebx
push 0x258
lea eax, [ebp - 0x126c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x126c]
xor ecx, ecx
or esi, 0xffffffff
mov dword [ebp - 0x1274], esi
mov dword [ebp - 0x127c], esi
push ecx
push eax
push ecx
push ebx
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_FindFirstStreamW]
mov edi, eax
mov dword [ebp - 0x128c], edi
cmp edi, esi
je 0x41ee32
lea eax, [ebp - 0x126c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextStreamW]
test eax, eax
je 0x41ee2b
lea eax, [ebp - 0x1264]
push eax
lea ecx, [ebp - 0x1270]
call dword [sym.imp.MFC42u.dll_CString::CString_2]
push 0x3a
lea ecx, [ebp - 0x1270]
mov byte [ebp - 4], 1
call dword [sym.imp.MFC42u.dll_CString::ReverseFind]
cmp eax, 2
jl 0x41edba
push eax
push 0
lea eax, [ebp - 0x1290]
push eax
lea ecx, [ebp - 0x1270]
call dword [sym.imp.MFC42u.dll_CString::Mid]
push eax
lea ecx, [ebp - 0x1270]
mov byte [ebp - 4], 2
call dword [0x4a557c]
lea ecx, [ebp - 0x1290]
mov byte [ebp - 4], 1
call dword [sym.imp.MFC42u.dll_CString::CString]
lea ecx, [ebp - 0x1284]
call dword [sym.imp.MFC42u.dll_CString::CString_1]
mov byte [ebp - 4], 3
lea eax, [ebp - 0x1284]
push dword [ebp - 0x1270]
push ebx
mov ebx, 0x40efd8
push ebx
push eax
call dword [sym.imp.MFC42u.dll_CString::Format]
add esp, 0x10
lea ecx, [ebp - 0x1280]
call dword [sym.imp.MFC42u.dll_CString::CString_1]
mov byte [ebp - 4], 4
lea eax, [ebp - 0x1280]
push dword [ebp - 0x1270]
push dword [ebp - 0x1294]
push ebx
push eax
call dword [sym.imp.MFC42u.dll_CString::Format]
add esp, 0x10
xor ebx, ebx
push ebx
push 0x8000000
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp - 0x1284]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1274], eax
cmp eax, esi
jne 0x41ec7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x41ec78
movzx eax, ax
or eax, 0x80070000
push eax
call dword [sym.imp.MFC42u.dll_AfxThrowOleException]
push ebx
push 0x8000080
push 2
push ebx
push 1
push 0x40000000
push dword [ebp - 0x1280]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x127c], ebx
cmp ebx, esi
jne 0x41ecc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x41ecb9
movzx eax, ax
or eax, 0x80070000
push eax
call dword [sym.imp.MFC42u.dll_AfxThrowOleException]
and dword [ebp - 0x1278], 0
push 0
lea eax, [ebp - 0x1278]
push eax
push 0x1000
lea eax, [ebp - 0x1014]
push eax
push dword [ebp - 0x1274]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41ed05
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x41ecfe
movzx eax, ax
or eax, 0x80070000
push eax
call dword [sym.imp.MFC42u.dll_AfxThrowOleException]
mov eax, dword [ebp - 0x1278]
test eax, eax
je 0x41ed6a
and dword [ebp - 0x1288], 0
lea ecx, [ebp - 0x1288]
push 0
push ecx
push eax
lea eax, [ebp - 0x1014]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41ed4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x41ed44
movzx eax, ax
or eax, 0x80070000
push eax
call dword [sym.imp.MFC42u.dll_AfxThrowOleException]
mov eax, dword [ebp - 0x1278]
cmp dword [ebp - 0x1288], eax
je 0x41ed6a
push 0x8000ffff
call dword [sym.imp.MFC42u.dll_AfxThrowOleException]
mov eax, dword [ebp - 0x1278]
cmp eax, 0x1000
je 0x41ecc7
push dword [ebp - 0x1274]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
mov dword [ebp - 0x1274], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x1280]
mov dword [ebp - 0x127c], esi
mov byte [ebp - 4], 3
call dword [sym.imp.MFC42u.dll_CString::CString]
lea ecx, [ebp - 0x1284]
mov byte [ebp - 4], 1
call dword [sym.imp.MFC42u.dll_CString::CString]
mov ebx, dword [ebp - 0x1298]
lea ecx, [ebp - 0x1270]
mov byte [ebp - 4], 0
call dword [sym.imp.MFC42u.dll_CString::CString]
jmp 0x41eb69
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048e170
mov esp, ebp
pop ebp
ret