Function at 0x40ac00
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67d304
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x70af2c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x30], 0
mov ebx, dword [ebp + 8]
je 0x40ac37
test ebx, ebx
je 0x40ac3d
cmp dword [edi + 0x74], 0
jne 0x40ac53
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [edi + 0x100], 0
je 0x40ac79
mov eax, dword [edi + 0x10c]
cmp eax, dword [0x6a77a8]
je 0x40ac79
mov eax, dword [edi + 0x108]
lea ecx, [edi + 0x108]
call dword [eax + 0x50]
mov eax, dword [edi + 0x58]
mov ecx, dword [eax - 0x10]
lea esi, [eax - 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
mov edx, eax
lea eax, [esi + 0xc]
jl 0x40ac9e
cmp edx, dword [esi]
jne 0x40ac9e
lock inc dword [eax]
jmp 0x40acd4
mov eax, dword [edx]
lea ecx, [esi + 4]
push 1
push dword [ecx]
mov dword [ebp - 0x14], ecx
mov ecx, edx
call dword [eax]
mov esi, eax
test esi, esi
je 0x40af38
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov dword [esi + 4], eax
mov eax, dword [ecx]
inc eax
push eax
push dword [ebp - 0x10]
push eax
lea eax, [esi + 0x10]
push eax
call fcn.004088d0
add esp, 0x10
add esi, 0x10
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
test ebx, ebx
je 0x40ad06
mov ecx, ebx
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40acf0
sub ecx, edx
push ecx
push ebx
lea ecx, [ebp - 0x10]
call fcn.004087a0
mov esi, dword [ebp - 0x10]
cmp dword [edi + 0x90], 0
je 0x40ae64
lea ecx, [ebp - 0x2c]
call fcn.0052b03b
push 0
push 0x9001
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0052b55e
test eax, eax
je 0x40ae47
push 0xc0
call fcn.0051d816
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x40ad67
lea ecx, [edi + 0x1a4]
push ecx
push dword [edi + 0x74]
mov ecx, eax
call fcn.004154a0
mov ebx, eax
mov dword [ebp - 0x14], eax
jmp 0x40ad6c
xor ebx, ebx
mov dword [ebp - 0x14], ebx
push 0x18
mov byte [ebp - 4], 1
call fcn.0051d816
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x40ad9c
lea ecx, [edi + 0x1a4]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push ebx
mov ecx, eax
call fcn.00414620
mov ebx, eax
jmp 0x40ad9e
xor ebx, ebx
mov byte [ebp - 4], 1
mov ecx, ebx
mov eax, dword [edi + 0x7c]
test eax, eax
jne 0x40adc4
push 1
push dword [edi + 0x9c]
push dword [edi + 0x94]
push dword [edi + 0x84]
push dword [edi + 0x78]
jmp 0x40add6
push 0
push dword [edi + 0x9c]
push dword [edi + 0x94]
push dword [edi + 0x78]
push eax
call fcn.00414d70
push 0
mov ecx, ebx
call fcn.00414820
test ebx, ebx
je 0x40adf1
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax + 4]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x40adff
mov eax, dword [ecx]
push 1
call dword [eax + 4]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.0052b06a
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x40aeb3
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ae20
sub ecx, edx
push ecx
push ebx
lea ebx, [edi + 0x58]
mov ecx, ebx
call fcn.004087a0
push 1
mov ecx, edi
call fcn.0040a640
mov dword [edi + 0x34], 0
jmp 0x40aeb6
push 0
push 0
push str.The_document_could_not_be_saved._The_file_may_be_read_only__or_another_application_may_have_it_open.
call fcn.0052ceab
lea ecx, [ebp - 0x2c]
call fcn.0052b06a
xor edi, edi
jmp 0x40af03
push 0
push esi
push dword [edi + 0x5c]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40ae0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
lea ecx, [ebp + 8]
push ecx
push 0x400
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [ebp + 8]
test eax, eax
je 0x40aeaf
push 0
push 0x10
push eax
call fcn.0052ceab
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor edi, edi
jmp 0x40af03
lea ebx, [edi + 0x58]
cmp dword [edi + 0x100], 0
je 0x40aef7
cmp dword [edi + 0x74], 0
je 0x40aef7
mov eax, dword [edi + 0x10c]
cmp eax, dword [0x6a77a8]
je 0x40aee2
mov eax, dword [edi + 0x108]
lea ecx, [edi + 0x108]
call dword [eax + 0x50]
mov eax, dword [edi + 0x108]
lea ecx, [edi + 0x108]
push 0
push 0x30
push dword [ebx]
call dword [eax + 0x24]
mov dword [edi + 0x30], 1
mov edi, 1
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40af22
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.004088c0
int3