Function at 0x40eeb0
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6dc
mov eax, dword [0x44b4b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
mov ebx, 0x104
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x6cc], eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x6c8], eax
mov eax, dword [esi]
cmp dword [eax - 8], 0
jne 0x40efba
lea eax, [ebp - 0x6d8]
push eax
call fcn.0041f667
pop ecx
lea eax, [ebp - 0x6d8]
push eax
lea eax, [ebp - 0x6c4]
push eax
call fcn.0041f3ed
lea eax, [ebp - 0x6c4]
push eax
push str.__m_d_y__H_M_S
lea eax, [ebp - 0x290]
push 0x40
push eax
call fcn.00420424
push dword [edi + 4]
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.0042073a
add esp, 0x24
lea eax, [ebp - 0x210]
push eax
call fcn.0041e578
pop ecx
test eax, eax
jne 0x40ef5e
push dword [edi + 8]
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.0042073a
add esp, 0xc
push str.Crash
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.00420796
add esp, 0xc
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.00420796
add esp, 0xc
jmp 0x40ef92
push 0x5f
pop ecx
mov word [eax], cx
lea eax, [ebp - 0x210]
push 0x20
push eax
call fcn.00420802
pop ecx
pop ecx
test eax, eax
jne 0x40ef8c
lea eax, [ebp - 0x210]
mov edx, 0x4436b0
push eax
mov ecx, esi
call fcn.004146be
pop ecx
push ecx
mov ecx, dword [esi]
call fcn.00418441
pop ecx
push dword [esi]
mov ebx, eax
mov ecx, str.Creating_zip_file:
mov eax, str.Failed_to_create_zip_file:
test ebx, ebx
cmove ecx, eax
push ecx
mov ecx, edi
call fcn.0040f28f
push 0x5c
push dword [edi + 0x4c]
call fcn.004208b0
push dword [edi + 0x4c]
add eax, 2
push eax
push ebx
push edi
call fcn.0040ee26
mov esi, dword [ebp - 0x6cc]
push esi
call fcn.0041e578
pop ecx
test eax, eax
je 0x40f01b
push 0x5c
push esi
call fcn.004208b0
push esi
add eax, 2
push eax
push ebx
push edi
call fcn.0040ee26
mov esi, dword [ebp - 0x6c8]
push esi
call fcn.0041e578
pop ecx
test eax, eax
je 0x40f040
push 0x5c
push esi
call fcn.004208b0
push esi
add eax, 2
push eax
push ebx
push edi
call fcn.0040ee26
xor eax, eax
mov dword [ebp - 0x6c8], eax
cmp dword [edi + 0x34], eax
jle 0x40f081
lea ecx, [edi + 0x30]
push eax
call fcn.0040f49b
push 0x5c
mov esi, dword [eax]
push esi
call fcn.004208b0
push esi
add eax, 2
push eax
push ebx
push edi
call fcn.0040ee26
mov eax, dword [ebp - 0x6c8]
lea ecx, [edi + 0x30]
inc eax
mov dword [ebp - 0x6c8], eax
cmp eax, dword [edi + 0x34]
jl 0x40f050
cmp byte [edi + 0x47], 0
je 0x40f09e
lea esi, [edi + 0x54]
push 0x5c
push esi
call fcn.004208b0
push esi
add eax, 2
push eax
push ebx
push edi
call fcn.0040ee26
mov ecx, ebx
call fcn.00418549
mov eax, dword [edi + 0x3c]
cmp dword [eax - 8], 0
jle 0x40f136
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40f136
lea eax, [ebp - 0x210]
mov esi, 0x104
push eax
lea eax, [ebp - 0x6a0]
push esi
push eax
call fcn.0042073a
add esp, 0xc
lea eax, [ebp - 0x6a0]
push 0x443550
push esi
push eax
call fcn.00420796
add esp, 0xc
lea eax, [ebp - 0x498]
push dword [edi + 0x3c]
push esi
push eax
call fcn.0042073a
add esp, 0xc
lea eax, [ebp - 0x6a0]
push eax
lea eax, [ebp - 0x498]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
lea eax, [ebp - 0x498]
push eax
push dword [edi + 0x4c]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0x498]
push eax
lea ecx, [edi + 0x50]
call fcn.00409cae
cmp byte [edi + 0x48], 0
jne 0x40f158
cmp byte [edi + 0x47], 0
jne 0x40f158
mov eax, dword [ebp - 0x6cc]
push eax
call fcn.0041f11a
pop ecx
push dword [edi + 0x4c]
call fcn.0041f11a
pop ecx
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d4e3
mov esp, ebp
pop ebp
ret