Function at 0x402a40
Capabilities:
Copy file
Delete file
Get common file path
Set current directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c85e3
mov eax, dword fs:[0]
push eax
sub esp, 0x500
mov eax, dword [0x58be1c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
push edi
push str.Creating_Video_Viewer_at__s_n
call fcn.00406980
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.004a8410
add esp, 0x14
lea eax, [ebp - 0x21c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x402ac5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x544054
call fcn.00406980
add esp, 8
xor al, al
jmp 0x402f0f
push 0
push edi
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x402b01
push str.Failed_to_create_target_file._Application_will_exit._n
call fcn.00406980
add esp, 4
push 0
push str.Video_Archive_Error
push str.Failed_to_create_target_file
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
jmp 0x402f0f
lea ecx, [ebp - 0x50c]
call fcn.004069c0
lea ecx, [ebp - 0x454]
mov dword [ebp - 4], 0
call fcn.004069c0
lea ecx, [ebp - 0x498]
mov byte [ebp - 4], 1
call fcn.004069c0
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 2
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [ebp - 0x428]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x454]
call fcn.00406b20
push str.VideoViewer.zip
lea ecx, [ebp - 0x454]
call fcn.00406b20
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x498]
call fcn.00406b20
lea ecx, [ebp - 0x4e4]
call fcn.00406bd0
lea ecx, [ebp - 0x454]
mov byte [ebp - 4], 3
call fcn.00406a90
push eax
lea ecx, [ebp - 0x4e4]
call fcn.00406fd0
test al, al
jne 0x402bc6
mov byte [ebp - 0x429], al
jmp 0x402edd
lea ecx, [ebp - 0x498]
call fcn.00406a90
push eax
lea ecx, [ebp - 0x4e4]
call fcn.00407380
lea ecx, [ebp - 0x4f8]
call fcn.004069c0
lea ecx, [ebp - 0x454]
mov byte [ebp - 4], 4
call fcn.00406ab0
push eax
push str.Temporary_zip_file_being_created:__s_n
call fcn.00406980
add esp, 8
test esi, esi
je 0x402c33
mov esi, 0x544fe8
nop
push dword [esi]
lea edx, [ebp - 0x21c]
lea ecx, [ebp - 0x4e4]
call fcn.00402960
add esi, 4
add esp, 4
cmp esi, 0x545094
jl 0x402c10
jmp 0x402c65
xor esi, esi
nop word [eax + eax]
push dword [esi + 0x545098]
lea edx, [ebp - 0x21c]
lea ecx, [ebp - 0x4e4]
call fcn.00402960
add esi, 4
add esp, 4
cmp esi, 0xd4
jb 0x402c40
lea ecx, [ebp - 0x4e4]
call fcn.004072d0
test al, al
je 0x402e5c
lea ecx, [ebp - 0x454]
call fcn.00406ab0
push eax
push 0x544210
call fcn.00406980
add esp, 8
lea ecx, [ebp - 0x484]
call fcn.004069c0
lea ecx, [ebp - 0x470]
mov byte [ebp - 4], 6
call fcn.004069c0
push str.VideoViewer.zip
lea ecx, [ebp - 0x470]
mov byte [ebp - 4], 7
call fcn.00406b90
push edi
lea ecx, [ebp - 0x484]
call fcn.00406b90
lea ecx, [ebp - 0x454]
call fcn.00406a90
push eax
lea ecx, [ebp - 0x470]
call fcn.00406a90
push eax
lea ecx, [ebp - 0x484]
call fcn.00406a90
push eax
lea ecx, [ebp - 0x4e4]
call fcn.00406d10
lea ecx, [ebp - 0x440]
test al, al
jne 0x402d61
call fcn.004069c0
lea eax, [ebp - 0x440]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x4e4]
call fcn.004075a0
push str.ERROR:_Failed_to_embed_the_archive_file_n
call fcn.00406980
add esp, 4
lea ecx, [ebp - 0x440]
call fcn.00406ab0
push eax
call fcn.00406980
push 0x54420c
call fcn.00406980
add esp, 8
lea ecx, [ebp - 0x440]
call fcn.00406a50
mov byte [ebp - 0x429], 0
jmp 0x402e44
call fcn.004069c0
lea eax, [ebp - 0x440]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x4e4]
call fcn.004075a0
push str.Successfully_appended_zip_file_to_wrap_executable_n
call fcn.00406980
add esp, 4
lea ecx, [ebp - 0x440]
call fcn.00406ab0
push eax
call fcn.00406980
push 0x54420c
call fcn.00406980
add esp, 8
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x440]
call fcn.00406a50
lea ecx, [ebp - 0x4e4]
call fcn.00406fb0
lea ecx, [ebp - 0x454]
call fcn.00406ab0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402dfc
mov byte [ebp - 0x429], 0
jmp 0x402e44
push 2
push 0
push 0
push esi
mov dword [ebp - 0x45c], 0
mov dword [ebp - 0x458], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x458]
push eax
push 4
lea eax, [ebp - 0x45c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x429], 1
lea ecx, [ebp - 0x470]
call fcn.00406a50
lea ecx, [ebp - 0x484]
call fcn.00406a50
jmp 0x402ed2
lea ecx, [ebp - 0x440]
call fcn.004069c0
lea eax, [ebp - 0x440]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x4e4]
call fcn.004075a0
movups xmm0, xmmword [ebp - 0x454]
mov eax, dword [ebp - 0x444]
sub esp, 0x14
mov ecx, esp
push str.Failed_to_write_the_zip_file_to_disk:__s_n
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], eax
call fcn.00406980
add esp, 0x18
lea ecx, [ebp - 0x440]
call fcn.00406ab0
push eax
call fcn.00406980
push 0x54420c
call fcn.00406980
add esp, 8
lea ecx, [ebp - 0x440]
call fcn.00406a50
mov byte [ebp - 0x429], 0
lea ecx, [ebp - 0x4f8]
call fcn.00406a50
lea ecx, [ebp - 0x4e4]
call fcn.00406c30
lea ecx, [ebp - 0x498]
call fcn.00406a50
lea ecx, [ebp - 0x454]
call fcn.00406a50
lea ecx, [ebp - 0x50c]
call fcn.00406a50
mov al, byte [ebp - 0x429]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a4dea
mov esp, ebp
pop ebp
ret