Function at 0x41ce70
Capabilities:
Check if file exists
Create directory
Get file attributes
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42f248
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x14
push esi
lea esi, [eax + eax*2]
push edi
mov edi, ecx
lea esi, [esi + esi*8]
shl esi, 2
sub esi, eax
shl esi, 3
cmp dword [esi + edi + 0x614], 0xffffffff
jne 0x41d0e6
mov ecx, dword [esi + edi + 0x5fc]
test ecx, ecx
jne 0x41cebf
push eax
mov ecx, edi
call fcn.0041d6b0
push ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.kernel32.dll_GetLocalTime]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
lea ecx, [esi + edi + 0x61c]
mov dword [esi + edi + 0x61c], edx
mov edx, dword [esp + 0x1c]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x20]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x34]
call sub.mfc42.dll_CString::CString_3
mov ecx, dword [esp + 0x1a]
mov edx, dword [esp + 0x16]
mov eax, dword [esp + 0x14]
and ecx, 0xffff
push ecx
mov ecx, dword [0x431708]
and edx, 0xffff
and eax, 0xffff
push edx
mov edx, dword [ecx + 0x71b0]
add edx, 0x43
push eax
push edx
lea eax, [esp + 0x44]
push 0x403c8c
push eax
mov dword [esp + 0x44], 0
call sub.mfc42.dll_CString::Format
mov ecx, dword [esp + 0x4c]
add esp, 0x18
push ecx
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41cf5a
test al, 0x10
jne 0x41cfd5
mov edx, dword [0x431708]
lea ecx, [esp + 0x34]
mov eax, dword [edx + 0x71b0]
add eax, 0x43
push eax
push 0x403c7c
push ecx
call sub.mfc42.dll_CString::Format
mov edx, dword [esp + 0x40]
mov ebx, dword [sym.imp.kernel32.dll_CreateDirectoryA]
add esp, 0xc
push 0
push edx
call ebx
mov eax, dword [esp + 0x1a]
mov ecx, dword [esp + 0x16]
mov edx, dword [esp + 0x14]
and eax, 0xffff
push eax
mov eax, dword [0x431708]
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [eax + 0x71b0]
add ecx, 0x43
push edx
push ecx
lea edx, [esp + 0x44]
push 0x403c8c
push edx
call sub.mfc42.dll_CString::Format
mov eax, dword [esp + 0x4c]
add esp, 0x18
push 0
push eax
call ebx
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1e]
mov eax, dword [esp + 0x1c]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
mov edx, dword [esp + 0x22]
push eax
mov eax, dword [0x431708]
and edx, 0xffff
mov ecx, dword [esi + eax + 0x624]
mov eax, dword [eax + 0x71b0]
inc ecx
add eax, 0x43
push ecx
mov ecx, dword [esp + 0x26]
push edx
mov edx, dword [esp + 0x28]
and ecx, 0xffff
and edx, 0xffff
push ecx
push edx
push eax
lea ecx, [esp + 0x54]
push 0x403c4c
push ecx
call sub.mfc42.dll_CString::Format
mov edx, dword [esi + edi + 0x698]
lea ebp, [esi + edi + 0x698]
lea ebx, [esi + edi + 0x604]
push ebx
push edx
call dword [sym.imp.jvsdk.dll_JVS_GetHeaderData]
mov eax, dword [esp + 0x64]
add esp, 0x30
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + edi + 0x614], eax
je 0x41d0d3
xor ecx, ecx
mov dword [esi + edi + 0x610], ecx
mov dword [esp + 0x10], ecx
push ecx
lea ecx, [esp + 0x14]
push ecx
push 0x10
push ebx
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
mov eax, dword [esi + edi + 0x614]
lea edx, [esp + 0x10]
push 0
push edx
push 0x10
push ebx
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
mov dword [esi + edi + 0x618], 1
mov ecx, dword [ebp]
push ecx
call dword [sym.imp.jvsdk.dll_JVS_InsertKeyFrame]
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], 0xffffffff
call sub.mfc42.dll_CString::CString
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 4