Function at 0x6697d7
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x208], 1
push edi
mov byte [ebp - 0x40c], 0
jne 0x669806
call fcn.00668526
test al, al
je 0x669806
xor eax, eax
jmp 0x669c0e
cmp dword [esi + 0x208], 2
jne 0x669818
call fcn.00668526
test al, al
je 0x6697ff
mov esi, pe_nt_image_headers32
push esi
push dword [ebp + 0xc]
lea ebx, [ebp + 0xc]
lea edi, [ebp - 0x204]
call fcn.00667409
mov eax, dword [ebp + 0xc]
pop ecx
pop ecx
mov cl, byte [ebp + eax - 0x205]
cmp cl, 0x3a
je 0x669851
cmp cl, 0x5c
je 0x669851
mov byte [ebp + eax - 0x204], 0x5c
inc eax
mov dword [ebp + 0xc], eax
mov ecx, esi
sub ecx, eax
push ecx
mov ecx, dword [ebp + 8]
push dword [ecx]
lea edi, [ebp + eax - 0x204]
xor ebx, ebx
call fcn.00667409
mov eax, dword [ebp + 8]
add eax, 4
push esi
push eax
lea ebx, [ebp + 0xc]
lea edi, [ebp - 0x104]
call fcn.00667409
mov eax, dword [ebp + 0xc]
mov cl, byte [ebp + eax - 0x105]
add esp, 0x10
cmp cl, 0x3a
je 0x66989f
cmp cl, 0x5c
je 0x66989f
mov byte [ebp + eax - 0x104], 0x5c
inc eax
sub esi, eax
push esi
mov esi, dword [ebp + 8]
push dword [esi]
lea edi, [ebp + eax - 0x104]
xor ebx, ebx
call fcn.00667409
mov eax, dword [esi + 0x21c]
pop ecx
pop ecx
test eax, eax
je 0x6698fe
mov esi, dword [esi + 0x234]
push eax
lea eax, [ebp - 0x204]
push eax
push str.FileInstall:_DLLCall_to__s::_s_r_n
push 0xbfffffff
call fcn.00666d3d
mov eax, dword [ebp + 8]
add esp, 0x10
push dword [eax + 0x21c]
lea ecx, [ebp - 0x204]
push ecx
call fcn.0066956b
mov dword [ebp + 0xc], eax
jmp 0x669c0b
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x204]
push eax
mov edi, esi
call fcn.00669652
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x669c01
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x669940
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, dword [esi + 0x234]
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x204]
push eax
push str.FileInstall:_Copying__s_to__s_r_n
mov ebx, 0xbfffffff
push ebx
call fcn.00666d3d
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x204]
push eax
call fcn.00669294
mov dword [ebp + 0xc], eax
cmp eax, 0x20
jne 0x6699e9
mov esi, dword [edi + 0x234]
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x204]
push eax
push str.FileInstall:_Could_not_copy__s_to__s__sharing_violation__r_n
push ebx
call fcn.00666d3d
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x204]
push eax
call fcn.006695db
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x669c01
mov esi, dword [edi + 0x234]
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x204]
push eax
push str.FileInstall:_RebootCopying__s_to__s_r_n
push ebx
call fcn.00666d3d
add esp, 0x10
jmp 0x669ba7
mov ebx, edi
cmp dword [ebx + 0x220], 0
je 0x669b9f
push 0x104
lea eax, [ebp - 0x30c]
push 0
push eax
call fcn.004bee40
add esp, 0xc
push str._o:0
push dword [ebp + 0x10]
call fcn.004bb1e0
pop ecx
test eax, eax
mov eax, dword [ebx + 0x220]
pop ecx
je 0x669b0f
push str._o:256
push eax
call fcn.004bb1e0
pop ecx
pop ecx
test eax, eax
je 0x669ac2
push 9
push dword [ebx + 0x220]
lea eax, [ebp - 0x30c]
push eax
call fcn.004bbe70
mov eax, dword [ebx + 0x220]
add esp, 0xc
add eax, 0x10
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x669a62
lea edi, [ebp - 0x30c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x669a72
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x30c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x669a91
mov eax, dword [ebp + 0x10]
mov esi, 0x6e4e30
movsw word es:[edi], word [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x669aa5
lea edi, [ebp - 0x30c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x669ab5
jmp 0x669b54
mov eax, dword [ebx + 0x220]
lea edx, [ebp - 0x30c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x669ad0
lea edi, [ebp - 0x30c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x669ae1
mov eax, dword [ebp + 0x10]
mov esi, 0x6e4e30
movsw word es:[edi], word [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x669af5
lea edi, [ebp - 0x30c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x669b05
jmp 0x669b54
lea edx, [ebp - 0x30c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x669b17
lea edi, [ebp - 0x30c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x669b28
mov eax, dword [ebp + 0x10]
mov esi, 0x6e4e30
movsw word es:[edi], word [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x669b3c
lea edi, [ebp - 0x30c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x669b4c
push dword [ebx + 0x220]
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x104]
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebx + 0x234]
push str.FileInstall:_EXECall_to__s_using_arguments__s_r_n
push 0xbfffffff
call fcn.00666d3d
add esp, 0x10
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.006694ac
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jne 0x669c01
mov edi, ebx
mov ecx, dword [edi + 0x224]
mov eax, dword [edi + 0x228]
sub eax, ecx
push 0x28
cdq
pop esi
idiv esi
xor ebx, ebx
mov dword [ebp + 8], ebx
test eax, eax
je 0x669c0b
cmp byte [ebp - 0x40c], 0
lea eax, [ebp - 0x40c]
jne 0x669bd9
lea eax, [ebp - 0x104]
push eax
lea esi, [ebx + ecx]
call fcn.0066938c
mov ecx, dword [edi + 0x224]
mov eax, dword [edi + 0x228]
sub eax, ecx
push 0x28
cdq
pop esi
idiv esi
inc dword [ebp + 8]
add ebx, 0x28
cmp dword [ebp + 8], eax
jb 0x669bc4
cmp dword [ebp + 0xc], 0x50
jne 0x669c0b
and dword [ebp + 0xc], 0
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc