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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6d8
mov eax, dword [0x4412dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x10]
push ebx
mov dword [ebp - 0x6c8], eax
mov eax, dword [esi + 0x14]
push edi
mov edi, ecx
mov dword [ebp - 0x6d4], eax
mov eax, dword [edi]
cmp dword [eax - 8], 0
jne 0x40df99
lea eax, [ebp - 0x6d0]
push eax
call fcn.0041adbd
pop ecx
lea eax, [ebp - 0x6d0]
push eax
lea eax, [ebp - 0x6c4]
push eax
call fcn.0041ab35
lea eax, [ebp - 0x6c4]
push eax
push str.__m_d_y__H_M_S
lea eax, [ebp - 0x290]
push 0x40
push eax
call fcn.0041ba59
push dword [esi + 4]
mov ebx, 0x104
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.0041bd67
lea eax, [ebp - 0x210]
add esp, 0x24
push eax
call fcn.0041a174
pop ecx
test eax, eax
jne 0x40df3c
push dword [esi + 8]
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.0041bd67
add esp, 0xc
push str.Crash
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.0041bdca
add esp, 0xc
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.0041bdca
add esp, 0xc
jmp 0x40df70
push 0x5f
pop ecx
mov word [eax], cx
lea eax, [ebp - 0x210]
push 0x20
push eax
call fcn.0041be3f
pop ecx
pop ecx
test eax, eax
jne 0x40df6a
push 0x43a618
lea edx, [ebp - 0x210]
mov ecx, edi
call fcn.0041352a
pop ecx
jmp 0x40df9e
mov ebx, 0x104
push dword [edi]
call fcn.004170b4
mov dword [ebp - 0x6cc], eax
test eax, eax
pop ecx
mov eax, str.Creating_zip_file:
jne 0x40dfba
mov eax, str.Failed_to_create_zip_file:
push dword [edi]
mov edi, eax
mov ecx, esi
call fcn.0040e278
mov eax, dword [esi + 0x4c]
push 0x5c
push eax
call fcn.0041be66
pop ecx
pop ecx
push dword [esi + 0x4c]
lea edx, [eax + 2]
push dword [ebp - 0x6cc]
push esi
call fcn.0040de14
push dword [ebp - 0x6c8]
call fcn.0041a174
pop ecx
test eax, eax
je 0x40e018
push 0x5c
push dword [ebp - 0x6c8]
call fcn.0041be66
pop ecx
pop ecx
push dword [ebp - 0x6c8]
lea edx, [eax + 2]
push dword [ebp - 0x6cc]
push esi
call fcn.0040de14
push dword [ebp - 0x6d4]
call fcn.0041a174
pop ecx
test eax, eax
je 0x40e04c
push 0x5c
push dword [ebp - 0x6d4]
call fcn.0041be66
pop ecx
pop ecx
push dword [ebp - 0x6d4]
lea edx, [eax + 2]
push dword [ebp - 0x6cc]
push esi
call fcn.0040de14
xor edi, edi
cmp dword [esi + 0x34], edi
jle 0x40e08f
test edi, edi
js 0x40e17b
cmp edi, dword [esi + 0x34]
jge 0x40e17b
mov eax, dword [esi + 0x30]
mov ebx, dword [eax + edi*4]
push 0x5c
push ebx
call fcn.0041be66
pop ecx
pop ecx
push ebx
push dword [ebp - 0x6cc]
lea edx, [eax + 2]
push esi
call fcn.0040de14
inc edi
cmp edi, dword [esi + 0x34]
jl 0x40e053
mov ebx, 0x104
cmp byte [esi + 0x47], 0
je 0x40e0b2
lea edi, [esi + 0x54]
push 0x5c
push edi
call fcn.0041be66
pop ecx
pop ecx
push edi
push dword [ebp - 0x6cc]
lea edx, [eax + 2]
push esi
call fcn.0040de14
mov edi, dword [ebp - 0x6cc]
call fcn.004171bc
mov eax, dword [esi + 0x3c]
cmp dword [eax - 8], 0
jle 0x40e14a
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e14a
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x6a0]
push ebx
push eax
call fcn.0041bd67
add esp, 0xc
push 0x43a4b8
lea eax, [ebp - 0x6a0]
push ebx
push eax
call fcn.0041bdca
add esp, 0xc
push dword [esi + 0x3c]
lea eax, [ebp - 0x498]
push ebx
push eax
call fcn.0041bd67
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 [esi + 0x4c]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0x498]
push eax
lea eax, [esi + 0x50]
push eax
call fcn.00408b90
cmp byte [esi + 0x48], 0
jne 0x40e16b
cmp byte [esi + 0x47], 0
jne 0x40e16b
push dword [ebp - 0x6c8]
call fcn.0041a89b
pop ecx
push dword [esi + 0x4c]
call fcn.0041a89b
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.00419542
leave
ret
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]